Skip to main content

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. Under the Email section, click Spam Filters

    cPanel Email Settings
  2. Scroll down to Additional Configurations (For Advanced Users), then click Show Additional Configurations

    cPanel Email Settings
  3. Scroll down to Blacklist (Emails Never Allowed), then click Edit Spam Blacklist Settings

    cPanel Email Settings
  4. Click Add A New “blacklist_from” Item

    cPanel Email Settings
  5. Enter the email address (e.g. [email protected] ) 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)

  6. When you’re done, click the Update Blacklist (blacklist_from) button

    cPanel Email Settings
  7. A success message will appear in the top-right corner:

    cPanel Email Settings
  8. If you ever want to delete a blacklisted email, return to this screen, and click the X next to the entry you wish to delete

    cPanel Email Settings

How to whitelist an email

  1. Under the Email section, click Spam Filters

    cPanel Email Settings
  2. Scroll down to Additional Configurations (For Advanced Users), then click Show Additional Configurations

    cPanel Email Settings
  3. Scroll down to Whitelist (Emails Always Allowed), then click Edit Spam Whitelist Settings

    cPanel Email Settings
  4. Click Add A New “whitelist_from” Item

    cPanel Email Settings
  5. Enter the email address (e.g. [email protected] ) 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)

  6. When you’re done, click the Update Whitelist (blacklist_from) button

    cPanel Email Settings
  7. A success message will appear in the top-right corner:

    cPanel Email Settings
  8. If you ever want to delete a whitelisted email, return to this screen, and click the X next to the entry you wish to delete

    cPanel 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.

Did this answer your question?