From 5d093901470bdf6cb2fd39e85e22fbbeb100475b Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 8 Sep 2022 17:32:50 +0200 Subject: [PATCH] enable rspamd's autolearn feature --- core/rspamd/conf/classifier-bayes.conf | 6 ++++++ towncrier/newsfragments/2446.bugfix | 1 + 2 files changed, 7 insertions(+) create mode 100644 core/rspamd/conf/classifier-bayes.conf create mode 100644 towncrier/newsfragments/2446.bugfix diff --git a/core/rspamd/conf/classifier-bayes.conf b/core/rspamd/conf/classifier-bayes.conf new file mode 100644 index 00000000..510b5814 --- /dev/null +++ b/core/rspamd/conf/classifier-bayes.conf @@ -0,0 +1,6 @@ +autolearn { + spam_threshold = 6.0; # When to learn spam (score >= threshold) + ham_threshold = -0.5; # When to learn ham (score <= threshold) + check_balance = true; # Check spam and ham balance + min_balance = 0.9; # Keep diff for spam/ham learns for at least this value +} diff --git a/towncrier/newsfragments/2446.bugfix b/towncrier/newsfragments/2446.bugfix new file mode 100644 index 00000000..331afba0 --- /dev/null +++ b/towncrier/newsfragments/2446.bugfix @@ -0,0 +1 @@ +Enable rspamd's autolearn feature to ensure that its bayes classifier has enough HAM to make it usable. Previously the bayes module would never work unless some HAM had been learnt manually.