diff --git a/templates/main.cf.j2 b/templates/main.cf.j2 index 949f24a..024930a 100644 --- a/templates/main.cf.j2 +++ b/templates/main.cf.j2 @@ -65,3 +65,15 @@ smtpd_sender_restrictions = reject_unknown_sender_domain dovecot_destination_recipient_limit = 1 virtual_transport = dovecot {% endif %} + +# opendkim + +{% if postfix.enable_opendkim|d(false) %} + +milter_protocol = 6 +milter_default_action = accept + +smtpd_milters = inet:localhost:8891 +non_smtpd_milters = inet:localhost:8891 + +{% endif %}