How to set email filters in cPanel ?

You can use e-mail filters to filter or block unwanted messages based upon a certain set of conditions. There are two types of e-mail filters that you can create:

E-mail filters: You can configure filters for specific e-mail accounts.

email filter

Global e-mail filters: You can configure filters that apply to all e-mail accounts for a domain.

global email filter



You need to follow these steps to create an e-mail filter:

* Log in to cPanel.

* In the EMAIL section of the cPanel home screen, do one of the following:

To create a filter for a specific e-mail account, click Email Filters:

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

email filter


To create a global e-mail filter, click Global Email Filters:

global email filters

Click Create a New Filter.


  • In the Filter Name text box, type the filter name.

You should use a filter name that is easily identifiable so you can tell what the filter's purpose is. Also, filter names must be unique; you cannot use duplicate filter names.

filter name


  • Under Rules, specify the filter rules. For example, to filter e-mail messages that contain the word buy in the subject:

In the first list box, select Subject.rules


  • In the second list box, select contains.



Type buy in the text box.


  • Under Actions select Discard Message



  • Now hit the Create button!


Filters use strict logic in determining how to handle messages. Make sure that your filter rules are not too broad. Otherwise, you may unintentionally block messages that you want to receive. Also, the text in rules is not case-sensitive. A rule that specifies buy and a rule that specifies BUY are equivalent.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to change language in cPanel

Follow the steps given below: 1. Log in to cPanel 2. Click your username on the top-right, then...

Importance of cron jobs feature in cpanel

A Cron Job is basically a LINUX command for scheduling a task (command). Cron Jobs enable you to...

What are Private DNS (nameservers)?

Private nameservers (or Private DNS) are nameservers that do not reflect your hosting provider,...

Connect to cPanel via FTP

If you wish to connect to your cPanel account via FTP you can do that by using an FTP client. We...

Checking Your Stats in cpanel metrics

Step by step way to check traffic metrics and stats using cpanel metrics tab You can check your...