[SOLVED] Spam-filter

Discussion in 'Mail Gateway: Installation and configuration' started by Grogory, Feb 21, 2019.

  1. Grogory

    Grogory New Member

    Joined:
    Feb 15, 2019
    Messages:
    15
    Likes Received:
    0
    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?
     
  2. Stoiko Ivanov

    Stoiko Ivanov Proxmox Staff Member
    Staff Member

    Joined:
    May 2, 2018
    Messages:
    1,125
    Likes Received:
    91
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Grogory

    Grogory New Member

    Joined:
    Feb 15, 2019
    Messages:
    15
    Likes Received:
    0
    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.
     
  4. Stoiko Ivanov

    Stoiko Ivanov Proxmox Staff Member
    Staff Member

    Joined:
    May 2, 2018
    Messages:
    1,125
    Likes Received:
    91
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Grogory

    Grogory New Member

    Joined:
    Feb 15, 2019
    Messages:
    15
    Likes Received:
    0
    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...
     
  6. Stoiko Ivanov

    Stoiko Ivanov Proxmox Staff Member
    Staff Member

    Joined:
    May 2, 2018
    Messages:
    1,125
    Likes Received:
    91
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Grogory

    Grogory New Member

    Joined:
    Feb 15, 2019
    Messages:
    15
    Likes Received:
    0
    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?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice