Call us now: 0800 862 0890
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

How to Set Up an Email Signature for a cPanel Email Account

April 30, 2025

How to efficiently view and modify Mailbox storage limits in cPanel

January 28, 2025

How to enable the Application Manager in cPanel

January 21, 2025

How to set up a Python application in cPanel

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

Categories

  • Account Management (6)
  • Command Line (24)
  • Control Panels (357)
    • cPanel & WHM (272)
    • Plesk (86)
  • Domain and DNS (26)
  • Getting Started (9)
    • WordPress (8)
  • How-to Guide (54)
  • Sales FAQ (11)
  • Security and Backups (61)
    • Acronis Backup (9)
    • Imunify 360 (12)
    • SSL (18)
    • Veeam Backup (3)
  • Servers, Hosting & Email (216)
    • cPanel & WHM (25)
    • Dedicated Server (1)
    • Email Hosting (27)
    • MS SQL (1)
    • MySQL (44)
    • Plesk (5)
    • Virtual Server (9)
    • WordPress (65)
  • Web Development (32)

Latest KB's

  • How to Add Swap Memory in Ubuntu 20.04
  • How to use Netstat for network monitoring in Linux
  • How to select the correct Kernel to boot on CloudLinux OS
  • How to Configure Your Linode Server for CloudLinux After Converting from CentOS
  • How to Transition from CentOS 7 to AlmaLinux 8 or CloudLinux 7 to 8 Using cPanel ELevate

Latest Blog

  • 5 Practical Ways AI Can Improve Your Website
  • SEO in 2025: What’s Changing and How to Stay Ahead
  • What’s Next After HTTP/3? The Future of Web Protocols
  • Latest Hosting and Tech News
  • A Multi-Faceted Approach to Successful Cloud Adoption for Your Business

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