Tip: Start typing in the input box for immediate search results.

< Back
Print

Create Email Filters – cPanel

Learn how to Create Email Filters using cPanel. You can create, edit, and remove email filters for a selected email account.

You can use e-mail filters to block unwanted messages based upon a certain set of conditions. For example, you can specify that messages containing a certain word or phrase are deleted automatically or routed to another e-mail address.

Email filters in cPanel give you another level of control over email — especially over SPAM email. 


Video tutorial – Create and test Email Filters in cPanel


Step-by-step tutorial – Create and test Email Filters in cPanel

  1. Login to cPanel.

    Tutorial: login from the Client Area or the direct link.

    Find Email selection and click on Email Filters link.

    Extilum cPanel - Email filters

  2. Filter by Users

    Locate the account where you want to add a filter, and then click Manage Filters.

    Extilum cPanel - Email filters

  3. Create Filter

    Click on the button Create a New Filter.

    Use multiple, simple filters instead of a single large filter.
    The server’s mail transfer agent, handles many small rules more efficiently than a single large rule.

    Extilum cPanel - Email filters

  4. Filter Name and Rules.

    Filter Name
    Type the filter name.
    Rules
    Specify the filter rules.

    The following criteria are available:
    From — The message sender’s address.
    Subject — The message’s subject line.
    To — The address to which the sender sent the message.
    Reply Address — The address at which the sender receives replies.
    Body — The message’s content.
    Any Header — Any part of the message’s header.
    Any recipient — Any recipient of the message.
    Has not been previously delivered — The system only examines messages that remain in the queue for delivery.
    Is an Error Message — The system only examines error messages that an auto-response system sends.
    List ID —  The account’s mailing lists.


    The following comparison operators are available:
    equals — The message exactly matches a defined string.
    matches regex — The message matches a regular expression that you define.
    contains — The message contains a string that you define.
    does not contain — The message does not contain the defined string.
    begins with — The message begins with the defined string.
    ends with — The message ends with the defined string.
    does not begin — The message does not begin with the defined string.
    does not end with — The message does not end with the defined string.
    does not match — The message does not exactly match the defined string.


    below the operator and criteria fields you can type the word or phrase you wish to filter.
    Select the Action you wish to happen when an incoming email matches your new rule.
    You can specify multiple actions. To do so, click the + icon to add another action.

    The following actions are available:
    Discard Message: Discard the message with no failure notice to the sender.
    Redirect to Email: Forward message to a specific email address.
    Fail With Message: Discard the message and send a failure notice to the sender.
    Stop Processing rules: Proceed and ignore all other filter rules. (Useful when you have more than one filter set up.)
    Deliver to Folder: Deliver the message to a specific email folder.
    Pipe to a Program: Send the message to a specific program for further processing.


    Click the + icon to add another rule.

    Click Create.

    Extilum cPanel - Email filters

  5. Test an email filter

    In the Filter Test text box, Include the characters, words, and conditions that you configured for your filter.
    Click Test Filter.

    Extilum cPanel - Email filters

  6. Filter Trace Results

    It displays if any rule conditions were met and whether any actions will be taken.

    Extilum cPanel - Email filters

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.