From f6bc07cae4e29cd2b6b7286f15e5f35e706281dc Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 21 Jun 2009 23:47:05 +0100 Subject: [PATCH] spamassassin for packages.d.o mail - what could possibly got wrong? Signed-off-by: Stephen Gran --- modules/exim/templates/eximconf.erb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 4646b0bfd..cf5ff7797 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -312,6 +312,18 @@ end out %> <%= +out = "" +if nodeinfo['packagesmaster'] + out = ' + warn domains = packages.debian.org + set acl_m_rprf = PackagesMail + + accept condition = ${if eq {$acl_m_rprf}{}{no}{yes}} +' +end +out +%> +<%= if nodeinfo['packagesqamaster'] out=' warn recipients = owner@packages.qa.debian.org : postmaster@packages.qa.debian.org @@ -925,6 +937,23 @@ out !verify = header_sender message = No valid sender found in the From:, Sender: and Reply-to: headers +<%= +out = "" +if nodeinfo['packagesmaster'] + out = ' + deny message = Congratulations, you scored $spam_score points. + log_message = spam: $spam_score points. + condition = ${if eq {$acl_m_prf}{PackagesMail}} + !authenticated = * + !verify = certificate + !hosts = +debianhosts + condition = ${if <{$message_size}{256000}} + condition = ${if >{$spam_score_int}{65}} + spam = pkg_user : true +' +end +out +%> accept -- 2.20.1