Email filters in cPanel: sort and delete messages
A filter checks every incoming message against rules and runs an action: puts it in a folder, forwards it, deletes it. Rules run in order, top to bottom. "Email Filters" work for one mailbox, "Global Email Filters" for all mail of the account.
- Open "Email Filters" (group "Email").
- Click "Manage Filters" next to the mailbox.
- Click "Create a New Filter".

- "Filter Name" - anything clear, for example
Invoices. - "Rules": what to check (From, Subject, To, Body...), the condition (contains, equals, begins with) and the value.
- Actions: "Deliver to Folder" (the button next to it picks the folder), "Redirect to Email", "Discard Message" and others.
- Click "Create".

| Task | Rule and action |
|---|---|
| Messages with "Invoice" in the subject - to the Invoices folder | Subject / contains / Invoice -> Deliver to Folder |
| Everything from a newsletter address - delete | From / contains / news@shop.example -> Discard Message |
| Obvious spam - delete | Spam Bar / contains / +++++ -> Discard Message |
The "+" and "-" buttons add and remove rules and actions. Several rules can be joined with "and" or "or".