How to Filter Incoming Emails for an Email Account in cPanel
Written by Naveed Ashraf Thursday, 13 January 2011
Applied to: cPanel Hosting
This article will guide you on how to create email filters for specific email address in your cPanel account so that incoming emails need to pass these filters before reaching the target mailbox. This guide is to implement filters for specific mailboxes (email addresses). However, this setup may also be done for the entire cPanel account. For this, you need to understand this tutorial and follow them via the link under your cPanel account named “Account Level Filtering”. That is similar to this process.
Here, we will work with the link “User Level Filtering” under cPanel Control Panel. Logic says that Account Level Filter has priority over User Level Filtering.
Step 1. After logging in to your control panel, click on “User Level Filtering”. This will open a screen as shown below containing a list of already created email addresses and a search box to seek specific email address.
Step 2. Search your mailbox from the search input box. Once the mailbox is in the list, click the “Manage Filters” link on the right of that mailbox in the column “Actions”. This will open a screen as shown below to list existing filters for that mailbox and a link button to create a new filter. Click “Create a New Filter”.
Step 3. Enter a name for this rule you are going to create.
Select base of rule from the first drop down menu. By default “From” is selected there. Change it as per your requirement.
Then from the second drop down menu, select the appropriate check for the filter. By default “equals” is selected there.
Now at the fourth input, type the value for the filter.
Click Activate to activate the filter.
For example, in the image below, I created a filter named “mobile_subject” that bounced back every incoming email to the sender if the incoming email contains word “mobile marketing” in the subject line. This filter will return back the mail to the sender with the message “Please don’t send mobile marketing related emails to this address”.