Global Email Filters (Account-Level Filtering) allow you to create an email filter that will be used by all the email accounts in your cPanel instead of having individual filters. On the other hand, Email Filters (User-Level Filtering) are for individual email accounts. Learn how to create and manage these filters by following the instructions below:
Create Global Email Filter
Step 1. Log in to the cPanel.
Step 2. Click on Global Email Filters under Email panel.
Step 3. Click on Create a New Filter button.
Step 4. Enter the Filter Name in the empty field.
Step 5. Choose what type of rules you want to use.
OPTION | DESCRIPTION |
From | Sender’s email address. |
Subject | Email’s subject line. |
To | The email address to which the sender sent the email. |
Reply | The email address at which the sender receives replies. |
Body | The email’s content. |
Any Header | Any part of the email’s header. |
Any recipient | Any recipient of the email. |
Has not been previously delivered | Emails that are still on queue. |
is an Error Message | Error messages that are detected by the system. |
List ID | Mailing lists. |
Spam Status | Check SpamAssasin filter. |
Spam Bar | Based on the Spam Bar (+) that is set in the SpamAssasin filter. |
Spam Score | Total number of plus signs (+) in the Spam Bar value, expressed as an integer through SpamAssasin. |
OPTION | DESCRIPTION |
Contains | Contains the keywords that you define. |
Matches Regex | Emails that matches to the regular expression that you define. |
Does Not Contain | Email does not contain the defined keyword. |
Equals | Email exactly matches a defined keyword. |
Begins With | The email begins with the defined keyword. |
Does Not Begin | The email does not begin with the defined keyword. |
Ends With | The email ends with the defined keyword. |
Does Not End With | The email does not end with the defined keyword. |
Does Not Match | The email does not exactly match the defined keyword. |
Â
ACTION | DESCRIPTION |
Discard Message | The system discards or deletes the incoming email with no failure notice. |
Redirect to email | The system forwards or redirects the email to another email address that you specify. |
Fail with message | The system discards or deletes the email and automatically send a failure notice to the sender. |
Stop Processing Rules | The system skips all filter rules. |
Deliver to folder | The system delivers or moves the email to a specified folder. |
Pipe to a program | The system sends the incoming email to a specified program. |
Step 6. Click on Create button to save changes.
Manage Email Filter
Step 1. Log in to the cPanel.
Step 2. Click Email Filters in the Email panel. (Some cPanel accounts may have User-Level Filtering.)
Step 3. Select which email address you would like to add a filter rule. Click Manage Filters link.
Step 4. Click “Create a New Filter†button.
Step 5. Enter the filter name. Select Rules and Actions.
RULES:
OPTION | DESCRIPTION |
From | Sender’s email address. |
Subject | Email’s subject line. |
To | The email address to which the sender sent the email. |
Reply | The email address at which the sender receives replies. |
Body | The email’s content. |
Any Header | Any part of the email’s header. |
Any recipient | Any recipient of the email. |
Has not been previously delivered | Emails that are still on queue. |
is an Error Message | Error messages that are detected by the system. |
List ID | Mailing lists. |
Spam Status | Check SpamAssasin filter. |
Spam Bar | Based on the Spam Bar (+) that is set in the SpamAssasin filter. |
Spam Score | Total number of plus signs (+) in the Spam Bar value, expressed as an integer through SpamAssasin. |
Â
OPTION | DESCRIPTION |
Contains | Contains the keywords that you define. |
Matches Regex | Emails that matches to the regular expression that you define. |
Does Not Contain | Email does not contain the defined keyword. |
Equals | Email exactly matches a defined keyword. |
Begins With | The email begins with the defined keyword. |
Does Not Begin | The email does not begin with the defined keyword. |
Ends With | The email ends with the defined keyword. |
Does Not End With | The email does not end with the defined keyword. |
Does Not Match | The email does not exactly match the defined keyword. |
ACTIONS:
ACTION | DESCRIPTION |
Discard Message | The system discards or deletes the incoming email with no failure notice. |
Redirect to email | The system forwards or redirects the email to another email address that you specify. |
Fail with message | The system discards or deletes the email and automatically send a failure notice to the sender. |
Stop Processing Rules | The system skips all filter rules. |
Deliver to folder | The system delivers or moves the email to a specified folder. |
Pipe to a program | The system sends the incoming email to a specified program. |
Step 6. Click on Create button
Â