How to Create and Manage Email Filters in cPanel Print

  • email filters, cpanel email, email management, spam filtering, email automation, inbox organization
  • 0

Email filters automatically sort your incoming messages based on rules you create. For example, you can set up a filter to move emails from a specific sender to a folder, delete spam, or forward important messages. Using multiple simple filters works better than one complex filter because the mail server processes them more efficiently.

OBHost's cPanel email filtering interface lets you control exactly how incoming messages are handled for each email account on your domain. This guide shows you how to create, edit, test, and delete email filters.

What Are Email Filters?

An email filter is a rule that automatically performs an action when an incoming message matches specific criteria. You might create a filter to:

  • Automatically delete messages from unwanted senders
  • Move newsletters to a specific folder
  • Forward important emails to another address
  • Flag messages containing certain keywords
  • Redirect emails based on subject line content

Important tip: Create multiple simple filters instead of one large, complex filter. The mail server handles many small rules much more efficiently than a single complicated rule with many conditions.

How to Create a New Email Filter

Follow these steps to set up a new filter for your email account:

  1. Log into your cPanel account
  2. Navigate to the Email Filters section
  3. In the Filters by Users table, click Manage Filters next to the email account you want to filter
  4. Click Create a New Filter
  5. Enter a descriptive name in the Filter Name text box (for example, "Delete Spam" or "Move Newsletters")
  6. Configure your filter's rules by selecting criteria such as sender address, subject line, message body, or headers
  7. Choose what action to take when a message matches your rules (delete, move to folder, forward, etc.)
  8. Click Create to save your new filter

Your filter will start working immediately on all new incoming messages.

Managing Existing Email Filters

Once you've created filters, you can view, edit, or remove them at any time. Click Manage Filters next to the appropriate email account to see the Current Filters table, which displays all active filters for that account.

How to Edit an Email Filter

To modify an existing filter:

  1. Click Edit next to the filter name you want to change
  2. Make your desired modifications to the filter rules or actions
  3. Click Save to apply your changes

How to Delete an Email Filter

To remove a filter you no longer need:

  1. Click Delete next to the filter name
  2. Click Delete Filter to confirm the removal

The filter will be permanently removed and will no longer process incoming messages.

How to Test Your Email Filters

Before relying on a new filter, you should test it to make sure it works as expected. Testing helps you verify that your filter rules match the right messages and perform the correct actions.

To test a filter:

  1. In the Filters by Users table, click Manage Filters next to the email account
  2. Locate the Filter Test section on the page
  3. Enter a sample email message in the Filter Test text box (include headers, subject, and body text that match what you expect to receive)
  4. Click Test Filter to see which of your filters would match this message and what actions would be taken

The test results will show you exactly how your filters would process the sample message without actually sending or receiving any email.

Common Email Filter Examples

Here are some popular ways to use email filters:

  • Spam prevention: Create a filter to automatically delete messages containing common spam keywords
  • Organization: Move emails from specific senders (like newsletters or billing departments) into designated folders
  • Priority management: Forward urgent messages from your boss or important clients to your mobile device
  • Auto-archiving: Automatically move older messages to archive folders based on date
  • List management: Sort mailing list messages into separate folders to keep your inbox clean

Best Practices for Email Filters

Follow these tips to create effective email filters:

  • Use clear, descriptive names for your filters so you can easily identify them later
  • Start with simple filters and add complexity only when needed
  • Test each new filter before relying on it for important messages
  • Review your filters periodically and remove ones you no longer use
  • Avoid creating filters that could accidentally delete important emails
  • Use folders to organize filtered messages instead of deleting everything

Frequently Asked Questions

Can I apply multiple filters to the same email account?

Yes, you can create as many filters as you need for each email account. The system processes filters in the order they appear in your Current Filters list. Messages are checked against each filter until a match is found and the specified action is performed.

What happens if I delete a filter by accident?

Deleting a filter is permanent and cannot be undone. The good news is that deleted filters only stop processing new incoming messages. Any emails that were already filtered will remain in their current locations (folders, deleted items, etc.). You'll need to recreate the filter manually if you want to restore the filtering behavior.

Do email filters work on messages that are already in my inbox?

No, email filters only apply to new incoming messages. They don't retroactively process emails that arrived before the filter was created. If you need to organize existing messages, you'll need to manually move or delete them using your webmail or email client.

Why should I use multiple simple filters instead of one complex filter?

The mail server processes multiple simple filters more efficiently than a single complex filter with many conditions. Simple filters are also easier to troubleshoot, test, and modify. If one filter isn't working correctly, you can adjust it without affecting your other rules. This approach gives you better performance and more flexibility.

Need help setting up email filters for your account? OBHost's support team is available 24/7 to assist you. Visit our contact page or email us at support@obhost.org for technical assistance.


Was this answer helpful?

« Back