-u <user>
vim scripts/opendkim.sh#!/bin/bash
# Script Version: 06
# Description: Generate and install OpenDKIM keys for a given domain and append KeyTable + SigningTable entries.
ProblemstellungE-Mails, die von lists.bubuit.net gesendet wurden, wurden von Gmail und anderen Mailservern mit folgendem Fehler abgelehnt:
#!/bin/bash
# Script Name: sendmail_test.sh
# Version: 03
# Description: This script sends a test email using sendmail. The recipient's email address is the first argument.
# It logs messages to the console only.
# Check if an argument (email address) is provided
if [ -z "$1" ]; then
TO="root"
else
TO="$1"
fi
# Email details
SUBJECT="Postfix Test"
FROM="$(whoami)@$(hostname)"
BODY="This is the email body!"
# Function to send email
send_email() {
if !
- https://wiki.debian.org/DebianSpamAssassin
- ai spamassassin spamass-milter re2c pyzor libmail-spamassassin-perl libarchive-zip-perl libidn2-dev libgeo-ip-perl libgeoip-dev perl-doc cpanminus
- cpanm IP::Country::Fast Compress::Zlib Geo::IP Net::LibIDN2 Mail::SpamAssassin Digest::SHA1 Net::LibIDN2 IP::Country::DB_File Encode::Detect::Detector Net::Patricia Net::CIDR::Lite Devel::Cycle Test::More
- sa-update
- sa-compile
- spamassassin --lint -D
- /etc/default/spamd
- /etc/default/sp
ai postfix-policyd-spf-python Create DNS txt recordv=spf1 mx -all
ai postfix postfix-pcre dovecot-core dovecot-imapd sasl2-bin libsasl2-modules
namespace inbox {
# These mailboxes are widely used and could perhaps be created automatically:
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Important {
auto = subscribe
special_use = \Important
}
mailbox Archive {
auto = subscribe
special_use = \Archive
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
# For \Sent mailboxes there are two widely used nam
A DMARC policy allows a sender to indicate that their emails are protected by SPF and/or DKIM, and give instruction if neither of those authentication methods passes. Please be sure you have a DKIM and SPF set before using DMARC. You do not have a DMARC record, please add a TXT record to your domain _dmarc.DOM.TLD with the following value: v=DMARC1; p=none
/var/www/srvip/mail/config-v1.1.xml<?xml version="1.0" encoding="UTF-8"?>
crontab -e59 23 * * * /usr/sbin/pflogsumm -d today /var/log/mail.log | mail -s "pflogsum daily Report `date`" log@DOM.TLD 0 1 * * mon /usr/sbin/pflogsumm /var/log/mail.log.1 | mail -s "pflogsum weekly Report `date`" log@DOM.TLD
sys- vim /etc/hosts
- apt install apache2 php-{bcmath,common,curl,fpm,gd,intl,mbstring,mysql,soap,xml,xsl,zip,cli}
- ai mailman3-full postfix
- vim /etc/mailman3/mailman.cfg
apache- cp /etc/mailman3/apache.conf /etc/apache2/sites-available/mailman.conf
- vim /etc/apache2/sites-available/mailman.conf
- a2ensite mailman
- a2dissite 000-default.conf
adduser USERNAME --shell /usr/sbin/nologin vim /etc/postfix/virtual postmap /etc/postfix/virtual vim /etc/postfix/virtual_domains postmap /etc/postfix/virtual_domains postfix reload IMAP over TLSmail.DOM.TLD 993 TLS on dedicated port SMTP over TLSmail.DOM.TLD 587 TLS on dedicated port
# Log to syslog Syslog yes SyslogSuccess Yes LogWhy Yes # Required to use local socket with MTAs that access the socket as a non- # privileged user (e.g. Postfix) UMask 002
|