From 645b87ed875cb42b509f582b588ec7a8f9cf1615 Mon Sep 17 00:00:00 2001 From: Maat Date: Tue, 5 Nov 2024 19:56:15 +0100 Subject: Limiting DKIM and SRS toprimary server --- modules/postfix/templates/main.cf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/postfix/templates/main.cf b/modules/postfix/templates/main.cf index e9464a39..21ea6ca4 100644 --- a/modules/postfix/templates/main.cf +++ b/modules/postfix/templates/main.cf @@ -86,6 +86,7 @@ virtual_alias_maps = regexp:/etc/postfix/sympa_aliases <%- end -%> <%- end -%> +<%- if all_tags.include?('postfix::server::primary') -%> # Adding DKIM Miler for primaryserver (sucuk) smtpd_milters = inet:127.0.0.1:8891 non_smtpd_milters = $smtpd_milters @@ -97,6 +98,7 @@ sender_canonical_maps = socketmap:inet:localhost:10003:forward sender_canonical_classes = envelope_sender recipient_canonical_maps = socketmap:inet:localhost:10003:reverse recipient_canonical_classes= envelope_recipient,header_recipient +<%- end -%> <%- if all_tags.include?('postfix::server') -%> transport_maps = regexp:/etc/postfix/transport_regexp -- cgit v1.2.1