{"id":6981,"date":"2018-02-19T17:23:20","date_gmt":"2018-02-19T22:23:20","guid":{"rendered":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/?post_type=ht_kb&#038;p=6981"},"modified":"2018-02-19T17:46:56","modified_gmt":"2018-02-19T22:46:56","slug":"policy-rule","status":"publish","type":"ht_kb","link":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/?ht_kb=policy-rule","title":{"rendered":"Policies"},"content":{"rendered":"<p>The SecureMail Gateway allows you to create Policies that contain one or more Conditions that apply certain evaluation criteria to messages. Whenever a match is found, the Rules associated with it will be used to examine the message matching the policy.<\/p>\n<p>To create a policy you must give it a name using the <strong>Policy Name:<\/strong> field and at least one of the following conditions.<\/p>\n<h3>IP Address of the message source<\/h3>\n<p>Use this condition to set an IP Address or a range of IP Addresses that will be used to match IP Addresses of computers sending message to the Gateway. When you select this condition a new <strong>Source IP Address Condition<\/strong> window will open where you can specify IP Addresses.<\/p>\n<h3>Advanced<\/h3>\n<p>Clicking this button will open a new window that allows you to set a selection of IP Addresses to one of four conditions. The conditions are as follows:<\/p>\n<ul>\n<li><strong>Contains any of the following<\/strong> &#8211; The rule will be applied if the Source IP Address contains one or more of the IP Addresses in the list.<\/li>\n<li><strong>Contains all of the following<\/strong> &#8211; The rule will be applied only if the Source IP Address contains every IP Address in the list.<\/li>\n<li><strong>Does not contain any of the following<\/strong> &#8211; The rule will be applied as long as the Source IP Address does not contain any IP Address in the list.<\/li>\n<li><strong>Does not contain all of the following<\/strong> &#8211; The rule will be applied only if the Source IP Address contains none of the IP Addresses in the list.<\/li>\n<\/ul>\n<h3>From contains people, domains or words<\/h3>\n<p>Searches the email addresses entered into the list on this window, for specific text. Single email addresses or patterns can be entered into this window&#8217;s list by using the following features.<\/p>\n<h3>Add<\/h3>\n<p>Adds a single email address to the list when text is entered into the text box.<\/p>\n<h3>Add Group<\/h3>\n<p>Adds a group of email addresses to the list based off of groups that have been defined in the User Groups section of the Gateway.<\/p>\n<h3>Use:<\/h3>\n<p>Allows you to select between Wildcards, Regular Expressions, or Predefined Regular Expressions. When using the Regular Expressions option, you will have access to the Expression Builder.<\/p>\n<p>Selecting Predefined Regular Expressions allows you to load a list of regular expressions from a file. Note that this file must be loaded from the same directory as the Gateway&#8217;s executable. This file must be called RegExPresets.xml in order for it to be loaded.<\/p>\n<h3>Delete<\/h3>\n<p>Removes an email address from the list.<\/p>\n<h3>Edit<\/h3>\n<p>Allows you to change the name of an email address in the list. Note that when editing a wildcard entry, the edit button will open a new window containing information about the different types of wildcards available.<\/p>\n<h3>Advanced<\/h3>\n<p>Clicking this button will open a new window that allows you to set a selection of Email Addresses to one of four conditions. The conditions are as follows:<\/p>\n<ul>\n<li><strong>Contains any of the following<\/strong> &#8211; The rule will be applied if the From field of the Email Address contains only a single email address in the list.<\/li>\n<li><strong>Contains all of the following<\/strong> &#8211; The rule will be applied only if the From field of the Email Address contains every email address in the list.<\/li>\n<li><strong>Does not contain any of the following<\/strong> &#8211; The rule will be applied as long as the From field of the Email Address does not contain any email address in the list.<\/li>\n<li><strong>Does not contain any of the following<\/strong> &#8211; The rule will be applied only if the From field of the Email Address contains none of the email addresses in the list.<\/li>\n<\/ul>\n<h3>Header field contains specific words<\/h3>\n<p>Searches the Headers of email messages for text matches listed on this page. This condition repeats every feature available in the From contains people, domains or words condition.<\/p>\n<p>The only exception to this is the Import button, which allows you to import a file that is either static or dynamic.<\/p>\n<h3>For all messages<\/h3>\n<p>Applies the conditions set by the Policy to every message.<\/p>\n<h3 class=\"lableproc\">Toggle And \/ Or<\/h3>\n<p>Clicking this button will cause condition matching to be evaluated individually or in combination. The &#8220;Or&#8221; logic will cause the conditions to trigger the policy only if one of the conditions is matched. The &#8220;And&#8221; logic will cause the conditions to trigger the policy only if both conditions are matched.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SecureMail Gateway allows you to create Policies that contain one or more Conditions that apply certain evaluation criteria to messages. Whenever a match is found, the Rules associated with it will be used to examine the message matching the policy. To create a policy you must give it a&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"content-type":"","footnotes":""},"ht-kb-category":[296],"ht-kb-tag":[],"class_list":["post-6981","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-gateway"],"_links":{"self":[{"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/ht-kb\/6981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6981"}],"version-history":[{"count":4,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/ht-kb\/6981\/revisions"}],"predecessor-version":[{"id":6987,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/ht-kb\/6981\/revisions\/6987"}],"wp:attachment":[{"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6981"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=6981"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=6981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}