[SOLVED] Overriding Spam Assassin Scores

Jan 24, 2021
11
0
6
54
HI Everyone,

I'm having legitimate mail being flagged/blocked by two particular spam assassin rules.
I don't seem to be able to alter the rule scores though.

I'm following the admin guide https://www.proxmox.com/en/downloads/category/documentation-pmg
4.7.3 Customization of Rulescores

But despite adding my custom rulescores and restarting the smtp-filter process, The old scores are still being applied.

Configuration -> Spam Detector -> Custom Scores
Code:
+# A lot of legit mail from sendgrid too.
+score KAM_SENDGRID 1.000

Code:
Feb 18 17:57:13 mx01 pmg-smtp-filter[1799]: 792CF602E0FC913A4F: new mail message-id=<376884041.827.1613631426921@xxxxx.com>#012
Feb 18 17:57:14 mx01 pmg-smtp-filter[1799]: 792CF602E0FC913A4F: SA score=2/5 time=1.703 bayes=undefined autolearn=no autolearn_force=no hits=AWL(0.556),DKIM_SIGNED(0.1),DKIM_VALID(-0.1),DKIM_VALID_AU(-0.1),DKIM_VALID_EF(-0.1),HTML_MESSAGE(0.001),KAM_REALLYHUGEIMGSRC(0.5),KAM_SENDGRID(1.5),LOTS_OF_MONEY(0.001),RCVD_IN_MSPIKE_H2(-0.001),SPF_HELO_NONE(0.001),SPF_PASS(-0.001),T_FILL_THIS_FORM_SHORT(0.01),UNPARSEABLE_RELAY(0.001)

KAM_SENDGRID(1.5)

What am I doing wrong?
 
* did you click on the apply custom scores button in the GUI (this one also offers you to restart pmg-smtp-filter)?
* if yes - is that maybe a clustered setup?
 
did you click on the apply custom scores button in the GUI (this one also offers you to restart pmg-smtp-filter)?
yes but thanks you led me to the problem.

even after restarting the pmg-smtp-filter service (in Administration -> services), the GUI is still showing my alterations as pending changes.
Screen Shot 2021-02-18 at 22.45.04.png

the service is definitely restarting
Code:
Feb 18 22:37:50 mx01 pmgdaemon[8268]: re-starting service pmg-smtp-filter: UPID:mx01:0000204C:0D865D92:602E518E:srvrestart:pmg-smtp-filter:root@pam:
Feb 18 22:37:50 mx01 pmgdaemon[1782]: starting task UPID:mx01:0000204C:0D865D92:602E518E:srvrestart:pmg-smtp-filter:root@pam:
Feb 18 22:37:50 mx01 systemd[1]: Stopping Proxmox SMTP Filter Daemon...
Feb 18 22:37:50 mx01 systemd[1]: pmg-smtp-filter.service: Succeeded.
Feb 18 22:37:50 mx01 systemd[1]: Stopped Proxmox SMTP Filter Daemon.
Feb 18 22:37:50 mx01 systemd[1]: Starting Proxmox SMTP Filter Daemon...
Feb 18 22:37:51 mx01 systemd[1]: Started Proxmox SMTP Filter Daemon.
Feb 18 22:37:51 mx01 pmgdaemon[1782]: end task UPID:mx01:0000204C:0D865D92:602E518E:srvrestart:pmg-smtp-filter:root@pam: OK
 
tried this here - clicking on 'Apply Custom Scores' in GUI->Configuration->Spam Detector->Custom Scores works
* it applies the scores
* there are no more pending changes
* if selected pmg-smtp-filter gets restarted

...
 
Glad you managed to solve the issue - please mark the thread as 'SOLVED' (by clicking 'Edit Thread' above your first post)- this helps others with similar questions

Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!