Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Toc no bullet

Overview

You can create an email filter that sorts and redirects incoming spam. This is useful if, for example, your hosting provider has not included Apache SpamAssassin™ in your cPanel account.

Create a spam email filter

To create a spam filter, perform the following steps:

  1. Navigate to cPanel's Apache SpamAssassin interface (Home >> Email >> Apache SpamAssassin).
  2. Check whether Apache SpamAssassin is enabled. If it is not, click Enable Apache SpamAssassin.
  3. Navigate to cPanel's Global Email Filters interface (Home >> Email >> Global Email Filters).
  4. Click Create a New Filter.
  5. Enter the name of your filter in the Filter Name text box.
  6. Select Spam Bar from the first menu in the Rules section.
  7. Select contains from the second menu in the Rules section.
  8. Enter the spam score in the text box. Represent the desired spam score with plus (+) characters.

    Note
    titleNote:

    For example, to filter all of the mail to which Apache SpamAssassin has assigned a spam score of five or higher, enter +++++ in the text box.

    • Apache SpamAssassin examines every email message for spam characteristics, and then assigns it an overall score based on the number of spam-related traits found within the message.
    • The lower the spam score, the more aggressive the spam filter will be.
    • A spam score of five (+++++) is a suitable setting for a single user. ISPs should use a higher score.
  9. Select Deliver to folder from the menu in the Actions section.
  10. Enter the name of the folder to which you wish to send your spam email.
    • Click Browse to see a list of your folders.
  11. Click Create to create, save, and activate the spam filter.

Additional documentation

Localtab Group
Localtab
activetrue
titleSuggested documentation

Mail FAQ — Frequently-asked questions about mail in cPanel & WHM.

Localtab
titleFor cPanel users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("spam","spamassassin","email") and label = "cpanel" and space = currentSpace()

Localtab
titleFor WHM users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("spam","spamassassin","email") and label = "whm" and space = currentSpace()

Localtab
titleFor developers

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("spam","spamassassin","email") and space = "SDK"