dkim=fail (2048-bit key) reason="fail (message has been altered)"

can you post the log from such a mail? AFAIR there is a spamassassin rule when DKIM fails, which you could increase the score of (so that it get's marked as spam)
 
Where are the logs stored for spamassassin that has the details? The tracking center log for the email doesn't show what the headers show. It has no details for dkim just that it is (0.1). I would post logs from spamassassin if I knew where they are.

Tracking Center for the email has SA of:
SA score=0/5 time=12.334 bayes=0.00 autolearn=no autolearn_force=no hits=BAYES_00(-1.9),DKIM_INVALID(0.1),DKIM_SIGNED(0.1),HTML_MESSAGE(0.001),HTML_TAG_BALANCE_BODY(0.1),KAM_DMARC_STATUS(0.01),KAM_HTMLNOISE(1),MISSING_MID(0.497),SPF_HELO_PASS(-0.001),SPF_PASS(-0.001),T_HTML_ATTACH(0.01)

dkim=fail (2048-bit key) reason="fail (message has been altered)​

This is what is in the header of the email:
Authentication-Results: mail.server.com (amavisd-new);
dkim=fail (2048-bit key) reason="fail (message has been altered)"
header.d=phishing_domain.com

I already have custom rules that block other emails based on patterns. If it is easy enough to have spamassassin block, can I match based on the dkim field and set the score to 10.
 
Where do I change the weight of DKIM_INVALID?

By turning off BAYES_00 you mean bayesian filter in Spam detector configuration? That was on by default I think. Do I lose anything by turning it off? Will more valid emails hit spam due to this change? So far we don't have any valid emails hitting spam. So trying to find the right balance when making changes.

Thanks again
 
Where do I change the weight of DKIM_INVALID?
configuration -> Spam detector -> custom scores, see https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_spamdetector_customscores

By turning off BAYES_00 you mean bayesian filter in Spam detector configuration? That was on by default I think. Do I lose anything by turning it off? Will more valid emails hit spam due to this change? So far we don't have any valid emails hitting spam. So trying to find the right balance when making changes.
in our experience, bayes in it's default configuration (so without manually feeding it data) it does not really help much, so we generally recommend it being turned off (AFAIR we do want to change the default to off sometime in the future)
 

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!