From d0abb10221cd119b621d6e1cd115d9fdaa36ec20 Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Sun, 4 Oct 2009 17:45:33 -0400 Subject: [PATCH] merge hcoop bounce message passthrough --- conf.d/acl/30_exim4-config_check_rcpt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/conf.d/acl/30_exim4-config_check_rcpt b/conf.d/acl/30_exim4-config_check_rcpt index 5a9f168..a2506aa 100644 --- a/conf.d/acl/30_exim4-config_check_rcpt +++ b/conf.d/acl/30_exim4-config_check_rcpt @@ -112,6 +112,26 @@ acl_check_rcpt: !verify = sender .endif + # hcoop-change: Add recommended lines from + # /usr/share/doc/mailman/README.EXIM.gz so that bounce messages + # get through, even if they are from a malformed address + + # Accept bounces to lists even if callbacks or other checks would fail + warn + message = X-WhitelistedRCPT-nohdrfromcallback: Yes + condition = ${if and {{match{$local_part}{(.*)-bounces\+.*}} \ + {def:domain} \ + {eq {${lookup{$local_part@$domain}lsearch{MAILMAN_DB}}} \ + {true}}} \ + {yes}{no}} + + accept + condition = ${if and {{match{$local_part}{(.*)-bounces\+.*}} \ + {def:domain} \ + {eq {${lookup{$local_part@$domain}lsearch{MAILMAN_DB}}} \ + {true}}} \ + {yes}{no}} + # Verify senders listed in local_sender_callout with a callout. # # In smarthost and satellite setups, this causes the callout to be -- 2.20.1