From ecafbbf7dc10ccdd7f6457a82ed37c5183f10654 Mon Sep 17 00:00:00 2001 From: Maat Date: Sun, 13 Oct 2024 22:03:26 +0200 Subject: Adding Sender Rewriting Scheme in preparation of DKIM activation Note : postsrsd is manually installed / mga 7 for next version we will need to package it properly --- modules/postfix/templates/main.cf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules') diff --git a/modules/postfix/templates/main.cf b/modules/postfix/templates/main.cf index 7fe0f073..798ad6da 100644 --- a/modules/postfix/templates/main.cf +++ b/modules/postfix/templates/main.cf @@ -77,6 +77,20 @@ alias_maps = hash:/etc/postfix/aliases virtual_alias_maps = ldap:/etc/postfix/ldap_aliases.conf ldap:/etc/postfix/group_aliases.conf hash:/etc/postfix/virtual_aliases + + +# Adding DKIM Miler for primaryserver (sucuk) +smtpd_milters = inet:127.0.0.1:8891 +non_smtpd_milters = $smtpd_milters +milter_default_action = accept +milter_protocol = 2 + +# Adding Sender Rewriting Scheme +sender_canonical_maps = tcp:localhost:10003 +sender_canonical_classes = envelope_sender +#recipient_canonical_maps = tcp:localhost:10002 +#recipient_canonical_classes= envelope_recipient,header_recipient + <%- if classes.include?('sympa::server') -%> regexp:/etc/postfix/sympa_aliases <%- end -%> -- cgit v1.2.1