Filter Incoming Emails by Country
Valid for versions 102 through the latest version
Version:
102
Last modified: 2025 February 18
Looking for this interface?
Your hosting provider can enable or disable this interface for resellers in WHM's Edit Reseller Nameservers and Privileges interface (WHM >> Home >> Resellers >> Edit Reseller Nameservers and Privileges).
Overview
This interface allows you to filter your server’s incoming email by the region or country associated with the sending server’s IP address.
For example, you could use this feature to allow mail only from servers whose IP addresses are associated with a single country in the GeoIP database - for example, Canada. If you do, the server will block email messages from servers whose IP addresses have not been registered as Canadian with the American Registry for Internet Numbers.
-
The server uses this filter and the Filter Incoming Emails by Domain filter before it uses any other filters or settings to process email.
-
We update the GeoIP database for each major release cPanel & WHM version. This database includes GeoLite2 data created by MaxMind.
Countries table
This table includes a list of countries and regions. To block email messages from servers using IP addresses associated with specific countries or regions, disable the Allowed toggle for that country or region.
-
Country Name — This column lists each country and region from which to block email messages.
-
Allowed — This column lists whether a country can send email messages to your server.
-
Enable the toggle to allow email messages from servers whose IP addresses are associated with that country.
-
Disable the toggle to block email messages from servers whose IP addresses are associated with that country.
-
To allow or block every country, perform the following steps:
-
Select the Select All checkbox at the top left of the interface.
-
Click Allow Selected to allow the selected countries. Alternatively, click Block Selected to block them.