[SOLVED] Spam-filter


Feb 15, 2019
Hello! Is there the way to block certain phrases in the body of the letter in Russian encoding (such as 'порно' or 'секс') using /etc/mail/spamassassin/custo.cf? Or need to use any other methods to block Russian phrases?
Thanks for the quick answer. I understand that this is not a completely trivial task. But I can not understand whether spassassin works with Russian rules by default.
hm - you can test if it works (send an email which contains the word you want to block - and check the spam-report in the header) - hope this helps!
I tested, but it does not working with russian sentenses... The problem, I fink, that the body of russian email can have utf-8, win1251 and koi8_r encoding. If I understand, emal in this cases is transfered with base64 encoding. I fink spamassasin do not recognise body content in this cases. It will be good, if spamassassin convert e-mal to the utf-8, analise body, and then convert mail to encoding in witch it was received and send it. But I fink it is impossible.... But I can not undestand, how it works in Barracuda Spam filter. In Barracuda I can add russian phrases (regexp) from web interface and it work very good...
Hi, very usefull link for russian phrases is http://sa-russian.narod.ru/downloads.html. I download 6 files from this link, then edit the file tokens_utf-8.txt - create minimal test rule with regexp, then I generate *.cf rule files by the script make_rules.pl, after that I combited all *.cf files to the file cutom.cf and put the file to the /etc/mail/spamassassin/. After that spamassassin work with russian phrases. It seems to me
a good idea would be to include the posibility to add custom phrases for spamassassin to the web interface of PMG (as implemented in Barracuda Spam Firewall), is not it?


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!