How to Block Emails by Country or Domain in cPanel?

In the latest version of cPanel, they have added new features to block the emails from any particular domain and country. In this article, we will discuss how to use these features.

Filter Incoming Emails by Country

Follow the below steps to filter the incoming emails from the country.

  1. Login to your WHM panel.

  2. Inside the Email section, select the option Filter Incoming Emails by Country.

  3. In this option, you will see the list of all the countries and by default emails from all countries are allowed. Disable the country from which you don't want to receive emails.


    filter email

Filter Incoming Emails by Domain

Please refer to the below steps to filter incoming emails coming from specific domains.

  1. Login to your WHM panel.

  2. Inside the Email section, select the option Filter Incoming Emails by Domain

  3. In this interface, you just need to add the domains from which you don’t want to receive the emails. You can reject all subdomains of a given domain by prefixing the name with an asterisk (*). For example, “*.example.com” will cause this server to reject all messages sent from any subdomain of “example.com”.

  4. Click on the Save button once you have added the domains to be blocked in the text bar to take this filter effect.

    filter mail by domain

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Understand the load average in cPanel.

In this article, we will give you an in-depth explanation of the system load average in cPanel....

How to change the default addon domain path from cPanel?

In this article, we will describe to you how to change the default root directory of your addon...

How to check cPanel Disk usage from cPanel disk usage tool?

You may require to check your cPanel account Disk-space regularly. Disk usage is one of the...

How to Block Bots using Robots.txt File in cPanel?

Robot.txt file is a simple text file created on a root directory of your website which allows the...