diff --git a/spamassassin/templates/local.cf.j2 b/spamassassin/templates/local.cf.j2 index 17499af0050b5b5fe5600a90d89b0b8fcb3eceb0..012c32ed40956e6bbb065e23b8cec3e71fd80ca1 100644 --- a/spamassassin/templates/local.cf.j2 +++ b/spamassassin/templates/local.cf.j2 @@ -9,7 +9,7 @@ # Add *****SPAM***** to the Subject header of spam e-mails # -{{ '' if spamassassin_rewrite_subject else '#' }}rewrite_header Subject *****SPAM***** +{{ '' if spamassassin_rewrite_subject else '# ' }}rewrite_header Subject *****SPAM***** # Save spam messages as a message/rfc822 MIME attachment instead of @@ -57,6 +57,22 @@ required_score {{ spamassassin_required_score }} # # normalize_charset 1 +# Textual body scan limit (default: 50000) +# +# Amount of data per email text/* mimepart, that will be run through body +# rules. This enables safer and faster scanning of large messages, +# perhaps having very large textual attachments. There should be no need +# to change this well tested default. +# +# body_part_scan_size 50000 + +# Textual rawbody data scan limit (default: 500000) +# +# Amount of data per email text/* mimepart, that will be run through +# rawbody rules. +# +# rawbody_part_scan_size 500000 + # Some shortcircuiting, if the plugin is enabled # ifplugin Mail::SpamAssassin::Plugin::Shortcircuit @@ -65,6 +81,10 @@ ifplugin Mail::SpamAssassin::Plugin::Shortcircuit # shortcircuiting plugin is active, causing early exit to save CPU load. # Uncomment to turn this on # +# SpamAssassin tries hard not to launch DNS queries before priority -100. +# If you want to shortcircuit without launching unneeded queries, make +# sure such rule priority is below -100. These examples are already: +# # shortcircuit USER_IN_WHITELIST on # shortcircuit USER_IN_DEF_WHITELIST on # shortcircuit USER_IN_ALL_SPAM_TO on