E-mail filters will help keep your inbox organized and make finding things much simpler. They can also help filter out the obnoxious messages that you get on a regular basis that are not trapped by the spam filter.
The methods discussed in this article are for Global Email Filters and Email filters. Global Email Filters will affect the entire Cpanel account, and the plain Email Filters, will only affect the address that you choose.
Step 1 – Choose your method
Step 2 – Create new filter
Global Email Filters – Choose “Create Filter”
Email filters – Choose the e-mail address this filter needs to apply to, then Choose “Create Filter”
Step 3 – Configure the filter name
Now you should see a form that you need to fill out to tell the filter what you want it to do. We will need to start by giving the filter a name. You should choose something related to what is does, so you can come back later to adjust things.
Step 4 – Configure the filter rules
The filter rules is where all the power is. This is where you tell the filter what you want it to look for. There are a ton of different options to choose from, but they are fairly strait forward. If you want to trash messages from email@example.com, you would choose “From” in the first box, and contains or equals in the second box. Contains is usually the best options for simple filters, but the equal is there is you need to be more specific.
Configuring, multiple rules:
To tighten things up, you can set multiple rules. To add another rule, look to the right and choose the + button to add a new rule. Once you add a new rule a drop down will appear with the “and” or “or” option. This is useful if you want to match both rules, or either rule but not both.
You can use the arrows on the left to change the order of the rules. Rules are processed from top to bottom, so you may need to make adjustments to the order based on what you want your filter to do.
Step 5 – Configure the filter action
Now that the filer has something to search for, you need to tell it what you want to happen when it finds a message. This action could be to forward the message to another address, discard the message, or move it to a folder, fail message delivery and send a bounce back message, or pipe to a program. Piping to a program allows you to deliver the message to a script that will handle the message. This is good for things like the WHMCS ticketing system or wordpress email posting..
You can also choose multiple actions. Please note that if you want to discard the message, that needs to come last on the list. If you set discard and then try to pipe to a program, the message will be deleted and will not make it to the pipe as assumed.
Now that you have your filter setup you should be good to go. If you are having trouble with setting up filters, we are always here to help!