Allowing specified emails through spam filters
Spam filters are essential for keeping your inbox clean, but they can sometimes be overzealous, blocking legitimate emails from trusted senders. To ensure important messages from trusted senders always reach your inbox, you can whitelist specific email addresses or domains.
This guide walks you through the process using Spam Filters (SpamAssassin) and Email Filters in cPanel to mark specific email addresses or domains as safe, ensuring their messages bypass spam filters and are delivered directly to your inbox.
Method 1: Whitelist Using Spam Filters (SpamAssassin)
Steps To Whitelist:
- Log in to your cPanel account with the login credentials provided to you.
- Scroll down to the Email section and click on Spam Filters..

- Under Additional Configurations (For Advanced Users), click Show Additional Configurations.
- Click Edit Spam Whitelist Settings.

- Click Add A New “whitelist_from” Item.Enter the email address or domain you want to allow:
- To whitelist a specific email:
john@example.com
- To whitelist a specific email:

- To whitelist an entire domain:
*@example.com - Click Update Whitelist (whitelist_from) to save your changes.

Note: Whitelisting an entire domain allows all emails from that domain to bypass spam filters. Use this with caution.
Method 2: Create a Custom Email Filter
This method gives you more control and is useful if you want to allow emails based on specific criteria.
Steps:
- In cPanel, go to Email Filters under the Email section.
- Select the account you want to configure.
- Click Create a New Filter.
- Give your filter a name (e.g., “Allow Trusted Sender”).
- Set the rule:
- Rules: “From” => “equals” =>
trusted.sender@example.com
- Rules: “From” => “equals” =>
- Set the action:
- Actions: “Deliver to folder” => “Inbox”
- Click Create to activate the filter.

**You can also use “contains” or “matches regex” for more flexible filtering.**
Testing Your Whitelist:
After setting up your whitelist:
- Send a test email from the whitelisted address.
- Check your inbox and spam folder to confirm delivery.
- If the email still goes to spam, double-check your filter rules and spam score thresholds.
Recommended Best Practices:
- Be specific: Whitelist individual addresses when possible instead of entire domains.
- Review regularly: Periodically audit your whitelist to remove outdated or unnecessary entries.
- Avoid overuse: Too many whitelisted entries can reduce the effectiveness of your spam filter.