Spamassassin KAM module - Adjust score

Aug 28, 2019
I try to adjust score for KAM module in (/etc/mail/spamassassin/, but it does not work.

cat /etc/mail/spamassassin/

# Sending domain does not have any anti-forgery methods
# Default 1

If I change the score direct in file, then it is working

Is it a bug in PMG?
the issue here is most likely:
* /etc/mail/spamassassin/ gets read and included before /etc/mail/spamassassin/
* /etc/mail/spamassassin/ is the file that includes (and thus the original definition of the score of that rule)

You could use the following to work around the issue :
* copy and adapt the template for /var/lib/pmg/templates/ (see the reference documenation:
* enter your modified score there (after the loading of
* restart pmg-smtp-filter

The downside is that you need to keep track of potential changes from the packaged version shipped in /var/lib/pmg/templates/

I hope this helps!
  • Like
Reactions: MartinH


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!