From 78755979f0f874ae4b74f3a1c4e2c90f15a1b15e Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 24 Mar 2023 21:02:37 +0100 Subject: [PATCH] configure debug_peer_list and postfix_postscreen_dnsbl_sites --- templates/postfix/main.cf.j2 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/postfix/main.cf.j2 b/templates/postfix/main.cf.j2 index 0f68ff0..1a6a89d 100644 --- a/templates/postfix/main.cf.j2 +++ b/templates/postfix/main.cf.j2 @@ -2,8 +2,10 @@ smtpd_banner = {{ postfix_smtpd_banner }} +{% if postfix_debug_peer_list is defined %} ### Debug Logging -#debug_peer_list = +debug_peer_list = {{ postfix_debug_peer_list | join(', ') }} +{% endif %} ### Protocols and destinations inet_interfaces = all @@ -136,10 +138,12 @@ postscreen_greet_action = drop # DNS block lists postscreen_dnsbl_threshold = 2 +{% if postfix_postscreen_dnsbl_sites is defined %} +{% for site in postfix_postscreen_dnsbl_sites %} postscreen_dnsbl_sites = - bl.spamcop.net*1 - ix.dnsbl.manitu.net*2 - zen.spamhaus.org*2 + {{ site.name }}*{{ site.multiplier }} +{% endfor %} +{% endif %} postscreen_dnsbl_action = drop # Postfix runs restrictions with the following order