Spam filters help keep unwanted emails out of your inbox. cPanel includes Apache SpamAssassin, a powerful spam detection system.
Enabling Spam Filters
- Log into cPanel
- Go to Email section
- Click Spam Filters
- Toggle Process New Emails and Mark them as Spam to ON
Auto-Delete Spam
Automatically delete emails detected as spam:
- In Spam Filters, enable Move New Spam to a Separate Folder (Spam Box)
- Or enable Automatically Delete New Spam (Auto-Delete)
Warning: Auto-delete may remove legitimate emails. Use Spam Box first to monitor accuracy.
Spam Threshold (Sensitivity)
SpamAssassin gives each email a spam score. Lower threshold = more aggressive filtering.
- Click Spam Threshold Score
- Select a threshold:
- 1-4: Aggressive (may catch legitimate emails)
- 5: Default (balanced)
- 6-10: Permissive (less spam caught)
- Click Update Scoring Options
Whitelist (Always Allow)
Ensure emails from trusted senders are never marked as spam:
- Click Show Additional Configurations
- Click Edit Spam Whitelist Settings
- Add email addresses or domains:
[email protected] *@partnercompany.com
- Click Update Whitelist
Blacklist (Always Block)
Block specific senders:
- Click Edit Spam Blacklist Settings
- Add email addresses or domains:
[email protected] *@spamdomain.com
- Click Update Blacklist
Email Filters for Spam
Create custom filters for more control:
- Go to Email > Email Filters
- Click Manage Filters for your email account
- Click Create a New Filter
- Set rules like:
- If Subject contains "viagra" - Discard
- If From contains "@spam.com" - Discard
Spam Box Folder
When Spam Box is enabled, spam goes to a "spam" folder in webmail:
- Access Webmail
- Check the Junk or Spam folder
- Review for false positives
- Mark legitimate emails as "Not Spam"
Understanding Spam Headers
SpamAssassin adds headers to emails showing why they were flagged:
- X-Spam-Status: Yes/No and score
- X-Spam-Score: Numeric spam score
- X-Spam-Report: Detailed breakdown
View these in your email client by looking at message headers/source.
Tips to Reduce Spam
- Never post your email publicly on websites
- Use contact forms instead of mailto links
- Create separate addresses for signups
- Do not respond to spam (confirms address is valid)
- Unsubscribe from legitimate lists you no longer want
Legitimate Emails Going to Spam?
- Add sender to whitelist
- Increase spam threshold score
- Check if sender has proper SPF/DKIM
- Contact sender to fix their email configuration