1

Topic: How to block incoming spam based on language?

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Active Directory
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello iReMail Community,

One of the accounts from my domain is being targeted by some Chinese spam. I've tried (successfully) blocking those domains using iRedap, but since the domains constantly change, this is becoming an unpractical task.

Now, since these emails are being sent in chinese language, I thought of blocking these emails based on the language. After some research I've come with this sitehttp://blog.le-vert.net/?p=67 (mentioned already in this forum https://forum.iredmail.org/topic9166-ir … sue.html), but doesn't work for me, as it didn't work for TumTum.

Any ideas on how to do this?

Thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: How to block incoming spam based on language?

TextCat works perfectly for me.

Used guide at http://blog.le-vert.net/?p=67 with adapted config file paths and removed HTML tags from code.

If the header X-Spam-Languages: does not show anything TextCat could not specify any language in the mail and was inop.

3

Re: How to block incoming spam based on language?

FYI: http://spamassassin.1065346.n5.nabble.c … d8387.html