From: Tollef Fog Heen Date: Thu, 15 Dec 2011 21:19:44 +0000 (+0100) Subject: Try to get rid of spam from postmaster@.*.debian.org X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=939f9c0b2ad7b91126f24dec0ac7cedf8b7d796c;p=mirror%2Fdsa-puppet.git Try to get rid of spam from postmaster@.*.debian.org --- diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index b459bd2e9..e8200899b 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -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}} \