HostGator Web Hosting Help

How to configure custom SpamAssassin filters

Summary

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 229,919 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 239,330 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 126,161 views tags: filter spam spamassassin spamexperts

Related Help Content

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

Getting spammed? What does HostGator recommend?
Knowledgebase Article 475,345 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 207,106 views tags: comment scroll spam wordpress

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

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

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

How to setup and use Custom Name Servers with your Domain name
Video "How-to" Tutorial 319,445 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 279,345 views tags: delivery email filters receiving sending working