This guide explains how to create and test an email filter in cPanel. Filters apply rules to incoming messages, for example to move messages with a particular subject to a folder.
Choose the filter scope
Log in to cPanel. Use Email > Email Filters for one mailbox, then select Manage Filters beside that mailbox. Use Email > Global Email Filters for rules that apply across the cPanel account.


Create the filter
-
Click Create a New Filter.

-
Enter a unique Filter Name.
-
Select the message field, comparison and value under Rules. For example, match a word in the subject.
-
Choose the required Action, such as delivery to a folder, and supply any destination it requires.

-
Click Create. Check that the rule appears under Current Filters, where you can edit or delete it.

Test the filter
-
In Filter Test, enter a sample message containing the headers or text your rule checks.
-
Click Test Filter.

-
Review Filter Trace Results to see which conditions matched and what action would occur.

Test both matching and non-matching messages before relying on a rule that discards or redirects email. Broad rules can affect legitimate messages.