X-Git-Url: https://dehnerts.com/gitweb/?a=blobdiff_plain;f=main.cf;fp=main.cf;h=52386e961b74f0ddebd38d1744fedb628b84f1e8;hb=86afbcb7ac76b8a0cbc993c993a58da3591b3a69;hp=c068fdccd36b6710bd09ab4e65a111d00b845b99;hpb=bb916e6a42be882901b8240c9666bb26d5874dbf;p=sysconfig%2Fpostfix.git diff --git a/main.cf b/main.cf index c068fdc..52386e9 100644 --- a/main.cf +++ b/main.cf @@ -278,6 +278,17 @@ smtpd_tls_auth_only = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache +# Milter configuration +# Based on https://www.linode.com/docs/guides/configure-spf-and-dkim-in-postfix-on-debian-9/#testing-postfix-dkim-on-debian-9-with-a-gmail-test +# http://www.opendkim.org/opendkim-README +# http://www.postfix.org/MILTER_README.html +# OpenDKIM +milter_default_action = accept +# Postfix ≥ 2.6 milter_protocol = 6, Postfix ≤ 2.5 milter_protocol = 2 +milter_protocol = 6 +smtpd_milters = unix:opendkim/opendkim.sock +non_smtpd_milters = $smtpd_milters + # Alex Dehnert, 2017-11-01 # Based on https://serverfault.com/questions/663979/virtual-alias-domains-how-to-use-different-ip-addresses-when-forwarding-mail