Economicalhost · Knowledge Base
Knowledge Base › Email Accounts › How to Create Email Filters in cPanel
Email Accounts

How to Create Email Filters in cPanel

Filters run on the server before mail reaches any device — so a rule made once works in Outlook, webmail and your phone simultaneously.

Step-by-step

  1. Choose the right tool. Email → Email Filters applies rules to one mailbox; Global Email Filters applies to every address on the domain.
  2. Click Manage Filters next to the account (for per-mailbox filters), then Create a New Filter.
  3. Name the filter descriptively, e.g. "Invoices to Accounts folder".
  4. Set the rule. Choose a field (From, Subject, Body…), a comparison (contains, equals, matches regex…) and the text to match.
  5. Add multiple conditions with the + button, combining with and/or.
  6. Choose the action: Deliver to folder, Redirect to another address, Discard, or Fail with message. Multiple actions can be stacked.
  7. Save, then test. Use the Filter Test box to paste a sample message and confirm the rule fires.

💡 Good to know

  • Filters process in order, top to bottom — drag to reorder; the first matching Discard stops later rules.
  • Deliver-to-folder needs the folder to exist — create it in webmail first.
  • Use filters to auto-delete recurring newsletters you cannot unsubscribe from, rather than marking spam.