What is a domain?

/What is a domain?

​How do I create an email filter for a specific user?

Your incoming email is handled by account and user level filters, ensuring that you receive more mail and less spam. cPanel allows you to manage filters for each email account on your domain. This is useful while discarding spam, redirecting mail or piping messages to a program.

It is strongly recommended that you use multiple, simple filters instead of one long/complex filter. ​

  1. Log into cPanel.
  2. Navigate to the Home >Email>Email Filters.

email filters cpanel

The Email Filters page will be displayed.

Email Filters page

3.  Click the Manage filters link in the row of the email account you wish to manage its filters.

The selected email account will be displayed in edit mode.

manage email filters

4.  To add new email filters, click Create a New Filter.

The Create a New Filter for the selected account page will be displayed.

create email filter

5.  Enter the filter name in the Filter Name text entry box. In the example here, bing.com will be used for the filter. The filter will send any emails from a bing.com email address to the Junk folder.

Filter Rules and Criteria​

Option Description
From The message sender’s address.
Subject The message’s subject line.
To The address to which the sender sends 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.
Spam Status Whether Apache SpamAssassin marked the message as spam. The Spam Statusline begins with Yes or No.
Spam Bar The content of the Spam Bar header that Apache SpamAssassin generated for this message. The more plus signs (+) that Apache SpamAssassin assigns to a message, the greater the likelihood that the system marks the message as spam.
Spam Score The total number of plus signs  (+) in the Spam Bar value, expressed as an integer.

6.  Select Spam Bar from the first menu in the Rules section.

7.  Select Contains from the second menu in the Rules section.


Option Description
equals Exactly matches a defined string.
matches regex Matches the regular expression
contains Is a string that you define.
does not contain Does not contain the defined string.
begins with Begins with the defined string.
ends with Ends with the defined string.
does not begin Does not begin with the defined string.
does not end with Does not end with the defined string.
does not match Does not exactly match the defined string.

8.  Enter the spam score in the next text entry box. Adding the desired spam score with plus (+) characters.

Spam Score

Option Description
is above (#s only) Is greater than the number that you define.
is not above (#s only) Is equal to or less than the number that you define.
is below (#s only) Is less than the number that you define.
is not below (#s only) Is greater than or equal to the number that you define.

​9.  Select type of the action from the Actions drop down list. The available options are Discard Message, Redirect to Email, Fail with Message, Stop Processing Rules, Deliver to Folder and Pipe to a Program.


Action Description
Discard Message The incoming message is discarded with no failure notice.
Redirect to email The message is forwarded to another email address that you specify.
Fail with message The message is discarded and a failure notice is automatically sent.
Stop Processing Rules All filter rules are skipped.
Deliver to folder The message is delivered to a specified folder.
Pipe to a program The incoming message is sent to a specified program.

10.  Enter the name of the folder to which you wish to send your spam email.

11.  Click Create to create, save, and activate the spam filter.

Once the filter is created the message box informing you that you have successfully created a new filter will be displayed.​

12.  Navigate to Edit Filters section again, the new filter will be in the list of filters.  From here, the filter can be edited or removed.

edit email filter

13.  The filter can be tested to view if its doing what is required. In the Filter Test section, edit the To: and From: emails or the subject of the email (depending on how you set up the filter) to test the filter.

14.  Click Test Filter.

The test filter will run and the Filter Trace Results page will be displayed.

Filter Trace Results

You can review the message to see where the message is going.

2018-08-01T11:02:16+00:00 juli 18th, 2018|E-mail|Reacties uitgeschakeld voor How do I create an email filter for a specific user?
Hoasted support

How can we help you?

We want you to ask us questions, because we love to help you in accomplishing your goals. We let no questions unanswered, provide you with high speed responses and leave no problem unsolved. What is important to you, is important to us. Shoot us a message and see for yourself.