For assistance with logging into your Control Panel via your 'My Account' area, please go here.
cPanel provides two methods to set up email filters: 'User-level' and 'Global'. The process to set up email filters are the same in each, except that Global filters apply to all email addresses associated with your domain. This tutorial will demonstrate how to set up 'User-level' email filters in cPanel.
To set up email filters in cPanel, please
- Log into your Control Panel (cPanel).
- In the Control Panel dashboard, under 'Email' section, click on 'Email Filters'.
- In the next page, locate the desired email account from the table of existing email accounts or you may use the search text box to find a specific email account.
- Under 'Actions' column, click 'Manage Filters' link next to the email account.
- Click 'Create a New Filter' button.
- Input the name of the filter in the 'Filter Name' text box.
- Under 'Rules' section, in the first dropdown menu, select the portion of the email message that the system will examine:
- From - The message sender's address
- Subject - The message's subject line
- To - The address to which the sender sent the message
- Reply Address - The address at which the sender receives replies
- Body - The message's content
- Any Header - Any part of the message's header
- Any Recipient - Any recipient of the message
- Has not been previously delivered - The system only examines messages that remain in the queue for delivery
- Is an Error Message - The system only examines error messages that an auto-response system sends
- List ID - The account's mailing lists
- To supplement the selected option in the first dropdown menu, choose the criteria in the second dropdown menu:
- contains - The message contains a string that you define. A string could be a series of text, numbers, or symbols.
- matches regex - The message matches a regular expression that you define.
- does not contain - The message does not contain the defined string.
- equals - The message exactly matches a defined string.
- begins with - The message begins with the defined string.
- ends with - The message ends with the defined string.
- does not begin - The message does not begin with the defined string.
- does not end with - The message does not end with the defined string.
- does not match - The message does not exactly match the defined string.
- After you have defined the filter rule, type in the word or phrase in the text box below the two dropdown menus. This completes the filter rule that will be used by the system to compare incoming messages.
- In the 'Actions' dropdown menu, select an action that executes when an incoming email matches your new rule:
- Discard Message - The system discards the incoming message with no failure notice
- Redirect to Email - The system forwards the message to another email address that you specify in the text box that appears below
- Fail with Message - The system discards the message and automatically sends a failure notice to the sender. Type in the message in the text box that appears below.
- Stop Processing Rules - The system skips all filter rules
- Deliver to Folder - The system delivers the message to a folder you specify in the Browse field which appears below
- Pipe to a Program - Send the message to a specific program for further processing. For more information, refer to cPanel's documentation Pipe to a Program.
- Once all settings are set, click 'Create' button to save the email filter.
Congratulations! You have successfully set up email filters in cPanel.
Posting has been disabled.