mwolson: Initial migration of exim4 settings to deleuze
[hcoop/zz_old/config/exim4-hopper.git] / conf.d / acl / 30_exim4-config_check_rcpt
index cb4b73b..870ed29 100644 (file)
@@ -112,6 +112,22 @@ 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\+.*}} \
+                          {exists {MAILMAN_LISTCHK}}} \
+                     {yes}{no}}
+
+  accept
+    condition = ${if and {{match{$local_part}{(.*)-bounces\+.*}} \
+                          {exists {MAILMAN_LISTCHK}}} \
+                     {yes}{no}}
+
   # Verify senders listed in local_sender_callout with a callout.
   #
   # In smarthost and satellite setups, this causes the callout to be