Using shortcuts with a well trained bayes db.
Posted: 04 Feb 2020 09:50
				
				Shortcutting is an easy way to save some CPU load.
Shortcut must be active in
As there are many possible combinations, just start one by one  
 
First run
Second run on same message source
			Shortcut must be active in
Code: Select all
/etc/mail/spamassassin/v320.pre 
 Code: Select all
/etc/mail/spamassassin/local.cfCode: Select all
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
#
 shortcircuit USER_IN_WHITELIST       on
# shortcircuit USER_IN_DEF_WHITELIST   on
# shortcircuit USER_IN_ALL_SPAM_TO     on
# shortcircuit SUBJECT_IN_WHITELIST    on
#   the opposite; blacklisted mails can also save CPU
#
 shortcircuit USER_IN_BLACKLIST       on
 shortcircuit USER_IN_BLACKLIST_TO    on
# shortcircuit SUBJECT_IN_BLACKLIST    on
#   if you have taken the time to correctly specify your "trusted_networks",
#   this is another good way to save CPU
#
# shortcircuit ALL_TRUSTED             on
#   and a well-trained bayes DB can save running rules, too
#
 shortcircuit BAYES_99                spam
# shortcircuit BAYES_00                ham
endif # Mail::SpamAssassin::Plugin::Shortcircuit