How to blacklist or whitelist emails with cPanel

In this article, we’ll take a look at how to “blacklist” or “whitelist” emails using the SpamAssassin tool, in cPanel.

If you receive unwanted mail on a regular basis from a specific address (or domain), you can permanently blacklist the sender. This will block any email from that sender from reaching your inbox.

Alternatively, you can also whitelist an email, which effectively adds the sender to your “approved” list. Emails sent from a whitelisted address will always appear in your inbox, instead of your spam or junk folder. 

How to blacklist an email

  1. Log in to cPanel via your Client Area
  2. Under the Email section, click Spam Filters cPanel Email Settings
  3. Scroll down to Additional Configurations (For Advanced Users), then click Show Additional ConfigurationscPanel Email Settings
  4. Scroll down to Blacklist (Emails Never Allowed), then click Edit Spam Blacklist SettingscPanel Email Settings
  5. Click Add A New “blacklist_from” ItemcPanel Email Settings
  6. Enter the email address (e.g. user@example.com ) that you want to blacklist, or you can enter an entire domain (e.g. *@example.com - adding * before the @ will encompass all email coming from the example.com domain)
  7. When you’re done, click the Update Blacklist (blacklist_from) buttoncPanel Email Settings
  8. A success message will appear in the top-right corner:cPanel Email Settings
  9. If you ever want to delete a blacklisted email, return to this screen, and click the X next to the entry you wish to deletecPanel Email Settings

How to whitelist an email

  1. Log in to cPanel
  2. Under the Email section, click Spam FilterscPanel Email Settings
  3. Scroll down to Additional Configurations (For Advanced Users), then click Show Additional ConfigurationscPanel Email Settings
  4. Scroll down to Whitelist (Emails Always Allowed), then click Edit Spam Whitelist SettingscPanel Email Settings
  5. Click Add A New “whitelist_from” ItemcPanel Email Settings
  6. Enter the email address (e.g. user@example.com ) that you want to whitelist, or you can enter an entire domain (e.g. *@example.com - adding * before the @ will encompass all email coming from the example.com domain)
  7. When you’re done, click the Update Whitelist (blacklist_from) buttoncPanel Email Settings
  8. A success message will appear in the top-right corner:cPanel Email Settings
  9. If you ever want to delete a whitelisted email, return to this screen, and click the X next to the entry you wish to deletecPanel Email Settings

Significant improvements have been made to spam filtering technology over the years, however, no system is 100% effective. Knowing how to blacklist and whitelist email yourself, is a great way to maintain complete control of your inbox.

Was this answer helpful?