1

Topic: spamassassin bayes seems does not work in Debian Jessie

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Debian Jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

I followed this howto

http://www.iredmail.org/docs/store.spam … n.sql.html

but seems does not work in Debian Jessie.
The data are stored in MySQL but for some reason are ignored by spamassassin/amavis-new

There is one step of this doc that needs to be convert for Debian:

amavisd -c /etc/amavisd/amavisd.conf debug 2>&1 | grep -i 'bayes'

that command isn't work on Debian and looks like the bayes are not loaded in spamassassin/amavis

How can I check that on Debian?

Thank you

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: spamassassin bayes seems does not work in Debian Jessie

Please turn on debug mode in Amavisd and SA for further debug:
http://www.iredmail.org/docs/debug.amavisd.html

3

Re: spamassassin bayes seems does not work in Debian Jessie

ZhangHuangbin wrote:

Please turn on debug mode in Amavisd and SA for further debug:
http://www.iredmail.org/docs/debug.amavisd.html

Thanks, from that log I can see it's load.
I would suggest to implement a script like:

sa-learn --spam --username=vmail /var/vmail/vmail1/domain.com/a/a/a/aaa-2015.08.27.00.30.57/Maildir/.Junk/{cur,new}
sa-learn --ham --username=vmail /var/vmail/vmail1/domains.com/a/a/a/aaa-2015.08.27.00.30.57/Maildir/{cur,new}

and runs it once a day.
(better then using roundcube plugin)

It's important to train SA with ham and spam (don't use just spam because it does not work)