How to configure custom SpamAssassin filters
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

How to configure custom SpamAssassin filters


The option to enable "Spam Box" is available for users, and creates a simple "Spam" box for each user. However, some may choose to create their own rules, instead of the "Spam Box" provided with SpamAsasssin. This can easily be done from your cPanel; to do so, follow these steps.

Enable SpamAssassin

  1. From your cPanel, go to the Mail category, and select SpamAssassin.
  2. Verify SpamAssassin is enabled by selecting Enable SpamAssassin If the button states Disable SpamAssassin this means that it's already enabled.
  3. Now you will need to set a "rewrite" that SpamAssassin will apply to the message(s) it suspects is spam; select "Configure SpamAssasin," then enter something under "Rewrite_header subject." We recommend using something like **SPAM**, as this makes it easily identifiable.
Create a new Filter
  1. Return to your cPanel, navigate to the "Mail" category once again, and select "User Level Filtering."
  2. Select "Manage Filters" to the right of your email address, then select "Create New Filter." Give the filter a name, then fill out the boxes:
    • Select "Any Header", "Contains"; then enter your rule, such as "**SPAM**", into the field.
      Now, select the desired option using the bottom-most box. In common cases, selecting "Deliver to folder" and entering a specific folder, like "Junk" or "Spam" is optimal. This way you can still manually check the messages for false-positives.
  3. Select "Activate".
If you need any assistance setting these up, or need another example, please feel free to contact Support with any inquiries.

Was this resource helpful?

Did this resolve your issue?

Please add any other comments or suggestions about this content:

Recommended Help Content

Explanation of what SpamAssassin is and how it works
Knowledgebase Article 201,181 views tags: assassin email spam

I'm getting a ton of spam and I don't know what to do! I would like it filtered and/or dropped from the server!
Knowledgebase Article 216,191 views tags: filter filtering spam spamassassin

SPAM is a brand of canned mystery meat made by Hormel Foods Corporation. It was first introduced in...oh wait, different kind of spam—but still related to email spam because they share similar characteristics, like nobody wants it or ever asks for it. Email spam is electronic junk mail or more gen
Knowledgebase Article 100,780 views tags: filter spam spamassassin spamexperts

Related Help Content

General Instructions on how to use the spam folder with webmail
Knowledgebase Article 196,357 views tags: email spam spamassassin webmail

Getting spammed? What does HostMonster recommend?
Knowledgebase Article 383,159 views tags: email filter spam

Prevent Spam These steps will help you prevent users and robots from posting Spam on your WordPress blog. Inside the WordPress Dashboard, select Settings in the navigation bar on the left. From the G
Getting Started Article 186,641 views tags: comment scroll spam wordpress

How does Spam Hammer work?
Knowledgebase Article 174,537 views tags: email filter hammer spam

Explanation of how spam works and common prevention tips
Knowledgebase Article 246,026 views tags: email spam webmail

Oh spam, sometimes it seems like we'll never get rid of you.
Knowledgebase Article 254,928 views tags: email filtering spam spamexperts virus

How to setup and use Custom Name Servers with your Domain name
Video "How-to" Tutorial 289,908 views tags: cpanelutilities custom

If you find some of your emails end up your recipients Spam folder, arrive late, or sometimes don't arrive at all, this article can help you improve the deliverability of the messages you are sending.
Knowledgebase Article 244,028 views tags: delivery email filters receiving sending working

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here