I need some help with #SpamAssassin because I am lost… I am trying to "fix" Microsoft's #M365 weird behaviour with sending calendar invites which, thanks to whatever they are doing now, is super-spammy:
1. the Message-Id contains a new line, i.e. (Message-Id:\nSomething very long) which breaks stuff
2. their relays (at least in Europe) present a different name at HELO than the PTR records - they are clearly migrating the nameing to be regional but forgot about anti-spam, SPF and DMARC, for example:
UZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazlp17012010.outbound.protection.outlook.com [40.93.64.10]
3.they also love sending empty messages, as in completely empty.
The behaviour is not consistent, that is to say that if you send a meeting invite to 90 or so people, then about 80% come back with some form of reply which is catalogued as spam with:
0.9 FORGED_SPF_HELO No description available.
1.8 DMARC_REJECT DMARC reject policy
2.3 EMPTY_MESSAGE Message appears to have no textual parts
Obviously I could "turn off" the rules but I would like to do so selectively for just a bunch of IPs (i.e. the damned Exchange ones).
Would anyone be able to help me with writing a conditional rule? Can it even be done? I've been searching my life away but I land on either AI-generated text or "just whitelist the IPs" which is not what I want to do.
:flan_despair: