Topic: Avamis doesn't trigger Spamassassin
==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.10
- Related log if you're reporting an issue: http://pastebin.com/D2qXrkmr
====
Hey there
I have a mail server running at the moment, set up with iRedMail. It's been working perfectly well for a few months, but my users do get an awful lot of spam. Apparently SpamAssassin wasn't configured or running. This is what I did so far to try and make it work:
Edited /etc/default/spamassassin: changed ENABLED to 1. (Otherwise SpamAssassin wouldn't start)
Edited /etc/amavis/conf.d/05-domain_id. Added the local domains so it would trigger tags, as such:
@local_domains_acl = ( [".$mydomain", ".maildomain.com", ".maildomain2.com", ".maildomain3.com" ] );Edited /etc/amavis/conf.d/20-debian_defaults so it would add spam tags to every mail for testing purposes:
$sa_tag_level_deflt = -1000;Restarted both Amavis and SpamAssassin, to no avail.
Here is the mail.log that shows up when I restart Amavis. It does seem to load the SpamAssassin module.
http://pastebin.com/D2qXrkmr
This is the only Amavis log entry that I get when I received a mail:
Apr 7 17:27:40 mail amavis[15836]: (15836-01) Passed CLEAN {RelayedOutbound}, LOCAL [***.***.***.***]:56878 [***.***.***.***] <testsender@mail.com> -> <testreceived@mail.com>, Queue-ID: 95BD92CD, Message-ID: <CAL3sA7gWvZbZC_baQjaYSCdDY6vNn$
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.