Revert "eximconf: enable greylisting for users with default options"
authorJulien Cristau <jcristau@debian.org>
Sat, 12 Oct 2019 20:03:07 +0000 (22:03 +0200)
committerJulien Cristau <jcristau@debian.org>
Sat, 12 Oct 2019 20:03:07 +0000 (22:03 +0200)
Seems to break with "missing } at end of condition inside "or" group"

This reverts commit 08a1906121670d960592fbbf6ec489ff54c8b64c.

modules/exim/templates/eximconf.erb

index bb7c756..10038ad 100644 (file)
@@ -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.
   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}\
     !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 !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\
     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 !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}{}}
 
     condition      = ${if eq{${uc:${substr_0_7:$acl_m_pgr}}}{PREPEND}}
     message        = ${sg{$acl_m_pgr}{\N^\w+\s*\N}{}}