Spamassassin rules, words with accent

Feb 8, 2022
5
0
6
37
Hello,
I have a general question about Spamassassin.

If I want to block terms with accents ( é, è , à..), what is the best way to proceed?

- Characters substitutions ( .+ ) or regex containing all possible accents ? (all possibles because spammer use variantes like é,è)

The problem of ".+" is that it will look for the characters before in the whole text, which inevitably can generate false positives.

- Should we double the rules in order to take into account different encodings?

Eg. of rule for "Veulliez débloquer votre accès" :

header LOCAL_SBJ_0008 Subject =~ /Veuillez d.+bloquer votre acc.+/i
score LOCAL_SBJ_0008 5.0
describe LOCAL_SBJ_0008 Sujet : Phishing bancaire

Thanks,
Best regards,
Philippe
 

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!