Skip to content
Host4u Limited

Email filters

Support Portal  »  Knowledgebase  »  Viewing Article
There was a problem loading the comments.
  Print
  • 13/11/2026 9:38 am

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

  1. Open the filters page and click Create a New Filter.
  2. Give the filter a Filter Name. Each name must be unique: a filter with the same name replaces the old one.
  3. 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.
  4. 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.
  5. 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.

Share via
Did you find this article useful?  

Related Articles


Self-Hosted Help Desk Software by SupportPal