From 9fae2e52ce7ad91dc5465448127979742012ccf0 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 15 Mar 2024 01:11:54 +0000 Subject: Disable SpamAssassin bayes autolearn and use MySQL for shared learning storage --- etc/spamassassin.cf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/etc/spamassassin.cf b/etc/spamassassin.cf index 177c76c..5e76110 100644 --- a/etc/spamassassin.cf +++ b/etc/spamassassin.cf @@ -41,7 +41,7 @@ use_bayes 1 # Bayesian classifier auto-learning (default: 1) # -bayes_auto_learn 1 +bayes_auto_learn 0 # Set headers which may provide inappropriate cues to the Bayesian @@ -51,7 +51,12 @@ bayes_auto_learn 1 # bayes_ignore_header X-Spam-Flag # bayes_ignore_header X-Spam-Status -bayes_path /var/lib/spamassassin/bayes +bayes_store_module Mail::SpamAssassin::BayesStore::MySQL +bayes_sql_dsn DBI:mysql:sa_bayes:mysql.random.lan:3306 +bayes_sql_username spamassassin +bayes_sql_password GXNY6zMe +bayes_sql_override_username root + # Whether to decode non- UTF-8 and non-ASCII textual parts and recode # them to UTF-8 before the text is given over to rules processing. -- cgit v1.2.3