diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-03-15 01:12:37 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-03-15 01:12:37 +0000 |
commit | afa21aa096c551b147654a957059194719bca487 (patch) | |
tree | 5be3af8250a9f9ad36416da7856824548c732eeb | |
parent | Disable SpamAssassin bayes autolearn and use MySQL for shared learning storage (diff) | |
download | config-afa21aa096c551b147654a957059194719bca487.tar.bz2 config-afa21aa096c551b147654a957059194719bca487.tar.xz config-afa21aa096c551b147654a957059194719bca487.zip |
Add SpamAssassin shortcut scores
-rw-r--r-- | etc/spamassassin.cf | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/etc/spamassassin.cf b/etc/spamassassin.cf index 5e76110..3ffe912 100644 --- a/etc/spamassassin.cf +++ b/etc/spamassassin.cf @@ -32,6 +32,7 @@ trusted_networks 10.10. 78.109.177.232 13.79.167.175 # Set the threshold at which a message is considered spam (default: 5.0) # required_score 3.5 +score BAYES_999 2.0 # Use Bayesian classifier (default: 1) @@ -81,26 +82,25 @@ bayes_sql_override_username root # Some shortcircuiting, if the plugin is enabled # +loadplugin Mail::SpamAssassin::Plugin::Shortcircuit ifplugin Mail::SpamAssassin::Plugin::Shortcircuit # -# default: strongly-whitelisted mails are *really* whitelisted now, if the -# shortcircuiting plugin is active, causing early exit to save CPU load. -# Uncomment to turn this on +# default: strongly-welcomelisted mails are *really* welcomelisted now, if +# the 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_WELCOMELIST on +# shortcircuit USER_IN_DEF_WELCOMELIST on # shortcircuit USER_IN_ALL_SPAM_TO on -# shortcircuit SUBJECT_IN_WHITELIST on -# the opposite; blacklisted mails can also save CPU +# the opposite; blocklisted mails can also save CPU # -# shortcircuit USER_IN_BLACKLIST on -# shortcircuit USER_IN_BLACKLIST_TO on -# shortcircuit SUBJECT_IN_BLACKLIST on +# shortcircuit USER_IN_BLOCKLIST on +# shortcircuit USER_IN_BLOCKLIST_TO on # if you have taken the time to correctly specify your "trusted_networks", # this is another good way to save CPU @@ -109,7 +109,7 @@ ifplugin Mail::SpamAssassin::Plugin::Shortcircuit # and a well-trained bayes DB can save running rules, too # -# shortcircuit BAYES_99 spam -# shortcircuit BAYES_00 ham +shortcircuit BAYES_999 spam +shortcircuit BAYES_00 ham endif # Mail::SpamAssassin::Plugin::Shortcircuit |