Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
loading
  1. Home
  2. cPanel control panel
  3. How to configure e-mail filtering in cPanel
Updated on June 22, 2024

cPanel control panel

  • Folder icon closed Folder open iconComplete Guide of log in and log out of cPanel
  • Folder icon closed Folder open iconGetting familiar with the home screen of cPanel
  • Folder icon closed Folder open iconHow to change your cPanel password
  • Folder icon closed Folder open iconHow to change the cPanel language
  • Folder icon closed Folder open iconHow to update contact information and preferences in cPanel
  • Folder icon closed Folder open iconHow to change the cPanel style
  • Folder icon closed Folder open iconHow to change cPanel AutoSSL notifications
  • Folder icon closed Folder open iconcPanel error message: "Your IP address has changed"
  • Folder icon closed Folder open iconThe complete process of User Manager in cPanel
  • Folder icon closed Folder open iconMigrate cPanel accounts from reseller hosting to shared hosting
  • Folder icon closed Folder open iconHow to manage FTP accounts in cPanel
  • Folder icon closed Folder open iconHow to manage backups using cPanel
  • Folder icon closed Folder open iconHow to use Server Rewind to restore files and databases
  • Folder icon closed Folder open iconHow to view disk usage information in cPanel
  • Folder icon closed Folder open iconUsing the cPanel Web Disk Feature
  • Folder icon closed Folder open iconHow to use Server Rewind to restore e-mail
  • Folder icon closed Folder open iconHow to use Git version control in cPanel to install and update a site
  • Folder icon closed Folder open iconHow to reset site content for a managed account
  • Folder icon closed Folder open iconHow to exclude files and directories from cPanel backups
  • Folder icon closed Folder open iconHow to manage e-mail accounts in cPanel
  • Folder icon closed Folder open iconHow to import e-mail accounts and forwarders
  • Folder icon closed Folder open iconHow to change the time zone in webmail
  • Folder icon closed Folder open iconHow to access webmail through cPanel
  • Folder icon closed Folder open iconHow to configure autoresponders in cPanel
  • Folder icon closed Folder open iconHow to import and export webmail contacts
  • Folder icon closed Folder open iconHow to manage mailing lists in cPanel
  • Folder icon closed Folder open iconAccessing webmail clients directly
  • Folder icon closed Folder open iconHow to set up e-mail forwarders
  • Folder icon closed Folder open iconHow to resolve the '550 sender verify failed' error message
  • Folder icon closed Folder open iconExceeding mailbox storage quotas
  • Folder icon closed Folder open iconHow to manage cPanel Mail Exchanger (MX) records
  • Folder icon closed Folder open iconMailing list recipients do not receive list messages
  • Folder icon closed Folder open iconHow to set up DMARC
  • Folder icon closed Folder open iconSynchronizing local clients with webmail calendars and contacts
  • Folder icon closed Folder open iconHow to stop unwanted e-mail using Spam Filters
  • Folder icon closed Folder open iconHow to configure e-mail accounts through webmail
  • Folder icon closed Folder open iconHow to manage e-mail disk usage in cPanel
  • Folder icon closed Folder open iconHow to configure a domain for Google Workspace using cPanel
  • Folder icon closed Folder open iconE-mail messages do not forward to Gmail accounts
  • Folder icon closed Folder open iconHow to filter incoming e-mail messages by IP address
  • Folder icon closed Folder open iconHow to filter unwanted e-mail (spam)
  • Folder icon closed Folder open iconHow to Enable Spam Box
  • Folder icon closed Folder open iconHow to configure e-mail filtering in cPanel
  • Folder icon closed Folder open iconHow to add a Brand Indicators for Message Identification (BIMI) record in cPanel
  • Folder icon closed Folder open iconE-mail messages do not forward to Outlook.com (Hotmail) accounts
  • Folder icon closed Folder open iconHow to manage e-mail deliverability settings in cPanel
  • Folder icon closed Folder open iconDiscontinuation of Barracuda Spam Protection
  • Folder icon closed Folder open iconHow to manage MySQL databases and users in cPanel
  • Folder icon closed Folder open iconHow to manage PostgreSQL databases and users in cPanel
  • Folder icon closed Folder open iconHow to access phpMyAdmin and phpPgAdmin in cPanel
  • Folder icon closed Folder open iconHow to configure remote MySQL access in cPanel
  • Folder icon closed Folder open iconHow to use phpMyAdmin to copy a MySQL database
  • Folder icon closed Folder open iconHow to change the MySQL collation settings in phpMyAdmin
  • Folder icon closed Folder open iconHow to optimize and repair MySQL databases using phpMyAdmin
  • Folder icon closed Folder open iconMySQL passwords do not work after upgrade
  • Folder icon closed Folder open iconHow to delete MySQL database tables using phpMyAdmin
  • Folder icon closed Folder open iconHow to use the cPanel Domains tool
  • Folder icon closed Folder open iconHow to configure redirects in cPanel
  • Folder icon closed Folder open iconAutodiscovery and autoconfiguration DNS records
  • Folder icon closed Folder open iconHow to use the DNS Zone Editor in cPanel
  • Folder icon closed Folder open iconHow to use the cPanel Site Publisher to easily build a website
  • Folder icon closed Folder open iconHow to configure subdomains in cPanel
  • Folder icon closed Folder open iconHow to use log programs in cPanel
  • Folder icon closed Folder open iconHow to view the error log in cPanel
  • Folder icon closed Folder open iconHow to configure and download raw access logs in cPanel
  • Folder icon closed Folder open iconHow to view information about visitors, bandwidth, and resource usage in cPanel
  • Folder icon closed Folder open iconHow to exclude an IP address from AWStats statistics
  • Folder icon closed Folder open iconResource limit information
  • Folder icon closed Folder open iconHow to secure a cPanel-enabled account with a Let's Encrypt SSL certificate
  • Folder icon closed Folder open iconHow to install a third-party SSL certificate with cPanel
  • Folder icon closed Folder open iconHow to install a self-signed SSL certificate in cPanel
  • Folder icon closed Folder open iconHow to configure SSH keys using cPanel
  • Folder icon closed Folder open iconHow to use the IP Blocker in cPanel
  • Folder icon closed Folder open iconHow to configure directory privacy in cPanel
  • Folder icon closed Folder open iconHow to configure leech protection in cPanel
  • Folder icon closed Folder open iconHow to configure hotlink protection in cPanel
  • Folder icon closed Folder open iconHow to manage GnuPG keys in cPanel
  • Folder icon closed Folder open iconHow to secure a cPanel-enabled account with a cPanel SSL certificate
  • Folder icon closed Folder open iconHow to set up AutoSSL on your domain
  • Folder icon closed Folder open iconHow to set up two-factor authentication for cPanel
  • Folder icon closed Folder open iconHow to use Imunify360
  • Folder icon closed Folder open iconHow to manage the ModSecurity module in cPanel
  • Folder icon closed Folder open iconHow to set up cron jobs in cPanel
  • Folder icon closed Folder open iconHow to configure custom Apache handlers in cPanel
  • Folder icon closed Folder open iconHow to create custom error pages in cPanel
  • Folder icon closed Folder open iconHow to configure custom MIME types in cPanel
  • Folder icon closed Folder open iconHow to configure directory indexes in cPanel
  • Folder icon closed Folder open iconHow to install PHP PEAR packages using cPanel
  • Folder icon closed Folder open iconHow to install Perl modules using cPanel
  • Folder icon closed Folder open iconHow to change PHP versions and settings using PHP Selector
  • Folder icon closed Folder open iconHow to use the Python Selector in cPanel
  • Folder icon closed Folder open iconHow to change PHP versions and settings using MultiPHP
  • Folder icon closed Folder open iconHow to use the cPanel Optimize Website feature
  • Folder icon closed Folder open iconHow to create a Node.js application with cPanel using the Node.js Selector
  • Folder icon closed Folder open iconHow to migrate an existing Node.js application to Node.js Selector
  • Folder icon closed Folder open iconHow to use the Application Manager to deploy applications with Passenger
  • Folder icon closed Folder open iconHow to install WordPress using the cPanel WordPress Toolkit
  • Folder icon closed Folder open iconHow to manage WordPress using the cPanel WordPress Toolkit
  • Folder icon closed Folder open iconHow to manage plugins using the cPanel WordPress Toolkit
  • Folder icon closed Folder open iconHow to manage themes using the cPanel WordPress Toolkit
  • Folder icon closed Folder open iconHow to manage multiple sites using the cPanel WordPress Toolkit
  • Folder icon closed Folder open iconHow to stage WordPress with the cPanel WordPress Toolkit
  • Folder icon closed Folder open iconHow to manage WordPress from the command line with the cPanel WordPress Toolkit
  • Folder icon closed Folder open iconHow to configure Web Disk accounts
  • Folder icon closed Folder open iconHow to access Web Disks on Linux and BSD operating systems
  • Folder icon closed Folder open iconHow to access Web Disks on Microsoft operating systems
  • Folder icon closed Folder open iconHow to access Web Disks on Apple operating systems
  • Folder icon closed Folder open iconGetting started with cPanel
    • dfdf
  • Folder icon closed Folder open iconUsing cPanel File Features
    • Using the cPanel File Manager
    • How to restore files, email, and databases using JetBackup
  • Folder icon closed Folder open iconUsing cPanel Mail Features
    • How to forward incoming e-mail messages to a script file
  • Folder icon closed Folder open iconUsing Database Features in cPanel
    • Remote access for MySQL TCP/IP connections on cPanel
  • Folder icon closed Folder open iconUsing the Domain Features in cPanel
  • Folder icon closed Folder open iconUsing the Logging Features in cPanel
  • Folder icon closed Folder open iconSecurity Features in cPanel
    • How to use Imunify Email
  • Folder icon closed Folder open iconAdvanced Features in cPanel
    • How to use Virus Scanner in cPanel
  • Folder icon closed Folder open iconcPanel Software
    • Node.js application error message: "Cannot GET" URL
    • How to migrate an existing application from Node.js Selector to a manual installation
    • How to migrate a Next.js application to the Node.js Selector in cPanel
  • Folder icon closed Folder open iconWordPress Toolkit
    • WordPress Toolkit for resellers
  • Folder icon closed Folder open iconGranting limited cPanel account access to a developer
  • Folder icon closed Folder open iconUsing the Manage Team feature in cPanel

How to configure e-mail filtering in cPanel

Estimated reading: 6 minutes 139 views

This article describes how to set up e-mail filters in cPanel.Table of Contents

  • About e-mail filters
  • Creating an e-mail filter
  • Testing an email filter
  • Editing or deleting an email filter

About e-mail filters

Email filters are a useful tool for filtering unsolicited messages according to specific criteria. For instance, you can choose that emails with a specific word or phrase in them be immediately deleted or forwarded to a different email address. Your created email filters are cumulative, meaning that even when a message gets past one filter, it may still be blocked by another.

There are two types of e-mail filters that you can create:

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

Creating an e-mail filter

To create an e-mail filter, follow these steps:

  1. Log in to cPanefl.If you do not know how to log in to your cPanel account, please see this article.
  2. Open the filtering tool you want:
    • If you are using the Jupiter theme, on the Tools page, in the Email section, do one of the following:
      • To create a filter for a specific e-mail account, click Email Filters:cPanel - Email - Email Filters iconLocate the account for which you want to add a filter, and then click Manage Filters.
      • To create a global e-mail filter, click Global Email Filters:
        cPanel - Email - Global Email Filters icon
    • If you are using the Paper Lantern theme, in the EMAIL section of the cPanel home page, do one of the following:
      • To create a filter for a specific e-mail account, click Email Filters:cPanel - Email - Email Filters iconLocate the account for which you want to add a filter, and then click Manage Filters.
      • To create a global e-mail filter, click Global Email Filters:
        cPanel - Email - Global Email Filters icon
  3. Click Create a New Filter.
  4. 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.
  5. 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.
    • In the second list box, select contains.
    • Type buy in the text box.
    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.
  6. Click the + icon to add another rule.
    You can add as many rules as you want. For example, the sample rule in step 5 blocks all messages that contain the word buy in the subject. This is a very broad rule that will likely block some legitimate messages. You can add another rule that specifies the word now in the subject. Select and in the list box. The filter will now match any message that contains the words buy and now in the subject line.
  7. Under Actions, select the action for the filter to perform if the rule conditions are matched. You can specify multiple actions. To do so, click the + icon to add another action.
  8. Click Create. cPanel creates the filter.

Testing an email filter

After you have created a filter, you should test it to make sure that it filters what you intended.

To test an email filter, follow these steps:

  1. Log in to cPanel.If you do not know how to log in to your cPanel account, please see this article.
  2. Open the filtering tool you want:
    • If you are using the Jupiter theme, on the Tools page, in the Email section, do one of the following:
      • To test a filter for a specific e-mail account, click Email Filters:cPanel - Email - Email Filters iconLocate the account for which you want to test a filter, and then click Manage Filters.
      • To test a global e-mail filter, click Global Email Filters:
        cPanel - Email - Global Email Filters icon
    • If you are using the Paper Lantern theme, in the EMAIL section of the cPanel home page, do one of the following:
      • To test a filter for a specific e-mail account, click Email Filters:cPanel - Email - Email Filters iconLocate the account for which you want to test a filter, and then click Manage Filters.
      • To test a global e-mail filter, click Global Email Filters:
        cPanel - Email - Global Email Filters icon
  3. In the Filter Test text box, type a test e-mail message.
  4. Click Test Filter. The Filter Trace Results page shows if any rule conditions were met, and whether or not any actions will be taken.

Editing or deleting an email filter

After you have created a filter, you can edit it or delete it.

To edit or delete an email filter, follow these steps:

  1. Log in to cPanel.If you do not know how to log in to your cPanel account, please see this article.
  2. Open the filtering tool you want:
    • If you are using the Jupiter theme, on the Tools page, in the Email section, do one of the following:
      • To edit or delete a filter for a specific e-mail account, click Email Filters:cPanel - Email - Email Filters iconLocate the account for which you want to edit or delete a filter, and then click Manage Filters.
      • To edit or delete a global e-mail filter, click Global Email Filters:
        cPanel - Email - Global Email Filters icon
    • If you are using the Paper Lantern theme, in the EMAIL section of the cPanel home page, do one of the following:
      • To edit or delete a filter for a specific e-mail account, click Email Filters:cPanel - Email - Email Filters iconLocate the account for which you want to edit or delete a filter, and then click Manage Filters.
      • To edit or delete a global e-mail filter, click Global Email Filters:
        cPanel - Email - Global Email Filters icon
  3. Under Current Filters, locate the filter you want to edit or delete.
    • To edit the filter, click Edit. The Edit a Filter page is almost identical to the page that you use to create a filter.
    • To delete the filter, click Delete, and then click Delete Filter to confirm the deletion.

Still stuck? How can we help?

How can we help?

Was this page helpful? Yes No

Share this Doc

How to configure e-mail filtering in cPanel

Or copy link

Clipboard Icon
CONTENTS
  • About e-mail filters
  • Creating an e-mail filter
  • Testing an email filter
  • Editing or deleting an email filter
Leaf Illustration

© 2023 All Rights Reserved by Hostvento