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

How to change max_input_vars in cPanel?

PHP collects the input variables from the cookies enabled on-page from the GET and POST requests....

How to Create Website from RVSiteBuilder in cPanel?

There are few site builders available in the market which can help the user to build their...

How to change PHP version from cPanel?

The latest version of cPanel/WHM (58.3.x) is shipped with the EasyApache 4.0. It allows you to...

How to Enable Spam Filters From cPanel to Reduce Incoming spam?

In order to filter out unwanted messages/spams, you can activate the Spam Filters anti-spam tool...