]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Try to get rid of spam from postmaster@.*.debian.org
authorTollef Fog Heen <tfheen@err.no>
Thu, 15 Dec 2011 21:19:44 +0000 (22:19 +0100)
committerTollef Fog Heen <tfheen@err.no>
Thu, 15 Dec 2011 21:19:44 +0000 (22:19 +0100)
modules/exim/templates/eximconf.erb

index b459bd2e969411a6a8c27e461751150c05370076..e8200899bc0a6109a14adad8508771964e592ddd 100644 (file)
@@ -883,6 +883,11 @@ acl_check_predata:
 
 #!!# ACL that is used after the DATA command
 check_message:
+
+  # Some people put from hostmaster@something.debian.org in the From
+  # header.  Take their crack pipe away.
+  drop   condition = ${if match{${lc:$h_from:}}{\Npostmaster@(\[^.\].)?debian\.org\N}}
+
 <%- if nodeinfo['rtmaster'] -%>
   deny    condition = ${if eq {$acl_m_prf}{RTMail}}
           condition = ${if and{{!match {${lc:$rh_Subject:}} {debian rt}} \