From b43dbb621c4983145441757c3eee344600cbefb8 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Fri, 25 Oct 2019 18:08:27 +0100 Subject: [PATCH] eximconf: use acl_m_defopt instead of re-evaluating HAS_DEFAULT_OPTIONS This makes no difference to the result, but makes reading debug output much simpler. Signed-off-by: Adam D. Barratt --- modules/exim/templates/eximconf.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 1441c9b6a..ee73e02e0 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -810,7 +810,7 @@ check_recipient: log_message = greylisted. condition = ${if or { \ {eq{$acl_m_grey_recip}{1}} \ - {bool_lax{HAS_DEFAULT_OPTIONS}} \ + {bool_lax{$acl_m_defopt}} \ } \ } !senders = : @@ -851,7 +851,7 @@ check_recipient: domains = +handled_domains condition = ${if or { \ {eq{$acl_m_grey_recip}{1}} \ - {bool_lax{HAS_DEFAULT_OPTIONS}} \ + {bool_lax{$acl_m_defopt}} \ } \ } set acl_m_pgr = request=smtpd_access_policy\n\ @@ -881,7 +881,7 @@ check_recipient: domains = +handled_domains condition = ${if or { \ {eq{$acl_m_grey_recip}{1}} \ - {bool_lax{HAS_DEFAULT_OPTIONS}} \ + {bool_lax{$acl_m_defopt}} \ } \ } condition = ${if eq{${uc:${substr_0_7:$acl_m_pgr}}}{PREPEND}} @@ -915,7 +915,7 @@ check_recipient: !hosts = +debianhosts : WHITELIST deny message = host $sender_host_address is listed in $dnslist_domain ($dnslist_value); see $dnslist_text - condition = ${if bool_lax{HAS_DEFAULT_OPTIONS}} + condition = ${if bool_lax{$acl_m_defopt}} dnslists = relays.dnsbl.sorbs.net : xbl.spamhaus.org domains = +handled_domains !hosts = +debianhosts : WHITELIST @@ -936,7 +936,7 @@ check_recipient: !hosts = +debianhosts : WHITELIST deny message = domain $sender_address_domain is listed in $dnslist_domain ($dnslist_value); see $dnslist_text - condition = ${if bool_lax{HAS_DEFAULT_OPTIONS}} + condition = ${if bool_lax{$acl_m_defopt}} dnslists = dbl.spamhaus.org/$sender_address_domain domains = +handled_domains !hosts = +debianhosts : WHITELIST -- 2.20.1