KAM_DMARC_REJECT Score not working

Sep 17, 2020
315
20
38
Hello All,

I have the KAM rules set within SA for my PMG.
We have been seeing a lot of rejections:

KAM_DMARC_REJECT 6 DKIM has Failed or SPF has failed on the message and the domain has a DMARC reject policy

Weather that is blocking legitimately or not, I'm not questioning, but because of all the false positives, I basically added to my config:
/etc/mail/spamassassin/custom.cf

score KAM_DMARC_REJECT 0

Ran
systemctl restart pmg-smtp-filter

This is still blocking emails with a score of 6.
I rebooted the server, retyped the settings etc, with no luck always scoring 6.

I can find the score in KAM.cf located in /usr/share/spamassassin-extra/kam_sa-channels_mcgrail_com but I know that is NOT the right place for me to change it, and when the rules get updated, my change would be overwritten.

Any suggestions / Am I doing something wrong?

Thanks
 
Hi.
As i understrand, custom.cf work only for new rules.
You can change SA rules cost via GUI. Configuration -> Spam Detector -> Custom Scores
It creates pmg-scores.cf file in same directory, that will change rule cost.
 
In most SA installs the local.cf does allow you to change rule scoring, but I will try your method, which does make it easier to visualize the customized scores. Will try... Thanks.
 
Can you share content of created /etc/mail/spamassassin/pmg-scores.cf file?
And after adding did you push apply custom score button to reload mail filters?
1682390806069.png
 
Last edited:

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!