If you are managing a business inbox through cPanel-based hosting, you have a powerful and often overlooked tool available to you: built-in email filtering. cPanel's email filters let you define rules that automatically act on incoming messages - sorting them into folders, deleting unwanted senders, forwarding copies, or triggering auto-responses - all without any third-party tool or plugin.
The Two Types of cPanel Email Filters
cPanel provides two distinct filtering systems, and understanding the difference between them is important before you start creating rules.
Global Email Filters apply to all email accounts associated with your hosting account. A rule you create here will affect every address - info@, support@, sales@, and any others you have set up. Global filters are ideal for blocking a known spam sender that targets every address on your domain, or for catch-all rules that apply universally.
Account-Level Email Filters (also called User-Level Filters in some cPanel versions) apply only to a specific individual email address. You access these either from the main cPanel Email Filters interface by selecting a specific account, or through webmail (Roundcube or Horde) if the hosting account is configured to allow users to manage their own filters.
Account-level filters are the right choice for personal sorting rules: moving newsletters to a specific folder, routing client emails by domain name, or setting up an auto-response for one specific address without affecting others.
Common Filter Use Cases
Sort newsletters and mailing lists into a dedicated folder. Create a filter that checks whether the message contains a "List-Unsubscribe" header (present in virtually all legitimate mailing lists) or whether the From address matches a known sender pattern, and deliver those messages to a "Newsletters" IMAP folder. Your primary inbox stays clear for messages that need action.
Auto-delete known spam senders. If a specific email address keeps sending unwanted messages and marking them as spam is not stopping them, a filter that matches the From address and deletes the message immediately is more efficient. Be specific with the match - target the exact address rather than a domain, unless you are confident the entire domain should be blocked.
Forward messages from specific domains to another address. A sales team might want copies of every email from a particular client's domain forwarded to a shared inbox. Set a filter matching the sender domain and use the "Forward to email address" action.
Auto-respond to messages about a specific subject. If you receive inquiries about a product or service with a predictable subject line, a filter can trigger a canned response while still delivering the original message to your inbox. Useful for after-hours acknowledgments on specific inquiry types.
Filter Action Options
When a filter condition is matched, cPanel gives you several action choices:
- Deliver to folder - route the message to an IMAP folder (the folder must already exist)
- Redirect to email - forward to another address (the original message is not delivered to your inbox)
- Fail with message - reject the message with an error (use with caution)
- Stop processing rules - deliver normally but prevent subsequent filter rules from evaluating this message
- Discard - silently delete the message with no bounce notification
- Pipe to a program - send the message to a custom script (advanced use)
- Auto-respond - send a pre-written reply (configured in cPanel's Auto Responders section)
Most business use cases are covered by the deliver to folder, redirect, and discard options.
Filter Order and Precedence
cPanel processes filters from top to bottom, in the order they appear in the interface. If a message matches the first rule and the action includes "Stop processing rules," no subsequent rules are evaluated for that message. If the action does not stop processing, the message continues to the next rule.
This means order matters. Put your most specific, high-priority rules at the top. Put broad catch-all rules at the bottom. If you have a rule that auto-deletes messages from a specific address, it should appear before any broader rules that might otherwise catch those messages and route them somewhere else.
You can reorder rules by dragging them in the cPanel interface.
How Filters Differ from SpamAssassin
cPanel also includes SpamAssassin, a probabilistic spam scoring system that analyses message content, header patterns, and reputation signals to assign a spam score. Messages above a threshold are tagged or filtered.
SpamAssassin and email filters are complementary, not alternatives:
- SpamAssassin catches new spam based on content patterns. It learns over time and adapts to evolving spam techniques. It makes judgment calls based on probability.
- Email filters are deterministic rules you define explicitly. If the From address is X, do Y - no probability involved.
The best approach uses both: SpamAssassin handles the broad probabilistic filtering, and your manually defined filters handle specific senders, subjects, or patterns that SpamAssassin might miss or that are unique to your business.

