Knowledgebase
User Level Filtering Print this Article
cPanel allows you to manage filters for each email account in your domain. You can use this feature to discard spam, redirect mail, or pipe messages to a program.
- To search for a specific account, type a keyword in the Search box and click Go.
- Click Manage Filters to create or edit a filter for an email account.
Best Practices
We strongly recommend that you use multiple, simple filters instead of a single, monolithic filter. Exim, your server's mail transfer agent, handles many small rules more efficiently than it handles a single large rule.
Exim has an implicit limit on how large an error message can be. Excessively large filters can exceed that limit whenever an error is encountered, making debugging impossible.
Add a User Level Filter
It is important to give the filter an appropriate name, as it will make the task of managing existing filters easier in the future.
To create a new filter:
- Click Create a new Filter.
- Enter a name for the filter in the Filter Name box.
- Select a message characteristic (from, subject, to, etc.) from the first pull-down menu.
- Select an operator (equals, contains, etc.) from the next pull-down menu.
- Enter the characters or words you wish to use as a filter.
- Note: This field will accept regular expressions (when you select the matches regex operator), rather than more commonly used wildcard characters (such as
*
or?
).
- Note: This field will accept regular expressions (when you select the matches regex operator), rather than more commonly used wildcard characters (such as
- You can add and subtract rules by clicking the + and - buttons.
- Select an action from the pull-down menu under the Actions heading. You can add and subtract actions by clicking the + and - buttons.
- Click Activate to initialize the filter.
Test a Custom Filter
Once a filter has been created, it can be tested.
To test your filter:
- Enter a test email message in the text box below the Filter Test heading.
- Be sure to include the characters or words that you have set your filter to catch.
- Click Test Filter.
Edit a Custom Filter
You can also modify an existing filter.
To edit an existing filter:
- Click Edit next to the appropriate filter name.
- You can adjust any of the fields displayed — the message characteristic, operator, term to filter, or resulting action.
- Click Activate to initialize the filter.
Remove an Existing Filter
To delete a filter:
- Click Delete.
- Confirm that the filter should be deleted on the following page.
Was this answer helpful?
Also Read
Add an Email Address To add a new email address: Enter the email address that you wish to...
Webmail allows you to access your email accounts through your web browser. When you check email...
This feature allows a copy of any email sent to one address to be forwarded to another address....
This feature can be configured to automatically send response messages. This can be useful when...
This feature allows you to set up a default address that receives any mail sent to an invalid...