To create a global email filter in cPanel, open Global Email Filters, click Create a New Filter, set a rule and an action, then click Create.
A global filter checks new mail for every email address in your cPanel account. Older cPanel versions called this tool Account Level Filtering. To filter one address only, use a user-level filter instead.
Create the filter
- Sign in to cPanel. Your sign-in details are in your welcome email or under Services in the ASRHost client area.
- Type
Global Email Filtersin the Search Tools box and open it. - Click Create a New Filter.
- In Filter Name, type a name you will recognize, for example
Lottery spam. - Under Rules, choose what to check in the first list, such as Subject or Body.
- In the second list, choose contains.
- In the text box, type the word to look for, for example
lottery. - Under Actions, choose what happens to matching mail. Deliver to Folder moves it to a folder you pick. Discard Message deletes it.
- Click Create.
A green message confirms the filter. It now appears under Current Filters.
Discard Message deletes matching mail permanently, and the sender is not told. Start with Deliver to Folder until you are sure the filter catches only spam.
Useful rule ideas
- To add more conditions, click the + button next to a rule, then choose and or or.
- To move mail that SpamAssassin has marked, choose Spam Status, then begins with, and type
Yes. Spam Filters must be turned on for this rule to work. - To block one sender, choose From, then contains, and type the sender's address.
Check that it worked
From another email account, send a message that contains your filter word. It should not appear in the inbox. If you used Deliver to Folder, look for it in that folder.
Common problems
Why didn't my filter catch a message?
Check the spelling of the word and whether you chose Subject or Body. Filters only check new mail. Messages that arrived before you created the filter stay where they are.
