Call us now: 0113 541 7880
Live Chat
Contact Us
Shopping Cart
WHUK WHUK
  • Hosting
    • Web Hosting Perfect for personal websites, our shared hosting is packed with features with 24/7 support.
      Learn More
    • Windows Hosting Microsoft® Windows web hosting powered by professional enterprise Windows servers.
      Learn More
    • Website Builder Intuitive Website Builder with over 150 professional template designs to choose from.
      Learn More
    • Email Hosting Secure and reliable email hosting service that you can count on.
      Learn More
    • Reseller Hosting Resell Linux hosting with one of our easy to use unlimited reseller plans.
      Learn More
    • Wordpress Hosting Enjoy fast performance and security with our WordPress optimised website hosting plans.
      Learn More
  • Servers
    • Linux VPS Hosting Powerful Linux virtual private servers with the latest Intel Xeon processors and SSD storage for the ultimate in performance.
      Learn More
    • Windows VPS Hosting Microsoft® Windows virtual private servers come with pure SSD storage and 24x7 professional technical support.
      Learn More
    • Cloud Servers Enterprise cloud servers designed for mission critical applications.
      Learn More
    • Dedicated Servers Our managed servers deliver unparalleled compute power for mission-critical apps.
      Learn More
  • Domains
      Search & Register Your Perfect Domain Name
      Search icon
      ․com

      £9.99/yr

      ․org

      £9.99/yr

      ․info

      £15.99/yr

      ․co․uk

      £8.39/yr

      ․net

      £9.99/yr

      See full TLD list
  • Security & Tools
    • SSL Certificates Essential security for your website with secure 2048-bit encryption and domain level validation.
      Learn More
    • Backup Solutions Protect your business from data loss with consistent website and server backup solutions.
      Learn More
    • Email Certificates Protect your identity and reputation with digitally signed and encrypted emails.
      Learn More
    • SpamExperts Eliminate spam, viruses, phishing and malware attacks before they ever reach your mailbox.
      Learn More
    • SEO Tool Get more website visitors and improve sales with the all-in-one SEO tool.
      Learn More
    • CloudLinux
      CloudLinux Boost security, density and efficiency of shared server hosting environment.
      Learn More
    • Imunify 360
      Imunify 360 Imunify360, a Linux-based automated security solution, keeps malicious threats at bay.
      Learn More
    • Acronis Backup
      Acronis Backup Protects your business from data loss, Our advanced website and server backup solutions.
      Learn More
  • Client Login
Back to Blog Home

How to set up spam filtering in cPanel March 5, 2021

March 5, 2021 / cPanel & WHM

Are you looking for an effective way to filter email spam? You can do this using the built-in SpamAssassin tool can help.

This guide will walk you through the setup and configuration procedures.

To Enable Apache SpamAssassin, follow the next steps:

  1. Log in to the cPanel Account.
  2. Under the Email section click on the Spam Filters.
  3. When the SpamAssassin page opens, click the toggle button next to Process New Email and Mark them as Spam. When the button turns blue, Spam filtering is enabled.SpamAssassin page
  4. Enabling SpamAssassins filters suspicious emails and places them in a separate spam folder in your inbox. If you prefer not to do this, you can activate auto-delete, automatically deleting suspected spam emails.
    Please note, that some genuine emails may even be suspected as spam. If you enable auto-delete, they will also be deleted.
  5. If you want to continue enabling auto-delete, click the toggle button next to Automatically delete new spam (Auto-delete). When the button is blue, auto-delete is enabled.
    auto delete spam

Configuring Spam Filtering
In addition to enabling and disabling spam filtering, you can also configure SpamAssassin by changing the spam threshold or adding addresses to whitelists and blacklists.

Changing the spam threshold
Email messages are scanned upon arrival and given a score out of 10 based on their likelihood of being spam. Spam Assassin’s default spam threshold score is 5, so any message that scores 5 or higher will be sent to the spam folder. If you find that too few or too many emails are being filtered, you can adjust the threshold score.

To do this:

  1. Go back to the Process New Emails and Mark Them As Spam section and click on the blue Spam Threshold Score link.
    process new emails
  2. When the new page opens, click on the dropdown options box and choose the new threshold score you desire. The lower the number, the more aggressive the spam filtering will be.
    threshold score
  3. Once you have made your decision, click the blue Update Scoring Options button to complete the process save your changes and then click on Return to Overview.
  4. Additionally, you can also enter emails in the whitelist and blacklist to ensure emails you want to receive don’t get blocked and that those you want to block don’t get through.

To do this:

  1. Scroll down to Additional Configurations (For Advanced Users).
  2. Click on the Show Advanced Configurations link.
  3. Click on either the Edit Spam Whitelist or Edit Spam Blacklist settings link.
  4. When the page opens, click the Add New Whitelist/Blacklist Item link.
    Whitelist
  5. Type in the name of the email address you wish to whitelist or blacklist in the input field and click the blue Update button.
  6. If you want to receive or block messages from a specific domain instead of an individual address, you can do this by typing *@domainname.com.
  7. You can return to these pages to remove items from the lists if you wish.

This way, you can set up spam filtering in cPanel. If you need help, contact our support specialists. 

Spread the love
Tagged: cPanel Email Management

Related Articles

cPanel Security Advisory – CVE-2026-41940 (Critical)

May 6, 2026

How to Block an IP Address Using CSF Firewall in WHM

November 13, 2025

How to Configure and Schedule Backups in WHM (cPanel)

October 23, 2025

How to Use the Web Template Editor in WHM

September 6, 2025
Posted in: cPanel & WHM Tagged with: cPanel Email Management
Back to Blog Home

Subscribe WHUK

Categories

  • Account Management (4)
  • Command Line (23)
  • Control Panels (324)
    • cPanel & WHM (242)
    • Enhance (4)
    • Plesk (78)
  • Domain and DNS (20)
  • Getting Started (6)
    • WordPress (5)
  • How-to Guide (36)
  • Sales FAQ (13)
  • Security and Backups (61)
    • Acronis Backup (9)
    • Imunify 360 (12)
    • SSL (18)
  • Servers, Hosting & Email (199)
    • cPanel & WHM (24)
    • Dedicated Server (1)
    • Email Hosting (21)
    • MS SQL (1)
    • MySQL (44)
    • Plesk (3)
    • Virtual Server (8)
    • WordPress (53)
  • Web Development (22)

Latest KB's

  • cPanel Security Advisory – CVE-2026-41940 (Critical)
  • How to Change PHP Version and Restart PHP for a Website in Enhance
  • How to Create Email Accounts, Manage DKIM, Catch-All Emails & Databases in Enhance
  • How to Add a New Website or Migrate Your Website from cPanel to Enhance
  • How to Access and Manage Your Enhance Account

Latest Blog

  • Hosting Renewal Coming Up? Here’s What Businesses Should Compare Before Renewing
  • Latest Hosting and Tech News
  • Growing Websites Rarely Break Overnight: The Warning Signs Usually Start Earlier
  • Why Server Updates Matter: Lessons from a Week of Major Vulnerabilities
  • Slow Website? Your Hosting Could Be Costing You Sales (Here’s Why)

Archives

Webhosting UK
Webhosting

Part of the Hyperslice® Group, we deliver key cloud and app hosting solutions to over 35,000 customers worldwide.

Read more
Hosting
  • Web Hosting
  • Reseller Hosting
  • VPS Hosting
  • Sustainable Hosting
  • Dedicated servers
  • Cloud Hosting
  • Content Creator
Company
  • About Us
  • Contact Us
  • Client Area
  • Affiliate Program
  • Site Map
Resource
  • Forum
  • Blog
  • Knowledgebase
  • Service Status
Legal
  • Terms of Service
  • Privacy
  • AUP
  • Management Agreement
  • Nominet Terms
  • Microsoft End User License Agreement
  • .UK SLA
  • Complaints
Social
  • Twitter Twitter
  • Facebook Facebook
  • Youtube Youtube
  • LinkedIn LinkedIn
  • Instagram Instagram
Visa Mastercard American Express PayPal

Copyright © Webhosting UK COM Ltd. All rights reserved

Part of the Hyperslice® Group.

LRQA ISO Cyber Essentials Plus