1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-06-09 19:10:54 +00:00

Allow larger messages to be checked by SpamAssassin

Additionally, add the spam report headers to all emails, in order to make it easier to debug false negatives.
This commit is contained in:
Leo 2016-11-19 17:31:49 +01:00
parent c3605f6211
commit 972337974f

View File

@ -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
# -----------------