X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fexim%2Ftemplates%2Feximconf.erb;h=98d608ce38a0cb9e87ed97409867211291e2b7bd;hb=9b5b5a7fa2fa936ed091de108a1679a48d44578e;hp=2ed91fe5dc76053c2e3cbdbeaf06c83682d6fcf6;hpb=b8fa816fa0c7ec2dc5d626b16ec4ef5f2afe1b6d;p=mirror%2Fdsa-puppet.git diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 2ed91fe5d..98d608ce3 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -518,9 +518,17 @@ out hosts = !+debianhosts message = mail for $local_part is only accepted internally +<%= +out='' +if 0 == 1: +out=' deny message = address $sender_host_address is listed in $dnslist_domain; $dnslist_text hosts = !+debianhosts dnslists = rbl.debian.net : rbl.debian.net/$sender_address_domain +' +end +out +%> deny !recipients = survey@popcon.debian.org !verify = sender @@ -529,7 +537,6 @@ out condition = ${if >{${eval:$acl_c1}}{0}} ratelimit = 10 / 60m / per_rcpt / $sender_host_address message = slow down (no reverse dns, mismatched ehlo, dialup, or in blacklists) - <%= out = "" if has_variable?("policydweight") && policydweight == "true" @@ -600,14 +607,14 @@ if nodeinfo['rtmaster'] out=' warn domains = rt.debian.org set acl_m1 = RTMail - set acl_m12 = ${if def:acl_m12 {$acl_m12} {${if or{{match{$local_part}{[^+]+\\+\\d+}}{match{$local_part}{[^+]+\\+new}}} {RTMailRecipientHasSubaddress}}}} + set acl_m12 = ${if def:acl_m12 {$acl_m12} {${if or{{match{$local_part}{\N[^+]+\+\d+\N}}{match{$local_part}{\N[^+]+\+new\N}}} {RTMailRecipientHasSubaddress}}}} ' end out %> <%= out='' -if nodeinfo['packagesmaster'] +if nodeinfo['packagesqamaster'] out=' warn domains = packages.qa.debian.org set acl_m1 = PTSMail @@ -773,6 +780,9 @@ acl_check_mime: set acl_m5 = ${perl{surblspamcheck}} condition = ${if eq{$acl_m5}{false}{no}{yes}} log_message = $acl_m5 + message = $acl_m5 + + accept ' end out @@ -789,7 +799,7 @@ if nodeinfo['rtmaster'] out=' deny condition = ${if eq {$acl_m1}{RTMail}} condition = ${if and{{!match {${lc:$rh_Subject:}} {debian rt}} \ - {!match {${lc:$rh_Subject:]}} {\\[rt.debian.org }} \ + {!match {${lc:$rh_Subject:]}} {\N\[rt.debian.org \N}} \ {!match {$acl_m12}{RTMailRecipientHasSubaddress}}}} message = messages to the Request Tracker system require a subject tag or a subaddress ' @@ -798,7 +808,7 @@ out %> <%= out='' -if nodeinfo['packagesmaster'] +if nodeinfo['packagesqamaster'] out=' deny !hosts = +debianhosts : 217.196.43.134 condition = ${if eq {$acl_m1}{PTSMail}}