Fix up postmaster@ regex
authorTollef Fog Heen <tfheen@err.no>
Thu, 15 Dec 2011 21:35:18 +0000 (22:35 +0100)
committerTollef Fog Heen <tfheen@err.no>
Thu, 15 Dec 2011 21:35:18 +0000 (22:35 +0100)
modules/exim/templates/eximconf.erb

index e820089..8ba7786 100644 (file)
@@ -886,7 +886,7 @@ 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}}
+  drop   condition = ${if match{${lc:$h_From:}}{\Npostmaster@([^.]+.)?debian\.org\N}}
 
 <%- if nodeinfo['rtmaster'] -%>
   deny    condition = ${if eq {$acl_m_prf}{RTMail}}