How to Block Emails by Country or Domain in WHM/cPanel?

In the latest version of the cPanel, they have added new features to block emails by country or domain. This feature is very useful when you want to reduce spam emails. You can follow the below steps to use these features.

Block Incoming Emails by Country

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

  1. Log in to your WHM panel.
  2. In the Email section, select the option Filter Incoming Emails by Country.
  3. In this option, you will see the list of all the countries. By default, emails from all countries are allowed. Disable the country you don’t want to receive emails. You can also select multiple countries and click on Blocked Selected.
    block emails by country in whm server

Filter Incoming Emails by Domain

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

  1. Log in to your WHM panel.
  2. Inside the Email section, select the option Filter Incoming Emails by Domain.
  3. In this interface, you add the domains 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 the Save button once you have added the domains to be blocked in the text bar to take this filter effect.
  5. block emails by domain in whm server

Once you have followed the above steps, it will block emails by country or domain name in cPanel.

Add a Comment

Your email address will not be published. Required fields are marked *