This guide explains how to create and test an email filter in cPanel. Filters apply rules to incoming messages, for example to move messages with a particular subject to a folder.

Choose the filter scope

Log in to cPanel. Use Email > Email Filters for one mailbox, then select Manage Filters beside that mailbox. Use Email > Global Email Filters for rules that apply across the cPanel account.

Email Filters

Manage Filters

Create the filter

  1. Click Create a New Filter.

    Create Filter

  2. Enter a unique Filter Name.

  3. Select the message field, comparison and value under Rules. For example, match a word in the subject.

  4. Choose the required Action, such as delivery to a folder, and supply any destination it requires.

    Filter Name

  5. Click Create. Check that the rule appears under Current Filters, where you can edit or delete it.

    Current Filters

Test the filter

  1. In Filter Test, enter a sample message containing the headers or text your rule checks.

  2. Click Test Filter.

    Filter Test

  3. Review Filter Trace Results to see which conditions matched and what action would occur.

    Email Filters