Skip to content
P. O. Box 6084 - 00100, Nairobi, Kenya Customer Login
Email Setup

How to Block Spam With cPanel Spam Filters and Email Filters

Spam wastes time and fills mailboxes. Braysons Host includes server-side spam filtering (Apache SpamAssassin) that scores every incoming email. Switch it on, tune it, and add simple filters for the stubborn ones.

Time needed10 minutes
DifficultyBeginner
You needcPanel login
WherecPanel β†’ Email β†’ Spam Filters / Email Filters

How spam scoring works

Every incoming email gets a spam score based on hundreds of tests (suspicious words, blacklisted senders, missing authentication, odd formatting). The higher the score, the more likely it is spam. You choose the score at which mail is treated as spam.

Your threshold (1) decides what counts as spam. Lower = stricter.
Figure 1 Your threshold (1) decides what counts as spam. Lower = stricter.

Step 1: Turn on spam filtering

  1. In cPanel, go to Email β†’ Spam Filters.
  2. Make sure Process New Emails and Mark them as Spam is On (enabled by default on most accounts).
  3. Turn Move New Spam to a Separate Folder (Spam Box) On β€” spam goes to a spam folder instead of your inbox.
Enable processing (1) and the Spam Box (2); use Auto-Delete (3) carefully; set the threshold (4); open additional settings for whitelists and blacklists (5).
Figure 2 Enable processing (1) and the Spam Box (2); use Auto-Delete (3) carefully; set the threshold (4); open additional settings for whitelists and blacklists (5).

Step 2: Choose the threshold

Threshold Effect
8–10 Lenient β€” very little legitimate mail caught; more spam gets through
5 (default) Balanced β€” recommended starting point
3–4 Strict β€” catches more spam, but some genuine emails may land in the Spam folder
1–2 Very strict β€” not recommended for business mail

Start at 5. If plenty of spam still reaches your inbox after a week, try 4.

Step 3: Auto-delete (optional, careful)

Automatically Delete New Spam permanently deletes mail scoring at or above its own threshold (set it high, e.g. 10, so only obvious spam is deleted). Never auto-delete at a low score β€” you could lose customer emails without knowing.

Step 4: Whitelist important senders

Banks, KRA, your suppliers or clients sometimes trigger spam rules. Under Show Additional Configurations β†’ Edit Spam Whitelist (Always allow), add:

  • a full address: notifications@yourbank.co.ke
  • a whole domain: *@kra.go.ke

Step 5: Blacklist persistent senders

Under Edit Spam Blacklist (Always mark as spam) add addresses or domains that keep sending junk, e.g. *@spammy-marketing.example.

Step 6: Email Filters for specific rules

For more control β€” like deleting anything with a certain subject β€” use Email β†’ Email Filters (one mailbox) or Global Email Filters (all mailboxes).

  1. Choose the mailbox β†’ Create a New Filter.
  2. Rules: e.g. Subject β€” contains β€” crypto investment.
  3. Actions: Discard Message, Redirect to Email, or Deliver to Folder (e.g. Junk).
  4. Create. Use Test Filter with a sample message first.
Choose the field (1) and text to match (2), pick an action such as Deliver to Folder β†’ Junk (3) and Create (4).
Figure 3 Choose the field (1) and text to match (2), pick an action such as Deliver to Folder β†’ Junk (3) and Create (4).
Tip

Prefer Deliver to Folder β†’ Junk over Discard for new rules. Check the Junk folder for a week to make sure the rule is not catching real emails.

Step 7: Check the Spam folder regularly

Look in the spam folder (webmail β†’ spam or Junk) once a day at first. Move any genuine email back to the inbox and whitelist the sender.

Troubleshooting

Problem Cause Fix
Genuine emails in Spam folder Threshold too strict, or sender poorly configured Raise threshold by 1; whitelist sender
Still lots of spam in inbox Filtering off or threshold too high Turn on processing; lower to 4
Spam folder not visible in phone app Folder not subscribed Subscribe to spam folder in the app or webmail
Spam appears to come from your own address Spoofing Set up SPF, DKIM and DMARC β€” see SPF, DKIM, DMARC

Frequently asked questions

Is spam filtering included? Yes, on all plans at no extra cost.

Does filtering slow down email? No β€” scoring takes a fraction of a second.

Tags:spamspamassassinemail filtersblacklistwhitelist

Figures are simplified illustrations. Your screen may look slightly different depending on your theme and the version of cPanel or the app you use.

Still need help?

Our Kenyan support team is on WhatsApp β€” real people, not bots. Mon–Sat, 8am–10pm EAT. Tickets are open 24/7.

Related guides

All Articles