Topic: how can I enable bayesian filter?
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1 PGSQL edition
- Deployed with iRedMail Easy or the downloadable installer? via installer (.sh script)
- Linux/BSD distribution name and version: (debian 12)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I migratede from my ancient 0.2 iredmail to latest version and I struggle with one simple thing - bayesian filter is obviously not being used at all, despite seemingly being enabled. I ran the sa-learn script to re-learn on my migrated mail boxes (about 200 000 emails of ham and spam) after few hours of crunching, database was created (on FS in /var/lib/amavis/.spamassassin), but the bayesian filters are NEVER applied, in X-Spam tags I can always see only things like this:
Tests: [DKIM_INVALID=0.1,DKIM_SIGNED=0.1,HTML_MESSAGE=0.001,MISSING_HEADERS=1.207,REPLYTO_WITHOUT_TO_CC=1.946,SPF_HELO_PASS=-0.001,SPF_PASS=-0.001], autolearn=no autolearn_force=no
On old server I saw things like:
tests=[BAYES_99=3.5, BAYES_999=0.2, HTML_IMAGE_ONLY_24=1.618,
HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
T_TVD_MIME_EPI=0.01] autolearn=no autolearn_force=no
How do I tell amavis to actually execute the bayesian filter?
grep bayes on /etc/spamassassin/local.cf:
local.cf:use_bayes 1
local.cf:bayes_auto_learn 1
local.cf:bayes_auto_expire 1
local.cf:use_bayes_rules 1
this is my db status:
# sa-learn --dump magic
0.000 0 3 0 non-token data: bayes db version
0.000 0 44863 0 non-token data: nspam
0.000 0 531 0 non-token data: nham
0.000 0 335894 0 non-token data: ntokens
0.000 0 1437166157 0 non-token data: oldest atime
0.000 0 1737529942 0 non-token data: newest atime
0.000 0 0 0 non-token data: last journal sync atime
0.000 0 1737538575 0 non-token data: last expiry atime
0.000 0 11059200 0 non-token data: last expire atime delta
0.000 0 1367011 0 non-token data: last expire reduction count
is there any tutorial on how to do that?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.