[Rspamd-Users] Recurring message in rspamd.log

Steve Witten caponecicero at gmail.com
Sun Mar 24 22:17:57 UTC 2024


I found some discrepancies between *${CONFDIR}/statistic.conf* and
*${CONFDIR}/local.d/classifier-bayes.conf*.  I corrected those and
restarted both redis and rspamd but to no avail...

*${CONFDIR}/statistic.conf*

classifier "bayes" {
>   tokenizer {
>     name = "osb";
>   }
>   cache {
>   }
>   new_schema = true; # Always use new schema
>   store_tokens = false; # Redefine if storing of tokens is desired
>   signatures = false; # Store learn signatures
>   #per_user = true; # Enable per user classifier
>   min_tokens = 11;
>   backend = "redis";
>   min_learns = 200;
>   statfile {
>     symbol = "BAYES_HAM";
>     spam = false;
>   }
>   statfile {
>     symbol = "BAYES_SPAM";
>     spam = true;
>   }
>   learn_condition = 'return require("lua_bayes_learn").can_learn';
>   # Autolearn sample
>   # autolearn {
>   #  spam_threshold = 6.0; # When to learn spam (score >= threshold and
> action is reject)
>   #  junk_threshold = 4.0; # When to learn spam (score >= threshold and
> action is rewrite subject or add header, and has two or more positive
> results)
>   #  ham_threshold = -0.5; # When to learn ham (score <= threshold and
> action is no action, and score is negative or has three or more negative
> results)
>   #  check_balance = true; # Check spam and ham balance
>   #  min_balance = 0.9; # Keep diff for spam/ham learns for at least this
> value
>   #}
>   .include(try=true; priority=1)
> "$LOCAL_CONFDIR/local.d/classifier-bayes.conf"
>   .include(try=true; priority=10)
> "$LOCAL_CONFDIR/override.d/classifier-bayes.conf"
> }
> .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/statistic.conf"
> .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/statistic.conf"
>

*${CONFDIR}/local.d/classifier-bayes.conf*

classifier "bayes" {
>   tokenizer {
>     name = "osb";
>   }
>   cache {
>     backend = "redis";
>   }
>   new_schema = true; # Always use new schema
>   store_tokens = false; # Redefine if storing of tokens is desired
>   signatures = true; # Store learn signatures
>   #per_user = true; # Enable per user classifier
>   min_tokens = 11;
>   backend = "redis";
>   min_learns = 200;
>   expire = 604800; # 7 days (60 * 60 * 24 * 7)
>   statfile {
>     symbol = "BAYES_HAM";
>     spam = false;
>   }
>   statfile {
>     symbol = "BAYES_SPAM";
>     spam = true;
>   }
>   learn_condition = 'return require("lua_bayes_learn").can_learn';
>   # Autolearn sample
>   #
>   autolearn {
>     spam_threshold = 6.0; # When to learn spam (score >= threshold and
> action is reject)
>     junk_threshold = 4.0; # When to learn spam (score >= threshold and
> action is rewrite subject or add header, and has two or more positive
> results)
>     ham_threshold = -0.5; # When to learn ham (score <= threshold and
> action is no action, and score is negative or has three or more negative
> results)
>     check_balance = true; # Check spam and ham balance
>     min_balance = 0.9; # Keep diff for spam/ham learns for at least this
> value
>   }
> }


--
Steve Witten

On Sun, Mar 24, 2024 at 11:08 AM Steve Witten <caponecicero at gmail.com>
wrote:

> Greetings!
>
> I have an *rspamd* installation running on *FreeBSD 14.0-RELEASE-p5*.  My
> *rspamd* version is *3.8.4.*
>
> Lately, I've been seeing lots of messages like this:
>

<snip />


More information about the Users mailing list