Search Our Database

How to Whitelist and Blacklist Email Addresses using Spam Filters in cPanel

Last updated on |

Introduction

In cPanel, you can control which emails always reach your inbox and which are blocked, using the whitelist and blacklist in Spam Filters, powered by Apache SpamAssassin. Whitelisting ensures that emails from specific addresses or domains always reach your inbox, even if Apache SpamAssassin would otherwise mark them as spam — useful for preventing legitimate emails from important contacts, business partners, or mailing lists from being incorrectly filtered. Blacklisting marks emails from specific addresses or domains as spam, even if they would normally be allowed through — useful for blocking persistent spam senders or unwanted marketing emails. This guide walks you through how to whitelist and blacklist email addresses in cPanel. You can add individual email addresses, entire domains, or use wildcards to create flexible rules.

 

Prerequisite

  • Access to your cPanel login page.
  • Apache SpamAssassin must be enabled for your account.

Important Note⚠️: The whitelisting and blacklisting rules apply to all emails filtered by the Apache SpamAssassin feature in cPanel. It is recommended to periodically review these rules to ensure they remain effective and relevant.

 

Step-by-Step Guide

Step 1: Log in to cPanel

  • Access and log in to your cPanel account using your username and password.
    Log in to cPanel

 

Step 2: Open Spam Filters

  • In the Home page, under Email, click Spam Filters.
    cPanel Spam Filters

 

Step 3: Open Additional Configurations

  • Scroll down to the Additional Configurations (For Advanced Users) section.
  • Click Show Additional Configurations to display additional settings. Both the whitelist and blacklist settings are located here.
    Additional Configurations section

 

Step 4: Whitelist and Blacklist Email Address

Whitelisting ensures that emails from specific addresses or domains always reach your inbox and preventing legitimate emails from important contacts, business partners, or mailing lists from being incorrectly filtered.

Whilelist Email Addresses
  • Locate the Whitelist (Emails Always Allowed) section.
  • Click Edit Spam Whitelist Settings. This will direct you to the Whitelist interface.
    Whitelist settings
  • Click Add A New “whitelist_from” Item to add an email address.
    Add a new whitelist_from item
  • Enter the email address in the whitelist_from text box.

    Important Note⚠️: You can use wildcards for flexible whitelist rules:

    • user@example.com — whitelists a single email address.
    • *@example.com — whitelists all addresses from example.com (asterisk wildcard represents multiple characters).
    • ?ser@example.com — whitelists addresses with a single character variation, such as user@example.com (question mark wildcard represents a single character).

    Enter email address in whitelist_from

  • Click Update Whitelist (whitelist_from) to save your changes.
    Update Whitelist
  • A pop-up message will appear to confirm that your whitelist has been updated. The whitelisted email address will appear in the Spam Whitelist Items (whitelist_from) section.
    Whitelist updated confirmation

Blacklisting marks emails from specific addresses or domains for blocking persistent spam senders or unwanted marketing emails.

Blacklist Email Addresses
  • Locate the Blacklist (Emails Never Allowed) section.
  • Click Edit Spam Blacklist Settings. This will direct you to the Blacklist interface.
    Blacklist settings
  • Click Add A New “blacklist_from” Item to add an email address.
    Add a new blacklist_from item
  • Enter the email address in the blacklist_from text box.

    Important Note⚠️: The same wildcard formats apply to the blacklist. Blacklisted addresses will be automatically marked as spam and handled according to your spam filter settings. To blacklist email addresses across multiple cPanel accounts, use the Exim System Filter File instead.

    Enter email address in blacklist_from

  • Click Update Blacklist (blacklist_from) to save your changes.
    Update Blacklist
  • A pop-up message will appear to confirm that your blacklist has been updated. The blacklisted email address will appear in the Spam Blacklist Items (blacklist_from) section.
    Blacklist updated confirmation

 

Conclusion

By following this guidance, you can whitelist and blacklist email addresses using Spam Filters in cPanel. Whitelisting ensures that important emails from trusted senders always reach your inbox without being filtered as spam, while blacklisting blocks unwanted emails from specific senders or domains, improving your inbox organization and email security.

 

For additional assistance or if you encounter any issues, please contact our support team at support@ipserverone.com.

 

Article updated on 11 November 2026 by Johnny