Topic: SpamAssassin training not working
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello, I have a problem with SpamAssassin.
I followed this guide: https://docs.iredmail.org/dovecot.imapsieve.html
And set up everything as it says.
I confirmed that everything works, since when I move an email to "Spam", "/var/log/dovecot/imap.log" reports:
Jan 31 21:10:42 c7 dovecot: imap(<email>): sieve: pipe action: piped message to program `imapsieve_copy'
Jan 31 21:10:42 c7 dovecot: imap(<email>): sieve: left message in mailbox 'Junk'
Jan 31 21:10:42 c7 dovecot: imap(<email>): expunge: box=INBOX, uid=7, msgid=, size=7805, from=<email>, subject=<subject>
And "/var/log/syslog" reports:
Jan 31 05:03:16 mail scan_reported_mails: [SPAM] Learned tokens from 1 message(s) (1 message(s) examined)
However, after sending literally the same email again, it gets delivered in the "Inbox" folder.
I tried moving it to spam multiple times, but the situation does not improve.
Any idea why?
Thanks!
P.S.: The email is a spammy email that contains phishing links and grammar errors, so it shouldn't be too difficult to identify.
Sending the GTUBE ( XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-S.........) in an empty mail's body gets it delivered in the Spam folder, so SpamAssassin and Amavisd are working correctly.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.