From: Stephen Gran Date: Mon, 22 Jun 2009 00:21:10 +0000 (+0100) Subject: Add a header if mail comes to packages.d.o with envelope to and from the X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=347c885dc052bcd082ff8bd438fcb774b7ac775a;p=mirror%2Fdsa-puppet.git Add a header if mail comes to packages.d.o with envelope to and from the same. Signed-off-by: Stephen Gran --- diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index e759624fe..70ac44893 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -609,7 +609,17 @@ out=' end out %> - +<%= +out='' +if nodeinfo['packagesqamaster'] + out=' + warn condition = ${if eq {$acl_m_prf}{PackagesMail}} + condition = ${if eq {$sender_address}{$local_part@$domain}} + message = X-Packages-FromTo-Same: yes +' +end +out +%> deny condition = ${if eq {$acl_m_prf}{PopconMail}{no}{yes}} !verify = sender