From 939f9c0b2ad7b91126f24dec0ac7cedf8b7d796c Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Thu, 15 Dec 2011 22:19:44 +0100 Subject: [PATCH] Try to get rid of spam from postmaster@.*.debian.org --- modules/exim/templates/eximconf.erb | 5 +++++ 1 file changed, 5 insertions(+) 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}} \ -- 2.20.1