Add a header if mail comes to packages.d.o with envelope to and from the
authorStephen Gran <steve@lobefin.net>
Mon, 22 Jun 2009 00:21:10 +0000 (01:21 +0100)
committerStephen Gran <steve@lobefin.net>
Mon, 22 Jun 2009 00:21:10 +0000 (01:21 +0100)
same.
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/exim/templates/eximconf.erb

index e759624..70ac448 100644 (file)
@@ -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