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.

  1. Open "Email Filters" (group "Email").
  2. Click "Manage Filters" next to the mailbox.
  3. Click "Create a New Filter".
Mailboxes and their filters
Mailboxes and their filters
  1. "Filter Name" - anything clear, for example Invoices.
  2. "Rules": what to check (From, Subject, To, Body...), the condition (contains, equals, begins with) and the value.
  3. Actions: "Deliver to Folder" (the button next to it picks the folder), "Redirect to Email", "Discard Message" and others.
  4. Click "Create".
New filter
New filter
TaskRule and action
Messages with "Invoice" in the subject - to the Invoices folderSubject / contains / Invoice -> Deliver to Folder
Everything from a newsletter address - deleteFrom / contains / news@shop.example -> Discard Message
Obvious spam - deleteSpam Bar / contains / +++++ -> Discard Message

The "+" and "-" buttons add and remove rules and actions. Several rules can be joined with "and" or "or".

Questions and answers
An email filter works on one mailbox, a global filter on all mail of the account.
Rule: Spam Bar / contains / +++++, action "Discard Message".