Topic: Amavisd marking authentic messages as spam
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version: iRedMail-1.6.5
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: AlmaLinux release 9.3 (Shamrock Pampas Cat)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Some messages are not being filtered correctly by Amavisd, in the tests I carried out the senderA@exemplo.com receives the flag X-Spam-Score: 1,514 and is marked as spam, below is an excerpt from the header:
X-Virus-Scanned: amavis at server.host.com
X-Spam-Flag: YES
X-Spam-Score: 1.514
X-Spam-Level: *
X-Spam-Status: Yes, score=1.514 tagged_above=0 required=0
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
DKIM_VALID_EF=-0.1, FORGED_HOTMAIL_RCVD2=0.874,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.6, HTML_MESSAGE=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001,
T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no
The amavisd.conf configuration looks like this:
$sa_tag_level_deflt = 6.2; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.2; # add 'spam detected' headers at that level
$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent
$sa_crediblefrom_dsn_cutoff_level = 18; # likewise, but for a likely valid From
The database configuration for the server, domain and account also has the same parameters
I am attaching a file with the debug of one of the tests I performed
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.