From b6f90e10c1c89187de41bfa4c9bc561b525e35d7 Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Wed, 30 Nov 2016 18:55:03 +0100 Subject: [PATCH] Allow larger messages to be checked by SpamAssassin (#1006) Additionally, add the spam report headers to all emails, in order to make it easier to debug false negatives. --- setup/spamassassin.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/spamassassin.sh b/setup/spamassassin.sh index 6c29fe8e..e7e09f4e 100755 --- a/setup/spamassassin.sh +++ b/setup/spamassassin.sh @@ -48,7 +48,7 @@ echo "public.pyzor.org:24441" > /etc/spamassassin/pyzor/servers # * Disable localmode so Pyzor, DKIM and DNS checks can be used. tools/editconf.py /etc/default/spampd \ DESTPORT=10026 \ - ADDOPTS="\"--maxsize=500\"" \ + ADDOPTS="\"--maxsize=2000\"" \ LOCALONLY=0 # Spamassassin normally wraps spam as an attachment inside a fresh @@ -63,7 +63,8 @@ tools/editconf.py /etc/default/spampd \ # Tell Spamassassin not to modify the original message except for adding # the X-Spam-Status mail header and related headers. tools/editconf.py /etc/spamassassin/local.cf -s \ - report_safe=0 + report_safe=0 \ + add_header="all Report _REPORT_" # Bayesean learning # -----------------