Using shortcuts with a well trained bayes db.

Questions and answers about how to do stuff
Post Reply
henk
Posts: 465
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Using shortcuts with a well trained bayes db.

Post by henk » 04 Feb 2020 09:50

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 426 times
Second run on same message source
Message Detail2.png
Message Detail2.png (11.37 KiB) Viewed 426 times

User avatar
shawniverson
Posts: 3143
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Using shortcuts with a well trained bayes db.

Post by shawniverson » 04 Feb 2020 23:32

:ugeek:
Version eFa 4.0.2 now available!

Post Reply