From 522c62c273dc4620ca5b9110392446848e79b718 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Tue, 6 Oct 2020 12:20:09 -0400 Subject: [PATCH] try to make the postfix milter part better searched and some debugging to opendkim and turn off the sending of reports --- roles/base/files/postfix/main.cf/main.cf.copr | 5 ----- roles/base/files/postfix/main.cf/main.cf.gateway | 9 ++++++--- roles/opendkim/files/opendkim.conf | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/roles/base/files/postfix/main.cf/main.cf.copr b/roles/base/files/postfix/main.cf/main.cf.copr index 8c7b349369..06c58d6033 100644 --- a/roles/base/files/postfix/main.cf/main.cf.copr +++ b/roles/base/files/postfix/main.cf/main.cf.copr @@ -691,8 +691,3 @@ inet_protocols = ipv4 # send any email. ;( smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination -# Milter configuration -milter_default_action = accept -milter_protocol = 6 -smtpd_milters = inet:127.0.0.1:8891 -non_smtpd_milters = $smtpd_milters diff --git a/roles/base/files/postfix/main.cf/main.cf.gateway b/roles/base/files/postfix/main.cf/main.cf.gateway index 7f8a554f7d..30476d76e2 100644 --- a/roles/base/files/postfix/main.cf/main.cf.gateway +++ b/roles/base/files/postfix/main.cf/main.cf.gateway @@ -786,9 +786,11 @@ tls_random_source = dev:/dev/urandom tls_eecdh_strong_curve = prime256v1 tls_eecdh_ultra_curve = secp384r1 -## Other configs from standard -smtpd_milters = inet:localhost:8891 -milter_default_action = accept +# Milter configuration +milter_default_action = accept +milter_protocol = 6 +smtpd_milters = inet:127.0.0.1:8891 +non_smtpd_milters = $smtpd_milters # Deny email from some domains smtpd_sender_restrictions = regexp:/etc/postfix/sender_access @@ -802,3 +804,4 @@ message_size_limit = 20971520 # as outlined http://www.postfix.org/SMTPD_ACCESS_README.html # At least one is required to receive email smtpd_relay_restrictions = permit_mynetworks, reject_unauth_destination + diff --git a/roles/opendkim/files/opendkim.conf b/roles/opendkim/files/opendkim.conf index 77d878ed5f..3b76c89aed 100644 --- a/roles/opendkim/files/opendkim.conf +++ b/roles/opendkim/files/opendkim.conf @@ -61,12 +61,12 @@ Umask 002 ## This specifies a text file in which to store DKIM transaction statistics. ## OpenDKIM must be manually compiled with --enable-stats to enable this feature. -# Statistics /var/spool/opendkim/stats.dat +Statistics /var/spool/opendkim/stats.dat ## Specifies whether or not the filter should generate report mail back ## to senders when verification fails and an address for such a purpose ## is provided. See opendkim.conf(5) for details. -SendReports yes +SendReports no ## Specifies the sending address to be used on From: headers of outgoing ## failure reports. By default, the e-mail address of the user executing