This article describes how you can block Top Level Domains (TLD) for specific countries using a content examination definition. This should be read in conjunction with the Content Examination - Definitions and Content Examination Policy pages.
Overview
There are two ways to block emails sent from top-level domains. Both require you to use a regular expression but differ where this is placed in the definition. The options are the:
-
-
- Applies From field in a policy
- Word / Phrase Match List field in a definition
-
Using a Policy
To block top-level domains using a policy, configure it using the following values:
| Field / Option | Value |
|---|---|
| Addresses Based On | The Return Address (Email Envelope From). |
| Applies From | Individual Email Address. |
| Specifically | Enter a regular expression with each undesirable top-level domain in brackets separated by a "|" character and sharing a key with the backslash '\'). For example:
regex: \b.*@.*\.(ac|ba|ci|download|fo)\b |
Using a Definition
To block top-level domains using a definition, configure it using the following values:
| Field / Option | Value |
|---|---|
| Definition Type | Independent Content Definition. |
| Activation Score | 1. |
| Fuzzy Hash Setting | Do Not Use Fuzzy Hash Techniques. |
| Word / Phrase Match List | Enter a regular expression with each top-level domain on a separate line. For example:
1 regex (\.ac\>) 1 regex (\.ba\>) 1 regex (\.ci\>) 1 regex (\.download\>) 1 regex (\.fo\>) |
| Scan Message Headers | Selected. |
This method has the advantage of making it easier to maintain the list of blocked top-level domains, as individual entries can be added or removed from the Word Phrase Match List field.
Comments
I want to hold all emails from a domain until they have been cleared by one of my technicians, not blocked completely…
hi John, many thanks for your feedback.
There are some links at the start of this article which should be useful:
Setting up Content Examination Policy (for a specific domain), with a corresponding Content Examination Definition (for the required Hold action) will hold messages that your technicians can then monitor
Also see https://mimecastsupport.zendesk.com/hc/en-us/articles/34000774230547-Held-Messages-Monitoring.
Please sign in to leave a comment.