This article explains how to create a global email filter in cPanel. The rule applies to all mailboxes in the account and defines what to do with new messages that match it.
What is it for?
With a global filter you can act on incoming mail for the entire service. For example:
- Discard messages whose subject contains specific text.
- Forward them to another address.
- Reject them with a notice to the sender.
It does not replace the spam filter. SpamAssassin is activated in Spam Filters. This filter uses the conditions you define.
Access: log in to cPanel from the client area → Log in to cPanel, or at https://yourdomain.com/cpanel. Then go to Email → Global Email Filters.
Important: the rule applies to all mailboxes. If the condition is too broad and the action is to discard, you may stop receiving valid mail across the entire service. The filter does not review messages already in the inbox. For a single mailbox, use Email Filters and choose that account.
Create the filter
- Log in to cPanel.
- Open Email → Global Email Filters.

- Click on Create a New Filter.

- Type a name to recognize it later.
- Build the condition. Choose which part of the message to look at (sender, recipient, subject, body, or other header), how to compare it, and the text that must match.
- Choose the action: discard the message, forward it, reject it with a notice, or deliver it to a folder.
- Click on Create.

If the action is to deliver to a folder, that folder must exist in the mailbox. If it does not exist, the message may return to the inbox.
The filter list remains on the same screen. From there you can test a sample message, edit the rule, or delete it. cPanel applies them in the order of the list. The first one that discards or rejects the message stops the subsequent ones.
Common issues
- I stopped receiving mail in several mailboxes: the global filter is discarding too much. Delete it or make the condition more specific, for example the full sender and not just a broad domain.
- The filter does not act on an old message: it only evaluates mail arriving after you create it.
- I wanted to filter a single mailbox and it affected all of them: you created a global filter. Delete it and create the rule in Email Filters, on that account.
- I asked to deliver to a folder and the message is still in the inbox: the folder does not exist in that mailbox. Create it in Webmail and try again.
- There are multiple filters and only one runs: a previous filter already discarded the message or has the action to stop processing.
If a filter blocked valid mail, you cannot narrow down the condition, or it does not apply to the new message, open a ticket from the client area or consult via the site's online chat.
