aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaat <maat@mageia.org>2024-11-05 19:56:15 +0100
committerMaat <maat@mageia.org>2024-11-05 19:56:15 +0100
commit645b87ed875cb42b509f582b588ec7a8f9cf1615 (patch)
tree9c2c1a0c0e2cc990e934701b17d7231bcb0c86ae
parent73cc5afbbfab9f34e84cd9c881f5a269a5b46627 (diff)
downloadpuppet-645b87ed875cb42b509f582b588ec7a8f9cf1615.tar
puppet-645b87ed875cb42b509f582b588ec7a8f9cf1615.tar.gz
puppet-645b87ed875cb42b509f582b588ec7a8f9cf1615.tar.bz2
puppet-645b87ed875cb42b509f582b588ec7a8f9cf1615.tar.xz
puppet-645b87ed875cb42b509f582b588ec7a8f9cf1615.zip
Limiting DKIM and SRS toprimary server
-rw-r--r--modules/postfix/templates/main.cf2
1 files changed, 2 insertions, 0 deletions
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