aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/postfix/templates/main.cf10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/postfix/templates/main.cf b/modules/postfix/templates/main.cf
index 40e5d352..39b004d8 100644
--- a/modules/postfix/templates/main.cf
+++ b/modules/postfix/templates/main.cf
@@ -114,6 +114,16 @@ smtp_tls_security_level = may
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
<%- if all_tags.include?('postfix::server') -%>
+#
+# OpenDKIM configuration
+#
+milter_protocol = 6
+milter_default_action = accept
+smtpd_milters = inet:localhost:<%= psocket %>
+non_smtpd_milters = inet:localhost:<%= psocket %>
+<%- end -%>
+
+<%- if all_tags.include?('postfix::server') -%>
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes