This article explains how to create email filters in cPanel, either for the entire service or for a single mailbox. The rule looks at new messages that meet a condition and defines what to do with them.
What is it for?
There are two screens, and they do not do the same thing:
- Global Email Filters: the rule applies to all mailboxes in the account. cPanel applies this first.
- Email Filters: the rule applies only to the mailbox you choose. cPanel applies this after the global filter.
With either one, you can discard a message, forward it, reject it with a notice, or deliver it to a folder. It does not replace the spam filter from Spam Filters.
Access: log in to cPanel from the client portal → Log in to cPanel, or at https://yourdomain.com/cpanel. Both options are under Email.
Important: a poorly constructed filter can prevent valid mail from arriving. Globally, the effect is for all mailboxes. Per user, only for that account. Test the rule after creating it. If you stop receiving mail, delete it. The filter does not review messages that were already in the inbox.
Filter for all mailboxes
- 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.

Filter for a mailbox
- Open Email → Email Filters.

- Under the mailbox you want to filter, click on Manage Filters.

- Click on Create a New Filter.

- Complete the name, condition, and action, just like in the global filter.
- Click on Create.
If the action is to deliver to a folder, create it beforehand in the Webmail of that mailbox. If it does not exist, the message may return to the inbox.
In the list, you can test a sample message, edit the rule, or delete it. cPanel applies them in the order of the list. The first filter that discards or rejects the message stops the subsequent ones. If a global filter has already discarded it, the mailbox filter does not see it.
Common issues
- I stopped receiving mail in multiple mailboxes: the global filter is discarding too much. Delete it or make the condition more specific.
- Only one mailbox fails: review the filters for that account under Email Filters → Manage Filters.
- I wanted to filter a single address and it affected all of them: you created a global filter. Delete it and create the rule on that mailbox.
- The filter does not act on an old message: it only evaluates mail that arrives after you create it.
- I requested 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.
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 portal or consult via the site's online chat.
