Spamassasin filter foreign language emails
Hi,
I would like to do global filtering of foreign language emails using Spamassasin. I would like to reject emails especially Chinese. I have gone through different docs regarding the same. Below are the ones which I have followed for testing. Meanwhile I could see non are helpful. Still I receive Chinese emails. I have tried to debug the case and found the below error in "/var/log/maillog". Look to have some expert advise on this.
lifewire.com/spamassassin-foreign-language-spam-1166250
weavweb.net/2015/10/11/cpanel-email-filtering-to-stop-chinese-or-non-english-character-spam/
config: failed to parse, now a plugin, skipping, in "/etc/mail/spamassassin/local.cf": ok_languages en de la th sv
-
Hello, Could you let us know the specific changes you made to the /etc/mail/spamassassin/local.cf file? Thank you. 0 -
Hi, I just added the below line as extra in /etc/mail/spamassassin/local.cf, rest of the things are default. ok_languages en 0 -
Hello, You'd need to also enable the TextCat plugin referenced at: ImproveAccuracy - Spamassassin Wiki To do so, add the following line to the /etc/mail/spamassassin/init.pre file: loadplugin Mail::SpamAssassin::Plugin::TextCat
Then, restart SpamAssassin via:/scripts/restartsrv_spamd
Thank you.0 -
Hi, Thanks for the update. I have done the same, but still emails with Chinese are coming and it is reaching inbox. 0 -
Hello, Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you. 0 -
Hi, Ticket is opened for the same. Ticket number # 8605173 0 -
Hello, To update, a symbolic link was created using the below commands to ensure the TextCat SpamAssassin plugin worked as expected: cd /var/lib/spamassassin/3.004001/ ln -s updates_spamassassin_org/languages languages
Thank you.0 -
Meanwhile it is not working still. Chinese emails are coming as usual to inbox. I have updated the same in ticket. 0 -
I once wrote a filter rule to block chinese emails. Take a look at all the chinese emails that your recieve and you'll start to spot a few common chinese characters. I copied and pasted a few in to a global filter rule, they almost stopped over night. 0
Please sign in to leave a comment.
Comments
9 comments