OpenDMARK Check (Ubuntu 18.04): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 51: | Zeile 51: | ||
== Postfix == | == Postfix == | ||
Die Konfigurationsdatei | |||
<pre> | <pre> | ||
sudo vi /etc/postfix/main.cf | sudo vi /etc/postfix/main.cf | ||
</pre> | </pre> | ||
bearbeiten und den Socket <code>inet:12345@localhost</code> hinzufügen: | |||
<pre> | <pre> | ||
## Spamfilter und DKIM-Signaturen via Rspamd ## | ## Spamfilter und DKIM-Signaturen via Rspamd ## | ||
smtpd_milters = inet:localhost:11332, inet:localhost:8892 | smtpd_milters = inet:localhost:11332, inet:localhost:8892, inet:12345@localhost | ||
non_smtpd_milters = inet:localhost:11332, inet:localhost:8892 | non_smtpd_milters = inet:localhost:11332, inet:localhost:8892, inet:12345@localhost | ||
milter_protocol = 6 | milter_protocol = 6 | ||
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen} | milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen} | ||
milter_default_action = accept | milter_default_action = accept | ||
</pre> | </pre> | ||
Danach ''postfix'' neustarten: | |||
<pre> | <pre> | ||
sudo systemctl restart postfix | sudo systemctl restart postfix.service | ||
</pre> | </pre> | ||
Version vom 28. März 2020, 16:53 Uhr
Noch in Bearbeitung
Installation
sudo apt-get install -y opendmarc
Bei der Frage Configure database for opendmarc with dbconfig-common? die Antwort NEIN wählen.
Konfiguration
Die Datei
sudo vi /etc/opendmarc.conf
bearbeiten und folgende Parameter anpassen bzw. hinzufügen:
AuthservID OpenDMARC Socket inet:12345@localhost TrustedAuthservIDs mail1.kirner.or.at ## Optional #RejectFailures true ## You may want OpenDMARC to ignore SMTP clients that are successfully ## authenticated via SMTP AUTH. IgnoreAuthenticatedClients true ## This will reject emails that don't conform to email header standards ## as described in RFC5322. For example, if an incoming email doesn't ## have From: header or date: header, it will be rejected. RequiredHeaders true ## This will cause OpenDMARC to perform a fallback SPF check itself when ## it can find no SPF results in the message header. SPFSelfValidate true
Zum Abschluss den Service neustarten:
sudo systemctl restart opendmarc.service
Postfix
Die Konfigurationsdatei
sudo vi /etc/postfix/main.cf
bearbeiten und den Socket inet:12345@localhost
hinzufügen:
## Spamfilter und DKIM-Signaturen via Rspamd ## smtpd_milters = inet:localhost:11332, inet:localhost:8892, inet:12345@localhost non_smtpd_milters = inet:localhost:11332, inet:localhost:8892, inet:12345@localhost milter_protocol = 6 milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen} milter_default_action = accept
Danach postfix neustarten:
sudo systemctl restart postfix.service
Links
https://www.linuxbabe.com/mail-server/opendmarc-postfix-ubuntu
https://blog.schaal-24.de/mail/dmarc-check-unter-debian-wheezy/
https://blog.schaal-24.de/mail/dmarc-reports-erstellen/
http://www.postfix.org/MILTER_README.html
http://www.trusteddomain.org/opendmarc/
Zurück zu Mailserver einrichten