When you receive any Email on the server, you may need to discard some emails (i.e. spam mails), redirect mails to specific email address or need to deliver a mail to a program. In such scenario, the User and the Account Level Filtering is useful. cPanel provides the facility to manage this type of filters for all the emails of your domain as well as for specific email account. This type of filters are useful for discarding spam, redirecting mail, or piping messages to your program.
Steps to create User Level Filtering:
- Click the User Level Filtering icon under the Mail section.
- Click Manage Filters next to the user (i.e. email account) for which you need to set up filter.
- To add a filter on email account, click on Create a new Filter button.
- In the Filter Name field, enter a name for your filter.
- From the Rules option, choose the rule characteristic from first drop-down list that you wish to apply. (i.e. From, to, subject etc.).
- From second drop-down list, select an operator. (i.e. equals, contains, ends with etc.).
- In next text box, enter value according to characteristic and operator. (i.e. [email protected]).
- You can enter as many characteristic as you wish to apply.
- From the Actions drop-down list, choose the action which you need be performed when a mail matches a rule in the filter.
- Click on Create button to enable the rule.
- In future, if you need to modify or remove any filter, click on User Level Filtering from cPanel dashboard and select relevant filter to modify or remove.
Steps to Create Account Level Filtering:
- Click the Account Level Filtering icon under the Mail section.
- To add a filter, click on Create a new Filter button.
- In the Filter Name field, enter a name for your filter.
- From the Rules option, choose the rule characteristic from first drop-down list that you wish to apply. (i.e. From, to, subject etc.).
- From second drop-down list, select an operator. (i.e. equals, contains, ends with etc.).
- In next text box, enter value according to characteristic and operator.
- You can enter as many characteristic as you wish to apply.
- From the Actions drop-down list, choose the action which you need be performed when a mail matches a rule in the filter.
- Click on Create button to enable the rule.
- In future, if you need to modify or remove any filter, click on Account Level Filtering from cPanel dashboard and select relevant filter to modify or remove.