How to configure e-mail filtering in cPanel
This article describes how to set up e-mail filters in cPanel.Table of Contents
- About e-mail filters
- Creating an e-mail filter
- Testing an email filter
- Editing or deleting an email filter
About e-mail filters
Email filters are a useful tool for filtering unsolicited messages according to specific criteria. For instance, you can choose that emails with a specific word or phrase in them be immediately deleted or forwarded to a different email address. Your created email filters are cumulative, meaning that even when a message gets past one filter, it may still be blocked by another.
There are two types of e-mail filters that you can create:
- E-mail filters: You can configure filters for specific e-mail accounts.
- Global e-mail filters: You can configure filters that apply to all e-mail accounts for a domain.
Creating an e-mail filter
To create an e-mail filter, follow these steps:
- Log in to cPanefl.If you do not know how to log in to your cPanel account, please see this article.
- Open the filtering tool you want:
- If you are using the Jupiter theme, on the Tools page, in the Email section, do one of the following:
- To create a filter for a specific e-mail account, click Email Filters:
Locate the account for which you want to add a filter, and then click Manage Filters.
- To create a global e-mail filter, click Global Email Filters:
- To create a filter for a specific e-mail account, click Email Filters:
- If you are using the Paper Lantern theme, in the EMAIL section of the cPanel home page, do one of the following:
- To create a filter for a specific e-mail account, click Email Filters:
Locate the account for which you want to add a filter, and then click Manage Filters.
- To create a global e-mail filter, click Global Email Filters:
- To create a filter for a specific e-mail account, click Email Filters:
- If you are using the Jupiter theme, on the Tools page, in the Email section, do one of the following:
- Click Create a New Filter.
- In the Filter Name text box, type the filter name.
You should use a filter name that is easily identifiable so you can tell what the filter’s purpose is. Also, filter names must be unique; you cannot use duplicate filter names. - Under Rules, specify the filter rules. For example, to filter e-mail messages that contain the word buy in the subject:
- In the first list box, select Subject.
- In the second list box, select contains.
- Type buy in the text box.
- Click the + icon to add another rule.
You can add as many rules as you want. For example, the sample rule in step 5 blocks all messages that contain the word buy in the subject. This is a very broad rule that will likely block some legitimate messages. You can add another rule that specifies the word now in the subject. Select and in the list box. The filter will now match any message that contains the words buy and now in the subject line. - Under Actions, select the action for the filter to perform if the rule conditions are matched. You can specify multiple actions. To do so, click the + icon to add another action.
- Click Create. cPanel creates the filter.
Testing an email filter
After you have created a filter, you should test it to make sure that it filters what you intended.
To test an email filter, follow these steps:
- Log in to cPanel.If you do not know how to log in to your cPanel account, please see this article.
- Open the filtering tool you want:
- If you are using the Jupiter theme, on the Tools page, in the Email section, do one of the following:
- To test a filter for a specific e-mail account, click Email Filters:
Locate the account for which you want to test a filter, and then click Manage Filters.
- To test a global e-mail filter, click Global Email Filters:
- To test a filter for a specific e-mail account, click Email Filters:
- If you are using the Paper Lantern theme, in the EMAIL section of the cPanel home page, do one of the following:
- To test a filter for a specific e-mail account, click Email Filters:
Locate the account for which you want to test a filter, and then click Manage Filters.
- To test a global e-mail filter, click Global Email Filters:
- To test a filter for a specific e-mail account, click Email Filters:
- If you are using the Jupiter theme, on the Tools page, in the Email section, do one of the following:
- In the Filter Test text box, type a test e-mail message.
- Click Test Filter. The Filter Trace Results page shows if any rule conditions were met, and whether or not any actions will be taken.
Editing or deleting an email filter
After you have created a filter, you can edit it or delete it.
To edit or delete an email filter, follow these steps:
- Log in to cPanel.If you do not know how to log in to your cPanel account, please see this article.
- Open the filtering tool you want:
- If you are using the Jupiter theme, on the Tools page, in the Email section, do one of the following:
- To edit or delete a filter for a specific e-mail account, click Email Filters:
Locate the account for which you want to edit or delete a filter, and then click Manage Filters.
- To edit or delete a global e-mail filter, click Global Email Filters:
- To edit or delete a filter for a specific e-mail account, click Email Filters:
- If you are using the Paper Lantern theme, in the EMAIL section of the cPanel home page, do one of the following:
- To edit or delete a filter for a specific e-mail account, click Email Filters:
Locate the account for which you want to edit or delete a filter, and then click Manage Filters.
- To edit or delete a global e-mail filter, click Global Email Filters:
- To edit or delete a filter for a specific e-mail account, click Email Filters:
- If you are using the Jupiter theme, on the Tools page, in the Email section, do one of the following:
- Under Current Filters, locate the filter you want to edit or delete.
- To edit the filter, click Edit. The Edit a Filter page is almost identical to the page that you use to create a filter.
- To delete the filter, click Delete, and then click Delete Filter to confirm the deletion.