1

Topic: How can I change BAYES_NN scores?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1 PGSQL edition
- Deployed with iRedMail Easy or the downloadable installer? via installer (.sh script)
- Linux/BSD distribution name and version: (debian 12)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I want to change scores like BAYES_99 to give higher score than 3.5 as you can see in example from mail:

X-Spam-Status: No, score=3.714 tagged_above=-999 required=4.2
tests=[BAYES_99=3.5, BAYES_999=0.2, DMARC_MISSING=0.001,
HTML_IMAGE_ONLY_32=0.001, HTML_IMAGE_RATIO_08=0.001, HTML_MESSAGE=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_TVD_MIME_EPI=0.01]
autolearn=no autolearn_force=no

I tried overriding this in config here:

root@mail:/etc/spamassassin# tail local.cf
score BAYES_20 -0.001
score BAYES_40 -0.001
score BAYES_50 0.8
score BAYES_60 1.8
score BAYES_80 2.2
score BAYES_95 3.2
score BAYES_99 3.8
score BAYES_999 0.2

but it does nothing. I can also edit it in /usr/share/spamassassin/50_scores.cf but that is not a file that is meant to be edited by user.

What is the correct location where users can adjust this?

----

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