From: Stephen Gran Date: Sat, 18 Feb 2012 12:49:50 +0000 (+0000) Subject: this should slow down spam a bit X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=a0ef23766b413e3aebbfbfceff40610af594dadd;p=mirror%2Fdsa-puppet.git this should slow down spam a bit Signed-off-by: Stephen Gran --- diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 453d11b07..53fad43b6 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -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}}