How to use cPanel to manage unwanted e-mail (spam)?

This article describes how to use the SpamAssassin™ tool in cPanel to reduce the amount of unwanted e-mail (spam) in your e-mail accounts. SpamAssassin is an automated filtering system that uses a variety of techniques to identify and filter spam messages.This article describes how to use the SpamAssassin™ tool in cPanel to reduce the amount of unwanted e-mail (spam) in your e-mail accounts. SpamAssassin is an automated filtering system that uses a variety of techniques to identify and filter spam messages.

SpamAssassin

Spam can be a major annoyance, with messages filling up users' inboxes. Additionally, spam messages can contain virus attachments or malicious links.

When you enable SpamAssassin, it uses scores to rate the likelihood that a message is spam. You can manage messages that SpamAssassin marks as spam in a number of ways. For example, you can route messages marked as spam to specific folders, or you can automatically delete them.

Enabling SpamAssassin

To enable SpamAssassin in cPanel, follow these steps:

  1. In the Mail section of the cPanel home screen, click Spam Assassin™.
  2. Click Enable Spam Assassin.
  3. To enable auto-deletion of spam messages, select a score level under Filters, and then clickAuto-Delete Spam. Alternatively, to disable auto-deletion of spam messages, click Disable Auto-Delete Spam.

A lower score is more restrictive. In other words, an auto-deletion score of 1 is very aggressive, and will delete many messages. An auto-deletion score of 10 is more permissive, and will let more messages through without deleting them.

Configuring SpamAssassin

After you enable SpamAssassin, you can configure message scoring parameters to control how SpamAssassin examines incoming messages. You can also define whitelists (trusted senders) and blacklists (known spammers).

To configure SpamAssassin in cPanel, follow these steps:

  1. In the Mail section of the cPanel home screen, click Spam Assassin™.
  2. On the SpamAssassin page, click Configure SpamAssassin.
  3. In the required_score text box, type the number of hits required until a message is marked as spam.
Any message that has a score greater than the required_score value is marked as spam. We recommends using the score 3.

      4. In the score text boxes, you can assign scores to specific tests that SpamAssassin uses to examine incoming messages.

We recommends using the following test scores:
  • URIBL_DBL_SPAM 10.0 10.0 10.0 10.0
  • URIBL_WS_SURBL 10.0 10.0 10.0 10.0
  • URIBL_BLACK 10.0 10.0 10.0 10.0
  • T_DKIM_INVALID 2.0 2.0 2.0 2.0
  • RDNS_NONE 1.8 1.8 1.8 1.8
  • DCC_CHECK 5.0 5.0 5.0 5.0

The URIBL_* tests check blacklists such as Spamhaus. The RDNS_NONE test checks to see if the sending IP address has a reverse DNS entry, while the DCC_CHECK test checks the DCC checksum database to detect bulk mail.

If you later want to reset these scores to their default values, use the following test scores:

  • URIBL_DBL_SPAM 0 1.7 0 1.7
  • URIBL_WS_SURBL 0 1.659 0 1.608
  • URIBL_BLACK 0 1.775 0 1.725
  • T_DKIM_INVALID 0 0 0 0
  • RDNS_NONE 0 1.1 0 0.7
  • DCC_CHECK 0 1.1 0 1.1
  1. In the blacklist_from text boxes, you can specify e-mail addresses that are known spammers.
  2. In the whitelist_from text boxes, you can specify e-mail addresses that are trusted senders.
  3. To save the new configuration, click Save.
Disabling SpamAssassin

You can disable Spam Assassin whenever you want. For example, if you are unable to receive a non-spam e-mail message, you can disable SpamAssassin and ask the sender to resend the message so it reaches your account.

To disable SpamAssassin in cPanel, follow these steps:

  1. In the Mail section of the cPanel home screen, click Spam Assassin™.
  2. Click Disable Spam Assassin.
Was this answer helpful? 7 Users Found This Useful (130 Votes)

Powered by WHMCompleteSolution