Create a filter
Open Email Filters
Log in to cPanel through your client area or at
yourdomain.com/cpanel. Go to Email and click Email Filters.Set the rules
Define one or more conditions. Each condition has three parts:
- Field — what part of the message to check (e.g. From, Subject, To, Body)
- Operator — how to match (e.g. equals, contains, matches regex, begins with)
- Value — the text to match against
Set the action
Choose what happens when a message matches:
- Deliver to folder — move the message to a specific mailbox folder
- Redirect to email — send the message to another address
- Discard message — delete the message without delivering it
- Fail with message — reject the message and return an error to the sender
Common filter examples
Sort newsletters into a folder — Set the condition to To contains+newsletters (if you use plus addressing) or From contains the sender’s domain. Set the action to Deliver to folder and choose or create a folder.
Forward messages from a specific sender — Set From equals the sender’s email address. Set the action to Redirect to email and enter the destination address.
Discard messages with a keyword in the subject — Set Subject contains the keyword. Set the action to Discard message.