mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
activate shortcircuit plugin, fixes #1442
This commit is contained in:
parent
b435c3866c
commit
ff1248eeee
|
@ -1402,12 +1402,16 @@ function _setup_security_stack() {
|
|||
sed -i -r 's/^\$sa_spam_subject_tag (.*);/\$sa_spam_subject_tag = '"'$SA_SPAM_SUBJECT'"';/g' /etc/amavis/conf.d/20-debian_defaults
|
||||
fi
|
||||
|
||||
# activate short circuits when SA BAYES is certain it has spam.
|
||||
# activate short circuits when SA BAYES is certain it has spam or ham.
|
||||
if [ "$SA_SHORTCIRCUIT_BAYES_SPAM" = 1 ]; then
|
||||
# automatically activate the Shortcircuit Plugin
|
||||
sed -i -r 's/^# loadplugin Mail::SpamAssassin::Plugin::Shortcircuit/loadplugin Mail::SpamAssassin::Plugin::Shortcircuit/g' /etc/spamassassin/v320.pre
|
||||
sed -i -r 's/^# shortcircuit BAYES_99/shortcircuit BAYES_99/g' /etc/spamassassin/local.cf
|
||||
fi
|
||||
|
||||
if [ "$SA_SHORTCIRCUIT_BAYES_HAM" = 1 ]; then
|
||||
# automatically activate the Shortcircuit Plugin
|
||||
sed -i -r 's/^# loadplugin Mail::SpamAssassin::Plugin::Shortcircuit/loadplugin Mail::SpamAssassin::Plugin::Shortcircuit/g' /etc/spamassassin/v320.pre
|
||||
sed -i -r 's/^# shortcircuit BAYES_00/shortcircuit BAYES_00/g' /etc/spamassassin/local.cf
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue