Email filters automatically act on incoming messages based on rules you define — filing newsletters into a folder, forwarding certain mail to a colleague, binning obvious junk before it hits your inbox. cPanel lets you build these rules for a single mailbox or for a whole domain. Here’s how.
Account-level vs domain-level filters
cPanel offers two filter tools. Email Filters creates rules for a specific mailbox — ideal for organising your own mail. Global Email Filters applies rules to every address on the domain — useful for blocking a spammer across all your addresses at once. Choose based on whether the rule should affect one mailbox or all of them.
Creating a filter
- In cPanel, open Email Filters under the Email section and select the account (or use Global Email Filters for the whole domain).
- Click Create a New Filter and give it a clear name.
- Set the condition: choose a part of the message (From, Subject, To, Body) and a match (contains, is, begins with) and the text to match.
- Set the action: deliver to a folder, forward to another address, discard, or several others.
- Save.
Useful filter examples
- File newsletters: if the From address contains a newsletter sender, deliver to a “Newsletters” folder so they don’t clutter your inbox.
- Forward to a colleague: if the subject contains “invoice”, also forward to your accounts address.
- Bin a persistent spammer: if From contains a specific address, discard the message.
- Flag important mail: if From is a key client, deliver to a priority folder.
Combining conditions
You can add multiple conditions to one filter and choose whether all of them or any of them must match. This lets you build precise rules — for example, mail that’s from a particular sender and has a certain subject. Start simple and add conditions only as you need them.
Ordering matters
Filters run in order, top to bottom, and an earlier filter can affect what later ones see. If a filter discards a message, later filters never get a chance to act on it. Keep this in mind when you have several rules, and arrange them so the most decisive actions are ordered sensibly.
Test before you rely on it
cPanel includes a Filter Test feature where you can paste a sample message and see whether your filter would catch it. Use it to confirm a rule works as intended before trusting it with real mail — especially for filters that discard or forward, where a mistake could lose messages.
Filters are a quiet productivity boost once set up well. If you’d like help building a set of rules to tame a busy inbox, just ask.