Start a conversation

Blocking Messages Written in a Particular Language

Overview

This article describes the steps on how to block unwanted Email messages written in a particular language, this is useful in cases where you are getting undesired emails or spam on a particular language.

Prerequisites

Ensure that you are logged on to GFI MailEssentials administration console using an account with administrative privileges.

Solution

There are two ways to block unwanted emails written in a specific language in MailEssentials:

  1. Language Detection
  2. Header Checking

Language Detection

  1. Open the GFI MailEssentials Configuration
  2. Go to Anti-Spam > Anti-Spam Filters > Language Detection
  3. From the General tab, select Filter emails by language option to enable Language Detection.
  4. Select the radio button titled Block the list below; or alternatively if desired select Block all except the list below  Language_detection_options.PNG
  5. Select the languages you would like to block, or allow if you chose the latter option in Step 4.
  6. Click Apply to save the changes

Header Checking

  1. Open the GFI MailEssentials Configuration
  2. Go to Anti-Spam > Anti-Spam Filters > Header Checking > Character Sets
  3. Check the Block mail that use these languages (character sets) checkbox  Header_checking_language_character_sets.PNG
  4. Select the radio button titled Block the list below, or alternatively if desired select Block all except the list below
  5. Select the languages you would like to block, or allow if you chose the latter option in step 4
  6. Click Apply to save the changes
Note: For correct language detection, the filters by design do not work if the number of characters is less than 50 for plain text or less than 300 for HTML.

Testing

You can confirm that the Language Detection filter is correctly evaluating and blocking Emails as expected by sending out a test Email written in a language that is in the blocked list.
MailEssentials should correctly block the Email which can be confirmed by checking the GFI MailEssentials > Dashboard > Logs for the Email:
quarantined_language_detection.PNG
You can also check the Language Detection filter log file ase_language_detection.gfi_log.txt which is located at ..GFI\MailEssentials\Antispam\DebugLogs and look out for the below lines which confirm that the Language Detection engine is properly initialized. Any Emails blocked by this filter will also be logged here.
","ase_language_detection","Language Detection - Status: [Enabled]"
","ase_language_detection","Language Detection - Block Type: [Block the list below]"
","ase_language_detection","Adding locale [1089]"
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments