Add a header if mail comes to packages.d.o with envelope to and from the
[mirror/dsa-puppet.git] / 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