An email filter sorts your incoming email automatically, for example to move messages from one
sender into a folder, or to delete messages you never want.
Two kinds of filter
- Email Filters apply to one mailbox. In cPanel, open Email Filters (in the Email
section) and click Manage Filters next to the address.
- Global Email Filters apply to all email on your account. Open Global Email Filters in the
same section.
You can also set filters for your own mailbox in webmail, from Email Filters on the webmail home
page: see Using webmail.
Creating a filter
- Open the filters page and click Create a New Filter.
- Give the filter a Filter Name. Each name must be unique: a filter with the same name replaces
the old one.
- Under Rules, choose what to look at, how to compare it, and the value. You can look at
From, Subject, To, Any Recipient, Reply, Body, Any Header, List ID,
Spam Status, Spam Bar or Spam Score, or whether the message Is an Error Message or
Has Not Been Previously Delivered. The comparisons include contains, equals, begins
with, ends with and matches regex, and their opposites. You can add more than one rule.
- Under Actions, choose what to do: Deliver to Folder, Redirect to Email, Discard
Message, Fail With Message (return it to the sender) or Stop Processing Rules. You can
add more than one action.
- Click Create.
Things to know
- Discard Message deletes the email for good, and you will not see it. Try Deliver to Folder
first.
- Filters run in order, top to bottom. Drag them in the list to reorder them.
- To change a filter, click Edit and then Save. To remove one, click Delete, then
Delete Filter.
- Filter Test: paste a message into the box on the Manage Filters page and click Test
Filter. It shows whether each of your conditions matched, and what would happen to the message.
- Spam is already handled for you: see
Spam filtering with MailScanner, and allowing or blocking senders.