X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fexim%2Ftemplates%2Feximconf.erb;fp=modules%2Fexim%2Ftemplates%2Feximconf.erb;h=bb7c7566cb78c1bcb4d36ce90b7fffb766d4bbd5;hb=08a1906121670d960592fbbf6ec489ff54c8b64c;hp=10038ade479680e123e5f9fb057cf7cd6950d24a;hpb=4525f6c21ab0a6d9ab7f77e792296ae42c510918;p=mirror%2Fdsa-puppet.git diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 10038ade4..bb7c7566c 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -781,7 +781,11 @@ check_recipient: defer message = $sender_host_address is not yet authorized to deliver mail from <$sender_address> to <$local_part@$domain>. log_message = greylisted. - local_parts = GREYLIST_LOCAL_PARTS + condition = ${if or { \ + {match_local_part{$local_part}{GREYLIST_LOCAL_PARTS}} \ + {HAS_DEFAULT_OPTIONS} \ + } \ + } !senders = : !hosts = : +debianhosts : WHITELIST : \ ${if exists {/etc/greylistd/whitelist-hosts}\ @@ -815,7 +819,11 @@ check_recipient: condition = ${if !eq {$acl_m_prf}{PopconMail}} !authenticated = * domains = +handled_domains - local_parts = GREYLIST_LOCAL_PARTS + condition = ${if or { \ + {match_local_part{$local_part}{GREYLIST_LOCAL_PARTS}} \ + {HAS_DEFAULT_OPTIONS} \ + } \ + } set acl_m_pgr = request=smtpd_access_policy\n\ protocol_state=RCPT\n\ protocol_name=${uc:$received_protocol}\n\ @@ -840,7 +848,11 @@ check_recipient: condition = ${if !eq {$acl_m_prf}{PopconMail}} !authenticated = * domains = +handled_domains - local_parts = GREYLIST_LOCAL_PARTS + condition = ${if or { \ + {match_local_part{$local_part}{GREYLIST_LOCAL_PARTS}} \ + {HAS_DEFAULT_OPTIONS} \ + } \ + } condition = ${if eq{${uc:${substr_0_7:$acl_m_pgr}}}{PREPEND}} message = ${sg{$acl_m_pgr}{\N^\w+\s*\N}{}}