Our Help Portal

Troubleshooting Support Articles
Searchable Help Information Repository
Self-Service Resources How-Tos
Technical Customer Walkthroughs   Browse All Knowledge ! ....

Get Prices Learn More


< All Topics

How do I create an email spam filter?

Creating an email spam filter in cPanel allows you to manage and filter out unwanted or spam emails from reaching your inbox. Here’s a general guide on how to create an email spam filter:

  1. Log in to cPanel:
    • Access your cPanel account using your provided login credentials.
  2. Navigate to Email Filters:
    • Look for the “Email” section, and within that section, find an option like “Email Filters” or “Global Email Filters.”
  3. Choose Domain (if applicable):
    • If you have multiple domains associated with your cPanel account, choose the domain for which you want to create the email spam filter.
  4. Create a New Filter:
    • Once you’re in the Email Filters section, look for an option like “Create a New Filter” or “Add Filter.”
  5. Set Filter Rules:
    • Configure the filter rules to target spam emails. For example:
      • Rule: Choose a condition related to common spam characteristics (e.g., “SpamAssassin Spam Header”).
      • Criteria: Set criteria that indicate spam content (e.g., specific words, phrases, or spam score).
      • Actions: Choose what action to take when the criteria are met (e.g., “Discard Message,” “Redirect to Spam Folder”).
  6. Add More Rules (Optional):
    • If needed, you can add additional rules to fine-tune the spam filter.
  7. Save the Filter:
    • Click “Save” or a similar button to create and save the spam filter.

Example of Creating a Spam Filter:

Let’s say you want to create a filter that discards emails with a high spam score:

  • Rule: SpamAssassin Spam Header
  • Criteria: Spam Score is greater than 5
  • Actions: Discard Message

Important Tips:

  • Be cautious when setting up spam filters to avoid filtering legitimate emails.
  • Regularly review and adjust your spam filters to adapt to changing patterns.
  • Test the filter with a few emails to ensure it behaves as expected.

These steps provide a general guideline for creating an email spam filter in cPanel. The specific options and interface may vary slightly based on the version of cPanel your hosting provider is using. If you have any trouble or need specific guidance, refer to your hosting provider’s documentation or contact their support for assistance.