Email filters use the criteria that you specify to determine how to handle email messages. The following cPanel interfaces allow you to configure email filters:
The Global Email Filters interface (cPanel >> Home >> Email >> Global Email Filters) — Global email filters affect the cPanel account’s email addresses.
The Email Filters interface (cPanel >> Home >> Email >> Email Filters) — User-level filters affect specific email addresses on the cPanel account.
+ to add a rule, or click - to remove rules.The first set of options specifies which part of the email message the system examines to determine whether the message matches your filter parameters.
You can choose from the following options:
Yes or No.+) that Apache SpamAssassin assigns to a message, the greater the likelihood that the system marks the message as spam.+) in the Spam Bar value, expressed as an integer. For more information about the Spam Score option, read the Spam Score section below.After you select the portion of the email message that the system will examine, select the type of comparison between that portion of the email and the criteria that you enter.
You can choose from the following options:
* or ?).The following options are only applicable when you select the Spam Score option:
When you create a filter that uses several operators, the system processes the and operator before the or operator. For example:
A or B and C as A or (B and C).A and B or C as (A and B) or C.Enter the criteria to use in the text box under the Rules menus. The type of data that you enter determines the comparison that the system performs.
For example, if you select the From and Equals filters, enter user@example.com as the criteria. The system determines that any email from user@example.com matches the filter, but does not match seconduser@example.com because it contains additional letters.
$message_body field. Do not add \n characters to any body filters that you create.
To create additional rules for a filter, click a plus symbol to the right of a rule. A new option menu, operator menu, and criteria text box will appear on the interface.
To delete a rule, click the minus symbol to the right of that rule. The system will remove that rule from the interface.
Select how the system processes the list of rules with the or menu to the right of the rules:
When cPanel determines that an email message matches your filter, it handles that message with the any of the following actions that you specify:
Redirect to email — The system forwards the message to another email address that you specify.
Fail with message — The system discards the message and automatically send a failure notice to the sender.
Stop Processing Rules — The system stops performing further actions or applying any remaining filters on this message.
Deliver to folder — The system delivers the message to a specified folder.
Pipe to a program — The system sends the incoming message to a specified program. For more information, read the Pipe to a Program section below.
0700). To change your script’s file permissions, run the chmod 0700 myscript.php command, where myscript.php represents your script’s location and file name.Use the Pipe to a Program option to parse and enter email information into a different system. For example, use the Pipe to a Program option to pipe email information to a program that enters email information into a ticket system.
$_SERVER array and variables on the command line.When you use the Pipe to a Program option, enter a path that is relative to your home directory. For example, to use the /home/user/script.pl script, enter script.pl in the Pipe to a Program text box, where user represents your username.
To create additional actions for a rule, click a plus symbol to the right of an action. A new action menu will appear on the interface.
To delete an additional action, click the minus symbol to the right of the action. The system will remove that action from the interface.