{"id":913,"date":"2018-05-03T12:31:48","date_gmt":"2018-05-03T12:31:48","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=article&#038;p=913"},"modified":"2020-03-25T14:42:27","modified_gmt":"2020-03-25T14:42:27","slug":"configure-email-filters-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/configure-email-filters-cpanel\/","title":{"rendered":"How to configure Email filters in cPanel"},"content":{"rendered":"<p style=\"text-align: justify;\"><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.<\/p>\n<\/article>\n<article id=\"emailfilters\">\n<h3 id=\"how-to-configure-email-filters-in-cpanel\">How to configure Email filters in cPanel<strong><br \/>\n<\/strong><\/h3>\n<p>First and foremost, <a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-login-cpanel-whm\/\">Log in<\/a> to your cPanel account.<\/p>\n<p>You can configure Email filters by choosing between the following options:<\/p>\n<ul>\n<li><strong>Global Email Filters <\/strong>(or account level filtering)<\/li>\n<li><strong>Email Filters<\/strong> (or user level filtering)<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-914 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/02\/Email-Filter-Section.jpg\" alt=\"Email Filter Selection\" width=\"955\" height=\"423\" \/><\/p>\n<h3 id=\"global-email-filters\">\u00a0Global Email Filters<\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"text-align: justify;\">This interface allows you to configure Email filters which will apply unilaterally to <strong>all<\/strong> user accounts (for example all user accounts created under one domain).<\/li>\n<li style=\"text-align: justify;\">To create a global filter, first click on <strong>Global Email Filters<\/strong> and then on <strong>Create a New Filter<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-934 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/02\/Global-Email-Filters.jpg\" alt=\"Create new global email filter\" width=\"934\" height=\"370\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"text-align: justify;\">You will be redirected to the window bellow, where you can edit the actual filter by giving it a <strong>Name<\/strong> (1), selecting the <strong>Rules<\/strong> (2), choosing the <strong>Criteria<\/strong> (3), entering a string <strong>Value<\/strong> (4) and consequently telling the filter what <strong>Action<\/strong> to take (5).<\/li>\n<li style=\"text-align: justify;\">Notice how you can add one or more <strong>Rules <\/strong>and <strong>Actions <\/strong>on your filter (6*) ? This is optional.<\/li>\n<li style=\"text-align: justify;\">When you\u2019re done setting up the rules, simply click on <strong>Create <\/strong>(7).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-928 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/02\/Create-new-global-filter.jpg\" alt=\"configure global email filter\" width=\"1295\" height=\"605\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"text-align: justify;\">After you\u2019ve created the new filter rule, a confirmation message will appear on the screen.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-926 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/02\/Create-GEF-confirmation.jpg\" alt=\"gobal email filter confirmation\" width=\"1157\" height=\"205\" \/><\/p>\n<ul>\n<li style=\"text-align: justify;\">Navigating back, you will see the <strong>Filter list <\/strong>where you can test the filters you just made. Simply click on <strong>Test Filter <\/strong>and follow your inbox.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-927 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/02\/Create-GEF-Test-filter.jpg\" alt=\"Test email filters\" width=\"1296\" height=\"545\" \/><\/p>\n<h3 id=\"email-filters\">Email Filters<\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"text-align: justify;\">Email filters allow you to add and manage filters for each email account.<\/li>\n<li style=\"text-align: justify;\">Setting up Email filters for individual users is similar with the global Email filters.<\/li>\n<li style=\"text-align: justify;\">First start by clicking on <strong>Email Filters <\/strong>from the <strong>Email <\/strong>section of your cPanel dashboard. Secondly, go to <strong>Manage Filters <\/strong>for the desired user account.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-939 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/02\/manage-filters.jpg\" alt=\"manage email filters\" width=\"1297\" height=\"480\" \/><\/p>\n<ul>\n<li style=\"text-align: justify;\">Next, click on <strong>Create a New Filter <\/strong>and follow the same steps as explained in the previous section.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Note:<\/strong> in addition, when you manage filter lists, you can change their order by dragging them around, edit or delete them.<\/p>\n<\/article>\n<article id=\"filterrules\">\n<h3 id=\"setting-up-the-filter\"><strong>Setting up the filter<br \/>\n<\/strong><\/h3>\n<p>In this section we will explain how to choose and configure the filter <strong>rules,<\/strong> <strong>criteria <\/strong>and<strong> actions. <\/strong><\/p>\n<p>If you do this correctly, the filter will perform as you want it to. Otherwise, it will most likely do nothing.<\/p>\n<h3 id=\"rules\">Rules<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-931 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/02\/Email-Filter-Rules.jpg\" alt=\"configure email filter Rules\" width=\"953\" height=\"535\" \/><\/p>\n<ul>\n<li style=\"text-align: justify;\"><strong>From: <\/strong>specifies the sender\u2019s Email address.<\/li>\n<li style=\"text-align: justify;\"><strong>Subject: <\/strong>specifies the subject line from any incoming Email message.<\/li>\n<li style=\"text-align: justify;\"><strong>To: <\/strong>specifies the recipient\u2019s Email address .<\/li>\n<li style=\"text-align: justify;\"><strong>Reply: <\/strong>specifies the Email address at the sender receives replies .<\/li>\n<li style=\"text-align: justify;\"><strong>Body: <\/strong>specifies the entire content of the message.<\/li>\n<li style=\"text-align: justify;\"><strong>Any Header: <\/strong>specifies any part of the message header.<\/li>\n<li style=\"text-align: justify;\"><strong>Any Recipient: <\/strong>specifies any recipient of the message.<\/li>\n<li style=\"text-align: justify;\"><strong>Has Not Been Previously Delivered: <\/strong>the server will only analyze messages that have remained in the delivery cue.<\/li>\n<li style=\"text-align: justify;\"><strong>Is an Error Message: <\/strong>the server will only analyze error-messages sent by auto-reply systems.<\/li>\n<li style=\"text-align: justify;\"><strong>List ID: <\/strong>will contain the mailing lists of the account.<\/li>\n<li style=\"text-align: justify;\"><strong>Spam Status: <\/strong>whether the Apache Spam Assassin has marked the message as Spam. This option demands a string value of \u201cYES\u201d or \u201cNO\u201d in the value box.<\/li>\n<li style=\"text-align: justify;\"><strong>Spam Bar: <\/strong>this is similar to a risk indicator. The more plus (+) sings the Spam Assassin attributes to a message, the more likely it is that it will be marked as Spam.<\/li>\n<li style=\"text-align: justify;\"><strong>Spam Score: <\/strong>indicates you the total number of (+) signs in the Spam Bar, expressed as a number.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Note: <\/strong>in order for the Spam Status, Spam Bar and Spam Score to be available, you must make sure that the Apache Spam Assassin is enabled.<\/p>\n<h3 id=\"criteria\">Criteria<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-930 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/02\/Email-Filter-Criteria.jpg\" alt=\"configure email filter criteria\" width=\"805\" height=\"525\" \/><\/p>\n<ul>\n<li style=\"text-align: justify;\"><strong>Contains: <\/strong>specifies a user defined string to search for<\/li>\n<li style=\"text-align: justify;\"><strong>Matches regex: <\/strong>matches a user defined regular expression<\/li>\n<li style=\"text-align: justify;\"><strong>Does not contain: <\/strong>the message does not contain a user defined string<\/li>\n<li style=\"text-align: justify;\"><strong>Equals: <\/strong>the message is exactly the same as the entered string<\/li>\n<li style=\"text-align: justify;\"><strong>Begins with: <\/strong>the message begins with the defined string<\/li>\n<li style=\"text-align: justify;\"><strong>Ends with: <\/strong>the message ends with the defined string<\/li>\n<li style=\"text-align: justify;\"><strong>Does not begin: <\/strong>the message does not begin with the defined string<\/li>\n<li style=\"text-align: justify;\"><strong>Does not end with:<\/strong> the message does not end with the defined string<\/li>\n<li style=\"text-align: justify;\"><strong>Does not match: <\/strong>the message does not match the defined string<\/li>\n<li style=\"text-align: justify;\"><strong>Is above (numbers only): <\/strong>message value is above a given integer<\/li>\n<li style=\"text-align: justify;\"><strong>Is not above (numbers only): <\/strong>message value is not above a given integer<\/li>\n<li style=\"text-align: justify;\"><strong>Is bellow (numbers only):<\/strong> message value is below a given integer<\/li>\n<li style=\"text-align: justify;\"><strong>Is not bellow (numbers only): <\/strong>message value is not bellow a given integer<\/li>\n<\/ul>\n<h3 id=\"actions\">Actions<\/h3>\n<p style=\"text-align: justify;\">After the system matches the predefined rules and criteria, it must decide what to do with that specific email. This is where the following actions come in to play.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-929 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/02\/Email-Filter-Actions.jpg\" alt=\"choose email filter action\" width=\"813\" height=\"213\" \/><\/p>\n<ul>\n<li style=\"text-align: justify;\"><strong>Discard Message: <\/strong>it will automatically discard (drop) the message without failure notice.<\/li>\n<li style=\"text-align: justify;\"><strong>Redirect to Email: <\/strong>it will redirect (forward)\u00a0the message to another user defined Email account.<\/li>\n<li style=\"text-align: justify;\"><strong>Fail With Message: <\/strong>the system will automatically discard the message and return a specific failure notice to the sender.<\/li>\n<li style=\"text-align: justify;\"><strong>Stop Processing Rules: <\/strong>it will stop processing any further rules.<\/li>\n<li style=\"text-align: justify;\"><strong>Deliver to Folder: <\/strong>it will move the message to a specified folder.<\/li>\n<li style=\"text-align: justify;\"><strong>Pipe to a Program: <\/strong>it will send the message to a particular software or program.<\/li>\n<\/ul>\n<\/article>\n<p style=\"text-align: justify;\">In conclusion, the advantage of setting up Email filters directly from cPanel is that you can preset user defined specifications remotely. This will consequently enable them to remain activated regardless of the location or device the user is accessing his or hers\u2019 Emails from.<\/p>\n<p style=\"text-align: justify;\">Make sure you test them out and set up more complex rules combinations to see how they are processed.<\/p>\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&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[177],"ht-kb-tag":[],"class_list":["post-913","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-spam-protection"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=913"}],"version-history":[{"count":3,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/913\/revisions"}],"predecessor-version":[{"id":2197,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/913\/revisions\/2197"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=913"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=913"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}