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?
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?