From 347c885dc052bcd082ff8bd438fcb774b7ac775a Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 22 Jun 2009 01:21:10 +0100 Subject: [PATCH] Add a header if mail comes to packages.d.o with envelope to and from the same. Signed-off-by: Stephen Gran --- modules/exim/templates/eximconf.erb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.20.1