]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
postmasterish is not a spam trap, put that after host and sender address blacklist
authorTollef Fog Heen <tfheen@err.no>
Wed, 4 Feb 2015 19:32:03 +0000 (20:32 +0100)
committerTollef Fog Heen <tfheen@err.no>
Wed, 4 Feb 2015 19:32:03 +0000 (20:32 +0100)
modules/exim/templates/eximconf.erb

index 4a794e537c587307b354f531ac811f7cdf36797e..4afbb5b92fc3b5523e59d64bac1080f286dae6f0 100644 (file)
@@ -803,9 +803,6 @@ check_recipient:
     message        = ${sg{$acl_m_pgr}{^\\w+\\s*}{}}
 
 <%- end -%>
-  accept  local_parts   = +postmasterish
-          domains       = +virtual_domains : +bsmtp_domains
-
   deny    hosts        = ${if exists{/etc/exim4/host_blacklist}{/etc/exim4/host_blacklist}{}}
           message      = I'm terribly sorry, but it seems you have been blacklisted
           log_message  = blacklisted IP
@@ -814,6 +811,9 @@ check_recipient:
          senders       = ${if exists{/etc/exim4/blacklist}{/etc/exim4/blacklist}{}}
          message       = We have blacklisted <$sender_address>.  Please stop mailing us
 
+  accept  local_parts   = +postmasterish
+          domains       = +virtual_domains : +bsmtp_domains
+
 <%- if scope.lookupvar('site::nodeinfo')['smarthost'].empty? -%>
   deny    message  = host $sender_host_address is listed in $dnslist_domain; see $dnslist_text
           dnslists = ${if match_domain{$domain}{+virtual_domains}\