Casbay Knowledge Base

Search our articles or browse by category below

HOW TO: Enable/Disable SpamAssassin

Last updated: September 8, 2022
Estimated reading time: 2 min

HOW TO: Enable/Disable SpamAssassin

What is SpamAssasin?

SpamAssassin is a free anti-spam tool comes with all cPanel and WHM installations to filter out incoming email on a server side basis.

SpamAssassin works for all email accounts in cPanel. It can be used to mark spam messages, so you can easily notify them. You can also choose to set up the SpamAssassin to automatically delete any spam emails.

We recommend to activate SpamAssassin as soon as you create an email account or log in for the first time.

To Enable/Disable SpamAssassin

  1. Log into cPanel.

  2. Next, click the SpamAssassin icon in the Mail section.

  3. In the gray box, click Enable SpamAssassin to enable; or click Disable SpamAssassin to disable.

  4. **You will receive a confirmation message on the next page, depending on the option you selected, stated that SpamAssassin was either enabled or disabled.

Spam Score Limit

SpamAssassin scans each incoming email message and scores it according to the spam characteristics. By default, SpamAssassin rates messages with a score of 5 as spam; however, you can adjust the spam score limit based on your preference:

  • Score 1 – everything incoming will be marked as spam.

  • Score 5 – the default spam score for SpanmAssassin.

  • Score 10 – any message with a score of 10 or less will not be marked as spam.
  • To change the default spam score:

    1. Click Configure SpamAssassin under SpamAssassin Configuration.

    2. In the required_score field, enter your preferred value.

    3. Lastly, click Save at the bottom of the page.

    4. **The changes will be applied to all email accounts in your cPanel.

    Email Filtering

    You can use Spam Box or email filtering in SpamAssassin to move spam from your inbox to another folder.

    Spam Box

    A spam folder will be created when Spam Box is enabled. Spam is then delivered directly to this folder, allow you to review and manage all spam mail before it is deleted. To enable Spam Box, simply click Enable Spam Box in the Spam Box section.

    User Level Filtering

    The settings for SpamAssassin are applied to all email accounts in your cPanel. However, you can also use filtering for individual email account to direct spam for that account.

    To enable individual email account filtering:

    1. First, log into webmail.

    2. Create a folder named spam and exit webmail.

    3. In the Mail section of cPanel, select User Level Filtering.

    4. Click on Manage Filters next to the appropriate user.

    5. Select Create a New Filter. You will be redirected to a new page.

    6. In the Filter Name field, enter a name for the filter.

    7. Under Rules, select Spam Status from the drop-down menu.
      Note: If this option is not available, make sure that Spam Assassin is enabled.

    8. In the adjacent drop-down menu, select begins with.

    9. Next, type the word Yes in the blank box below the drop-down menus.

    10. Under Actions, select Deliver to folder.

    11. Click Browse and select the “spam” folder.

    12. Lastly, click Create.
    Now you can log into your mail client and subscribe to the new spam folder.
    Check out the next article on HOW TO: Set up Domain Redirection in cPanel.
    Was this article helpful?
    Dislike 0
    Previous: When My Domain Working? Propagation
    Next: HOW TO: Manage databases and database users in cPanel
    Discover the perfect balance of performance and budget-friendly Dedicated Server plan !
    Discover the perfect balance of performance and budget-friendly Dedicated Server plan !
    High performance and low cost Dedicated Server plan 128GB from $185 – upgrade today!
    High performance and cheap Dedicated Server plan 128GB from $185 – upgrade today!