Filters automatically sort, move or discard e-mail based on rules such as sender, subject or content. cPanel has two types: Email Filters apply to a single mailbox, Global Email Filters to all mailboxes of the account.
Create a filter
- Log in to cPanel and in the Email section click Email Filters (for one mailbox) or Global Email Filters (for all).
- For Email Filters: click Manage Filters next to the mailbox.
- Click Create a New Filter and enter a Filter Name.
- Under Rules, define the condition, e.g. Subject > contains >
lottery. Use + to add more rules (combined with and or or). - Under Actions, choose what should happen, e.g. Deliver to Folder, Redirect to Email or Discard Message.
- Click Create.
Edit or delete a filter
- Open Email Filters (and Manage Filters for the mailbox) or Global Email Filters.
- Under Current Filters, click Edit next to the filter, adjust rules or actions and click Save.
- To remove it, click Delete and confirm with Delete again.
Tip: Test new filters with Filter Test at the bottom of the page. Only use Discard Message if you are sure: discarded e-mails cannot be recovered.