Reducing Spam with SpamAssassin

SpamAssassin is a mail filtering tool built into cPanel. It analyses each incoming message and assigns a spam score based on characteristics of the message headers, body, and sending server. Messages that exceed a threshold you define can be flagged, filtered into a Junk folder, or deleted automatically.

Funnel diagram showing incoming mail passing through SpamAssassin with a spam-score gauge, routing clean messages to Inbox and spam to Junk

Enabling SpamAssassin

  1. Log in to cPanel at https://yourdomain.com:2083.
  2. Under the Email section, click Spam Filters.
  3. Click the toggle next to Process New Emails and Mark them as Spam to turn SpamAssassin on.
  4. Optionally, enable Automatically Delete New Spam (Auto-Delete) if you want SpamAssassin to discard messages that score very high. See the caution note below before enabling this.

Once enabled, SpamAssassin adds an X-Spam-Status and X-Spam-Score header to every message it processes. Flagged messages have ***SPAM*** prepended to their subject line by default.

Understanding Spam Scores

SpamAssassin scores each message on a scale. The default threshold is 5 — messages scoring 5 or above are considered spam. A lower threshold catches more spam but increases the risk of false positives (legitimate mail flagged as spam). A higher threshold is more permissive.

Score rangeMeaning
0–2Likely legitimate
3–4Borderline — review carefully
5–7Probable spam
8+Almost certainly spam

Adjusting the Spam Score Threshold

  1. In cPanel, go to Email → Spam Filters.
  2. Click Spam Threshold Score under the Spam Filters heading.
  3. Move the slider or enter a number. A value of 5 is recommended for most users.
  4. Click Update Spam Settings.

Setting Up Spam Box (Recommended)

Instead of deleting suspected spam, route it to a dedicated Junk folder so you can review false positives before permanently discarding them.

  1. On the Spam Filters page, enable Move New Spam to a Separate Folder (Spam Box).
  2. SpamAssassin will deliver flagged messages to a folder called spam in your mailbox.
  3. In Roundcube webmail or your mail client, periodically review this folder and mark any false positives as Not Spam to help train the filter.

Whitelisting and Blacklisting Addresses

You can tell SpamAssassin to always allow or always block mail from specific senders.

  1. Go to Email → Spam Filters in cPanel.
  2. Click Show Additional Configurations at the bottom of the page.
  3. Under Whitelist (Addresses to Never Filter), add trusted sender addresses.
  4. Under Blacklist (Addresses to Always Filter), add senders you always want flagged as spam.
  5. Use wildcards to match a whole domain — for example, *@spammydomain.com.

Caution with Auto-Delete

Enabling Auto-Delete permanently removes messages that exceed the auto-delete threshold (default 5). There is no recovery option once a message is deleted. It is safer to use Spam Box so you can review borderline messages. If you do enable auto-delete, set the threshold to 8 or higher to reduce the chance of losing legitimate email.

Troubleshooting

ProblemSolution
Spam still arriving in inboxLower the spam threshold score, or add the sender's domain to your blacklist
Legitimate mail flagged as spamAdd the sender to your whitelist; also check their SPF/DKIM records are valid
Spam Box folder not appearingConfirm Spam Box is enabled; the folder is created after the first flagged message arrives
SpamAssassin not processing mailEnsure it is toggled on in cPanel; contact support if the toggle does not save

For further spam filtering assistance, open a support ticket at https://clients.cyclebreezehost.com or email info@cyclebreezehost.com. Our team is available 24/7.