How to Whitelist and Blacklist Domains in cPanel
You can blacklist (block) or whitelist (allow) domains in cPanel using two main areas:
- Email Filters / Global Email Filters
- SpamAssassin (Apache SpamAssassin)
- Email Deliverability / DNS (for advanced allow‑listing)
Below is the complete, practical guide you can apply immediately.
How to Blacklist Domains in cPanel
Method 1: Using Global Email Filters (Recommended)
Blocks emails from a specific domain for the entire cPanel account.
- Log in to cPanel
- Go to Email → Global Email Filters
- Click Create a New Filter
- Name the filter: Block Domain
- Under Rules:
- Select From
- Select contains
- Enter the domain:
- @example.com
- Under Actions: choose Discard Message or Reject Message
- Save the filter
Effect: All emails from @example.com will be blocked.
Method 2: Using SpamAssassin Blacklist
- Go to Email → Spam Filters
- Enable SpamAssassin if not already enabled
- Click Show Additional Configurations
- Find Blacklist (blacklist_from)
- Add entries like:
- *@example.com
- *@sub.example.net
- Save
Effect: SpamAssassin marks these as spam or blocks them depending on your spam settings.
How to Whitelist Domains in cPanel
Method 1: Using SpamAssassin Whitelist
- Go to Email → Spam Filters
- Click Show Additional Configurations
- Find Whitelist (whitelist_from)
- Add entries like:
- *@trusted.com
- *@partner.org
- Save
Thank you for your feedback.
Sorry about that :( We'll work to make it better.
You voted before.
(1 times viewed / 0 people found it helpful)