When receiving emails on the server, there may be a need for filtering specific email addresses that are coming into the server. Emails can be Discarded, sent to another email address, or delivered to a program with the User and Account Level Filtering. This tutorial will explain the User / Account Level Filtering within the cPanel. If the previous tutorial was missed, please visit the Setting domain MX records to remote settings in cPanel tutorial.

Filtering emails on the User and Account level

  1. Log into your cPanel
  2. user-level-filtering-1-select-moodleFor User level filtering Navigate to the Mail > User Level Filtering in cPanel.
    user-level-filtering-4-accountFor Account level filtering Navigate to the Mail > Account Level Filtering in cPanel.
  3. user-level-filtering-2-manage-moodleIn the Manage filters section, click the Manage filters link in the row of the email account that is having filters set up.
  4. user-level-filtering-3-create-moodleThe Edit Filters for your@emailaddress.com will open up. Click the Create a New Filter button to add email filters.
  5. user-level-filtering-5-click-moodleIn this article, Yahoo.com will be used for the filter. The filter will send any emails from a Yahoo.com email address to the Junk folder. Set the Filter name, Rules, and Actions and click Create. The action in this case will be Junk. Below is a description of what each Option, Operator, and Action does.

    Email Filter Option Rules

    From This is for matching the from email address.
    Subject This will filter by the subject of the email.
    To This will filter the email by who it was sent to.
    Reply Address Filters by the reply address to who the email will be replied to.
    Body Scans the text of the email for any matches and filters according to the text of the email..
    Any Header Scans specific criteria found in the Headers of the email.
    Any Recipient Looks at all recipients of the email.
    Has not been previously delivered Filters emails if they are still in Queue on the server..
    Is an error message Looks at errors received by auto responders.

    Email Filter Operator Rules

    Equals Matches exactly what is put in the box.
    Matches Regex A Regular Expression can be used here..
    Contains Will match if the email has the string of characters in it.
    Does not Contain Will match if the email does NOT have the string of characters in it.
    Begins with Begins with the characters that were typed.
    Ends with Ends with the Characters that were typed.
    Does not begin with Doesn't begin with the characters that were typed.
    Does not end with Doesn't end with the Characters that were typed.
    Does not match Does not equal the characters typed.

    Email Filter Action Rules

    Discard Message Deletes the message with no Failure message.
    Redirect to Email Sends the email to another email address.
    Fail with Message Deletes the email and sends a failure message..
    Stop processing rules Does not run any filter rules.
    Deliver to folder Sends the email to a specified folder.
    Pipe to program Sends the email to a program or script on the server.

    user-level-filtering-6-success-moodleOnce the filter is created there should be a "You have successfully created a new filter" message.


  6. user-level-filtering-7-final=moodleWhen visiting the Edit Filters section again, the new filter will be in the list of filters. Here is where the filter can be edited or removed.
  7. user-level-filtering-8-test-moodleNext the filter can be tested to see if its doing what is required. At the bottom of the edit filters section, change the To: and From: emails or the subject (depending on how you set up the filter) to test the filter. Click Test Filter.
  8. user-level-filtering-9-output-moodleThe test filter will run and display on the Filter Trace page. In the Filter trace results: the message can be seen going to where the filter was set. In this case The message was Saved to the Trash..

This concludes the article for Creating user level filtering in cPanel. For more information on this course please visit Using Email - cPanel

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2002
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5276

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!