{"id":1901,"date":"2024-04-05T20:56:21","date_gmt":"2024-04-05T15:26:21","guid":{"rendered":"https:\/\/chennaiwebhosting.in\/blog\/?p=1901"},"modified":"2024-04-05T21:48:25","modified_gmt":"2024-04-05T16:18:25","slug":"how-to-create-email-filters-in-cpanel","status":"publish","type":"post","link":"https:\/\/chennaiwebhosting.in\/blog\/how-to-create-email-filters-in-cpanel\/","title":{"rendered":"How to create email filters in cPanel"},"content":{"rendered":"<p><strong>Email <\/strong>filtering is an efficient way to manage the incoming and outgoing messages of any given account on your domain.<\/p>\n<article id=\"general\">As a general rule of thumb, it is best to add multiple simple filtering rules, as opposed to one big complex rule. This will allow the Email server to process rules easier and more accurately<\/article>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-create-email-filters-in-cpanel\/#About_e-mail_filters\" >About e-mail filters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-create-email-filters-in-cpanel\/#How_to_set_up_e-mail_filters_in_cPanel\" >How to set up e-mail filters in cPanel<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-create-email-filters-in-cpanel\/#The_following_criteria_are_available\" >The following criteria are available:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/chennaiwebhosting.in\/blog\/how-to-create-email-filters-in-cpanel\/#The_following_comparison_operators_are_available\" >The following comparison operators are available:<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 id=\"About-e-mail-filters\"><span class=\"ez-toc-section\" id=\"About_e-mail_filters\"><\/span>About e-mail filters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can use e-mail filters to block unwanted messages based upon a certain set of conditions. For example, you can specify that messages containing a certain word or phrase are deleted automatically or routed to another e-mail address. The e-mail filters that you create are cumulative: if a message passes through one filter, it can still be blocked by a subsequent filter.<\/p>\n<p>There are two types of e-mail filters that you can create:<\/p>\n<ul>\n<li><strong>E-mail filters<\/strong><strong>:<\/strong> You can configure filters for specific e-mail accounts.<\/li>\n<li><strong>Global e-mail filters:<\/strong> You can configure filters that apply to all e-mail accounts for a domain.<\/li>\n<\/ul>\n<h2 id=\"how-to-set-up-email-filters-in-cpanel\"><span class=\"ez-toc-section\" id=\"How_to_set_up_e-mail_filters_in_cPanel\"><\/span>How to set up e-mail filters in cPanel<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Log in to your <a href=\"https:\/\/chennaiwebhosting.in\" target=\"_blank\" rel=\"nofollow noopener\">cPanel<\/a>.<\/li>\n<li>Scroll down to the <strong>Email<\/strong> section.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-post-mid wp-image-24183\" src=\"https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/Cpanel_email_section_1-600x299.png\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/Cpanel_email_section_1-600x299.png 600w, https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/Cpanel_email_section_1-300x150.png 300w, https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/Cpanel_email_section_1-50x25.png 50w, https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/Cpanel_email_section_1-320x160.png 320w, https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/Cpanel_email_section_1.png 746w\" alt=\"Email Filters in cPanel\" width=\"600\" height=\"299\" \/><\/li>\n<li>Click the E-mail Filters icon.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-post-mid wp-image-24187\" src=\"https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_click_email_filters_-_2-600x279.png\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_click_email_filters_-_2-600x279.png 600w, https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_click_email_filters_-_2-300x139.png 300w, https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_click_email_filters_-_2-50x23.png 50w, https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_click_email_filters_-_2-320x149.png 320w, https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_click_email_filters_-_2.png 796w\" alt=\"Email Filters in cPanel\" width=\"600\" height=\"279\" \/><\/li>\n<li>The <strong>Email Filters<\/strong> screen appears.<\/li>\n<li>In the <strong>Filters by Users<\/strong> section, find the email address you want to filter and click the <strong>Manage Filters<\/strong> link.<\/li>\n<li>\u00a0 In the <strong>Filters by Users<\/strong> section, find the email address you want to filter and click the <strong>Manage Filters<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-post-mid wp-image-24195\" src=\"https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_create_filter_4-600x274.png\" alt=\"Email Filters in cPanel\" width=\"600\" height=\"274\" \/><\/p>\n<ul>\n<li>The <strong>Edit Filters for email address<\/strong> screen appears. Click <strong>Create a New Filter<\/strong>.<\/li>\n<li>The <strong>Create a New Filter<\/strong> screen appears.<\/li>\n<li>Type a unique name for your filter in the <strong>Filter Name<\/strong> field.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-post-mid wp-image-24200\" src=\"https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_email_filter_5-600x184.png\" alt=\"Email Filters in cPanel\" width=\"600\" height=\"184\" \/><\/p>\n<ul>\n<li>Set up the rules you wish to use to filter emails in the <strong>Rules<\/strong> field. Each rule has criteria and an operator describing how to compare them to a message.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"The_following_criteria_are_available\"><\/span>The following criteria are available:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>From \u2014 The message sender\u2019s address.<\/li>\n<li>Subject \u2014 The message\u2019s subject line.<\/li>\n<li>To \u2014 The address to which the sender sent the message.<\/li>\n<li>Reply Address \u2014 The address at which the sender receives replies.<\/li>\n<li>Body \u2014 The message\u2019s content.<\/li>\n<li>Any Header \u2014 Any part of the message\u2019s header.<\/li>\n<li>Any recipient \u2014 Any recipient of the message.<\/li>\n<li>Has not been previously delivered \u2014 The system only examines messages that remain in the queue for delivery.<\/li>\n<li>Is an Error Message \u2014 The system only examines error messages that an auto-response system sends.<\/li>\n<li>List ID \u2014 \u00a0The account\u2019s mailing lists.<\/li>\n<li>Spam Status \u2014 Whether Apache SpamAssassin\u2122 marked the message as spam. The Spam Status line begins with Yes or No.<\/li>\n<li>Spam Bar \u2014 The 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.<\/li>\n<li>Spam Score \u2014 The total number of plus signs (+) in the Spam Bar value, expressed as an integer.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"The_following_comparison_operators_are_available\"><\/span>The following comparison operators are available:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>equals \u2014 The message exactly matches a defined string.<\/li>\n<li>matches regex \u2014 The message matches a regular expression that you define.<\/li>\n<li>contains \u2014 The message contains a string that you define.<\/li>\n<li>does not contain \u2014 The message does not contain the defined string.<\/li>\n<li>begins with \u2014 The message begins with the defined string.<\/li>\n<li>ends with \u2014 The message ends with the defined string.<\/li>\n<li>does not begin \u2014 The message does not begin with the defined string.<\/li>\n<li>does not end with \u2014 The message does not end with the defined string.<\/li>\n<\/ul>\n<p>does not match \u2014 The message does not exactly match the defined string<\/p>\n<p>Type the word or phrase you wish to filter on below the operator and criteria fields.<\/p>\n<ul>\n<li>Select the <strong>Action<\/strong> you wish to happen when an incoming email matches your new rule.<br \/>\nSelect the <strong>Action<\/strong> you wish to happen when an incoming email matches your new rule.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-post-mid wp-image-24208\" src=\"https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_email_filters_6-600x386.png\" alt=\"Email Filters in cPanel\" width=\"600\" height=\"386\" \/><\/p>\n<p>The following actions are available:<\/p>\n<ul>\n<li>Discard Message: Discard the message with no failure notice to the sender.<\/li>\n<li>Redirect to Email: Forward message to a specific email address.<\/li>\n<li>Fail With Message: Discard the message and send a failure notice to the sender.<\/li>\n<li>Stop Processing rules: Proceed and ignore all other filter rules. (Useful when you have more than one filter set up.)<\/li>\n<li>Deliver to Folder: Deliver the message to a specific email folder.<\/li>\n<li>Pipe to a Program: Send the message to a specific program for further processing.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-post-mid wp-image-24212\" src=\"https:\/\/www.hostpapa.com\/knowledgebase\/app\/uploads\/2017\/05\/cpanel_email_filters_7-600x310.png\" alt=\"Email Filters in cPanel\" width=\"600\" height=\"310\" \/><\/p>\n<ul>\n<li>Click <strong>Create<\/strong><\/li>\n<\/ul>\n<ul>\n<li>Your new email filter is created. All new incoming emails for the email address you specified will be filtered according to this new rule.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Email filtering is an efficient way to manage the incoming and outgoing messages of any given account on your domain. As a general rule of thumb, it is best to add multiple simple filtering rules, as opposed to one big complex rule. This will allow the Email server to process rules easier and more accurately [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1913,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1901","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-home"],"_links":{"self":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/1901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=1901"}],"version-history":[{"count":13,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/1901\/revisions"}],"predecessor-version":[{"id":1904,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/1901\/revisions\/1904"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/media\/1913"}],"wp:attachment":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=1901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=1901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=1901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}