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​

OptionDescription
FromThe message sender’s address.
SubjectThe message’s subject line.
ToThe address to which the sender sends the message.
Reply AddressThe address at which the sender receives replies.
BodyThe message’s content.
Any HeaderAny part of the message’s header.
Any recipientAny recipient of the message.
Has not been previously deliveredThe system only examines messages that remain in the queue for delivery.
is an Error MessageThe system only examines error messages that an auto-response system sends.
List IDThe account’s mailing lists.
Spam StatusWhether Apache SpamAssassin marked the message as spam. The Spam Statusline begins with Yes or No.
Spam BarThe 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 ScoreThe 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.

Operators

OptionDescription
equalsExactly matches a defined string.
matches regexMatches the regular expression
containsIs a string that you define.
does not containDoes not contain the defined string.
begins withBegins with the defined string.
ends withEnds with the defined string.
does not beginDoes not begin with the defined string.
does not end withDoes not end with the defined string.
does not matchDoes 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

OptionDescription
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.

Actions

ActionDescription
Discard MessageThe incoming message is discarded with no failure notice.
Redirect to emailThe message is forwarded to another email address that you specify.
Fail with messageThe message is discarded and a failure notice is automatically sent.
Stop Processing RulesAll filter rules are skipped.
Deliver to folderThe message is delivered to a specified folder.
Pipe to a programThe 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.