Topic: iRedMail trouble with antiSpamWithSieve
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MARIADB edition
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Ngnix
- Manage mail accounts with iRedAdmin-Pro? not yet, trying to get basic functionality working.
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
New iRedMail user, trying to get user spam training working. I followed the instructions here:
https://forum.iredmail.org/topic13615-u … pdate.html
I initialized the database with the sample spam, and afterwards wanted to check if it was actually training. I used my IMAP client to move a few messages into the Junk folder, then tried the command:
sa-learn --dump
but got error
dbg: bayes: unable to initialize database for root user, aborting!
Then tried
# sudo --user vmail sa-learn --dump
and received this at the top of the output
0.000 0 3 0 non-token data: bayes db version
0.000 0 1 0 non-token data: nspam
0.000 0 0 0 non-token data: nham
0.000 0 65 0 non-token data: ntokens
The non-token data:nspam does not seem to increment itself past 1, and ntokens does not seem to increment past 65. I am assuming these came from the sample spam.
I'm not sure what to look at here. I turned on the $sa_debug = 1; in /etc/amavis/amavis.conf and that does seem to indicate some activity in /var/log/maillog with incoming SMTP connections, but I am not noticing anything from the training at all. I'm really at a loss for what to look at/change to make user training work. I am simply trying to get spam/ham training working for users using IMAP by having them manually move mails in/out of their Junk folders.
Are there any thoughts what I might look at here and how to get more logging/confirmation of the learning process taking place? Where am I going wrong?
Thanks so much
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.