How to Configure Spam Filters (Apache SpamAssassin) in cPanel

57 views
Short answer: Open cPanel Spam Filters, toggle 'Process New Emails and Mark as Spam', and calibrate score threshold to 5 to flag unsolicited bulk messages before hitting your inbox.

Control unwanted junk mail, set spam score thresholds, enable auto-deletion, and manage sender whitelists and blacklists in cPanel.

Before you start: Save a copy of your important emails to your own computer. A full hosting backup also includes your mailboxes. How to take a full backup

Quick reference

Tool Location cPanel > Email > Spam Filters
Default Score 5 (Balanced)
Aggressive Score 1 to 3 (Catches more spam, higher false-positive risk)
Permissive Score 7 to 10 (Allows more borderline emails through)

Steps

  1. Open Spam Filters: In cPanel, navigate to Email > Spam Filters.
  2. Enable Processing: Toggle Process New Emails and Mark as Spam to ON. Messages matching spam heuristics will have ***SPAM*** prepended to their subject header.
  3. Move to Spam Folder vs Auto-Delete:
    • Move New Spam to a Separate Folder (Spam Box): Recommended. Keeps spam in a designated folder so you can review it before deletion.
    • Automatically Delete New Spam (Auto-Delete): Automatically discards messages scoring higher than your threshold.
  4. Adjust Threshold Score: Click Spam Threshold Score and select a value (Default is 5). Lower numbers are stricter.
  5. Manage Whitelists & Blacklists:
    • Click Show Additional Configurations.
    • Under Whitelist (whitelist_from), add trusted sender addresses (e.g., *@partnerbank.com) to ensure they are never flagged.
    • Under Blacklist (blacklist_from), add annoying sender domains (e.g., *@spammerdomain.com) to block them permanently.

Troubleshooting and tips

  • Legitimate Emails Being Deleted: If using Auto-Delete with a strict score of 1-3, genuine client emails may be silently deleted. We recommend using Spam Box with a score of 5 for safety.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket