From 1bf1feca21fa572480aad0b799e5c45afa802c64 Mon Sep 17 00:00:00 2001 From: nd Date: Sun, 28 Jul 2019 12:08:28 +0200 Subject: [PATCH] add opendkim support --- templates/main.cf.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 %}