Loading...

Knowledge Base
Save up to  70% off.  Start your website today!

How to Use SpamAssassin

SpamAssassin is an anti-spam tool that helps filter unwanted messages and works for all of the email accounts in your cPanel. It can be set to mark spam messages so they are easy to notice. You can also choose to configure SpamAssassin to automatically delete any emails marked as spam.

HostGator recommends activating SpamAssassin as soon as you create an email account or log in for the first time.

This article discusses the following topics.


How to Enable/Disable SpamAssassin

To manage your SpamAssassin:

  1. Go to your cPanel's Email section. There are two ways to do this.
    • Option 1: Launch your cPanel directly.
    • Option 2: Launch your cPanel's Email section via your Customer Portal.
      1. Log into your Customer Portal.
      2. Click the Hosting tab from the side navigation menu to the left.
        cpanel-email-hosting

      3. Scroll down to click the CPANEL EMAIL button under Quick Links.
        quick-links-cpanel-email
        • If you have a single hosting package in your account, a pop-up window will appear. Look for Spam Filters.
           
        • If you have multiple hosting packages in your account, you'll be redirected to the Hosting section. Look for the hosting plan whose Email section you want to access, then click its cPanel Email link.
           

          Customer Portal - cPanel Email link

      4. In the pop-up window, select Spam Filters, then click the Continue button.

        Customer Portal - cPanel Email - Spam Filters

  2. Within the Spam Filters section, click on the toggle bar to enable or disable the SpamAssassin.
    • If the toggle bar is blue, the SpamAssassin is enabled.

      Enabled Spam Assassin
       

    • If the toggle bar is grayed out, then SpamAssassin is disabled.

      Disabled SpamAssassin


Set Spam Score Limit

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

  • 1 means everything incoming will be marked as spam.
  • 5 is the default setting (and works well for typical users).
  • 10 means that any message with a score of 10 or less will not be marked as spam.

The following method is how you can change the default score.

  1. Within cPanel, navigate to the Email section and then click on the Spam Filters icon.

    Spam Filters icon

  2. Click on the Spam Threshold Score link.

    Spam Threshold Link

  3. In the dropdown, select your preferred value.

    Spam Threshold Settings

  4. Click Update Scoring Options at the bottom of the page.
Note: Changing these settings affects all email accounts in your cPanel.

Move New Spam to the Spam Box

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

Spam Box

When the Spam Box is enabled, a spam folder is created. Spam is then delivered directly to this folder, allowing you to review all mail marked as spam before it is deleted. It also allows you to recover messages marked as "spam" from your email account's Spam folder.

To enable Spam Box, simply click the toggle bar in the Move New Spam to a Separate Folder (Spam Box) in the Spam Filters section.

Spambox is enabled

You have the option to clear out or empty your Spam Box folder by clicking the Configure Spam Box Settings link.


Auto-delete Spam

The auto-delete function automatically deletes messages that meet or exceed the spam score limit. Auto-delete can be enabled in the Filters section by clicking the toggle bar for Auto-Delete Spam.

  • If the toggle bar is blue, the Automatically Delete New Spam (Auto-Delete) is Enabled.

    Enabled Auto Delete New Spam

  • If the toggle bar is grayed out, the automatic Automatically Delete New Spam 
    (Auto-Delete)
    is Disabled.

    Disabled Automatic Delete New Spam

It would be best to have the Auto-Delete spam score set to a higher number than the one available in the Spam Threshold Score, though both can be utilized.

Spam Threshold Link

Note: Enabling auto-delete could cause you to lose emails that are not spam if SpamAssassin is not configured properly.

Whitelist, Blacklist, and Calculated Spam Score Settings

Manage the spam filter settings for your email accounts. Click Show Additional Configurations to view more options.

Show Additional Configurations

This will display the following functions:

Show Additional Configurations Options

Whitelist

Whitelisting means any email sent to your domain from an email address or domain will "pass" through your spam filter and go to your Inbox.

To whitelist:

  1. Click Edit Spam Whitelist Settings.

    Whitelist - Edit Whitelist

  2. On the Whitelist page, you can click Add a New "whitelist_from" item.

    Whitelist - Add a New Whitelist

  3. Enter the email address that the system should NOT tag as spam. Use "*" and "?" wildcard characters for more flexibility.

    Whitelist - Enter email to whitelist

Blacklist

Blacklisting means to mark any messages from an email address or domain as spam. This is especially helpful if you're constantly getting spam emails from a specific email address or domain.

To blacklist:

  1. Click Edit Spam Blacklist Settings.

    Blacklist - Edit Blacklist

  2. On the Blacklist page, click Add a New "blacklist_from" item.

    Blacklist - Add a New Blacklist

  3. Enter the email address to be tagged as spam. You can use "*" and "?" wildcard characters for more flexibility.

    Blacklist - Enter email to blacklist

Calculated Spam Score Settings

This function is usually used by advanced users. You can assign scores to individual tests to configure SpamAssassin.You can increase the score of a test that incorrectly allows spam emails to pass through your email filter. You may also disable or reduce the score of a test that incorrectly marks emails as spam.

To modify a score:

  1. Click Configure Calculated Spam Score Settings.

    Score Settings - Calculated Spam Score Settings

  2. Click Add a New "scores" item.

    Score Settings - Add New Score

  3. Select a new score from the dropdown menu.

    Score Settings - Select new score

  4. Enter a value that contains up to 3 decimal places. (Setting it to 0 will disable the test.)

    Score Settings - Select score value

  5. Click the Update Scoring Options button to save.

For more information about custom SpamAssassin configurations, please see the following article:


How to go to your Spam Folder

Spam is delivered to your spam folder when you have Spam Box enabled. However, you will need to subscribe to the spam folder in your mail client to view or process spam messages held there. You can learn how to subscribe to your spam folder in this article:


User-level Email Filtering

The settings you choose for SpamAssassin are applied to all email accounts in your cPanel. You can also use filtering for each email account to direct spam appropriately for that account.

Note: SpamAssassin must be enabled to set up the following filter.

Via Roundcube

To filter an individual email account:

  1. Log in to your webmail. Usually, users will go to example.com/webmail and log in. (Replace example.com with your actual domain name.)
  2. Once logged in, click on Settings in the top-right corner.

    Roundcube - Settings

  3. Navigate to the Folders option, scroll down, then click on the + icon.

    Roundcube - Add folder

  4. Label the folder name as "spam."

    Roundcube spam folder

  5. Click on Save. Create a folder called spam. Use all lowercase letters to name this folder.

Via cPanel

  1. In the Email section of cPanel, select the Email Filters icon.

    cPanel - Email Filters

  2. Click Manage Filters next to the appropriate user.

    HostGator cPanel Manage UserFIlters

  3. Click Create a New Filter. You will be taken to a new page.

    Email Filters Page

    • In the Filter Name field, enter a name for the filter (such as SpamAssassin or whatever is desired).
    • Under Rules, select Spam Status from the first dropdown menu.
      Note: If this option is not available, check to make sure that Spam Assassin is enabled.
    • In the adjacent dropdown menu, select begins with.
    • In the large, blank box below the dropdown menus, type the word Yes.
    • Under Actions, select Deliver to folder from the dropdown menu.
    • Click Browse and select the "spam" folder.
    • When finished, click Create.

You can now log back into your email client and subscribe to the new spam folder.

Did you find this article helpful?

 
* Your feedback is too short

Loading...