]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
this should slow down spam a bit
authorStephen Gran <steve@lobefin.net>
Sat, 18 Feb 2012 12:49:50 +0000 (12:49 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 18 Feb 2012 12:49:50 +0000 (12:49 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/exim/templates/eximconf.erb

index 453d11b07d46235b7a1bde7d0ff3c29e68694553..53fad43b65c1b5ddb03ab639770fd954da6d86da 100644 (file)
@@ -621,6 +621,13 @@ check_recipient:
          hosts         = !+debianhosts
          message       = mail from <$sender_address> not allowed externally
 
+<%- if nodeinfo['mailrelay'] -%>
+  deny    local_parts   = +local_only_users
+          domains       = +mailhubdomains
+          !hosts        = +debianhosts
+          message       = mail for <$local_part@$domain> not allowed externally
+
+<%- end -%>
   deny    condition     = ${if match_domain{$sender_address_domain}{+virtual_domains}{1}{0}}
           condition     = ${if exists {${extract{directory}{VDOMAINDATA}{${value}/neversenders}}}{1}{0}}
           condition     = ${if match_local_part {$sender_address_local_part}{${extract{directory}{VDOMAINDATA}{${value}/neversenders}}}{1}{0}}