Page 1 of 1

Using shortcuts with a well trained bayes db.

Posted: 04 Feb 2020 09:50
by henk
Shortcutting is an easy way to save some CPU load.

Shortcut must be active in

Code: Select all

/etc/mail/spamassassin/v320.pre
As there are many possible combinations, just start one by one :idea:

Code: Select all

/etc/mail/spamassassin/local.cf

Code: 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
First run
Message Detail1.png
Message Detail1.png (26.47 KiB) Viewed 2191 times
Second run on same message source
Message Detail2.png
Message Detail2.png (11.37 KiB) Viewed 2191 times

Re: Using shortcuts with a well trained bayes db.

Posted: 04 Feb 2020 23:32
by shawniverson
:ugeek: