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