<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Bulk updating email allow list in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Bulk-updating-email-allow-list/m-p/160499#M7236</link>
    <description>&lt;P&gt;I just wanted to pass this on in case someone is looking for this type of information down the road. And as always, feedback is appreciated.&lt;/P&gt;&lt;P&gt;Task: move all the allowed domains and IPs in mail security from one appliance to another.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Gather data from the source appliance&lt;OL&gt;&lt;LI&gt;use the following dbedit command to gather the different sections of data that is needed&lt;UL&gt;&lt;LI&gt;print mail_security_policy Global_Mail_Security_Policy&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;Take a backup or snapshot of the target appliance&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Create a txt file on the appliance. I prefer to do this via VI editor and paste in the formatted data.&lt;UL&gt;&lt;LI&gt;Add to the IP Allow&lt;UL&gt;&lt;LI&gt;The following dbedit line adds a empty element to the container&lt;UL&gt;&lt;LI&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The following dbedit line modifies the element in position '0' (or the first element) with the value X.X.X.X, or the IP address you want to add to the allow list. So if you already have elements listed, you will want to start with that value and not 0, or else you will overwrite the value in those positions.&lt;UL&gt;&lt;LI&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:0:ip X.X.X.X&lt;/LI&gt;&lt;LI&gt;Rinse and repeat for each IP address you want to add, increasing the position value each time, example below.&lt;/LI&gt;&lt;LI&gt;&lt;LI-SPOILER&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:0:ip 1.1.1.1&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:1:ip 1.1.1.2&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:2:ip 1.1.1.3&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:3:ip 1.1.1.4&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:4:ip 1.1.1.5&lt;BR /&gt;update&amp;nbsp;mail_security_policy Global_Mail_Security_Policy&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;The&amp;nbsp;update&amp;nbsp;mail_security_policy Global_Mail_Security_Policy command at the end saves the changes.&lt;/LI&gt;&lt;LI&gt;Paste this in a new file on the target appliance&lt;/LI&gt;&lt;LI&gt;run with the following command&lt;UL&gt;&lt;LI&gt;dbedit -local -f filename.txt&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Confirm the changes in one of many ways, Smart Console, GuiDBedit, or print mail_security_policy Global_Mail_Security_Policy&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Add to the Domain Allow&lt;OL&gt;&lt;LI&gt;real similar to IP, with just a few changes&lt;UL&gt;&lt;LI&gt;MAIL_SECURITY_DOMAIN instead of&amp;nbsp;MAIL_SECURITY_IP&lt;/LI&gt;&lt;LI&gt;allow_domain_list instead of allow_domain_ip&lt;/LI&gt;&lt;LI&gt;a sample below&lt;/LI&gt;&lt;LI&gt;&lt;LI-SPOILER&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_domain_list MAIL_SECURITY_DOMAIN&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_domain_list:0:domain &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/44704"&gt;@abc&lt;/a&gt;.com&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_domain_list MAIL_SECURITY_DOMAIN&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_domain_list:1:domain @bcd.com&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_domain_list MAIL_SECURITY_DOMAIN&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_domain_list:2:domain @cde.com&lt;BR /&gt;update&amp;nbsp;mail_security_policy Global_Mail_Security_Policy&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;same steps as above.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't do any block list bulk imports, but it doesn't look like it is that much different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are a few sk's that I gleaned some information from&lt;/P&gt;&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=skI3301" target="_blank" rel="noopener"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=skI3301&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk33403" target="_blank" rel="noopener"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk33403&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This task was very educational with DBedit.&lt;/P&gt;&lt;P&gt;Thanks for reading.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;Edited: to fix a typo&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 11:15:56 GMT</pubDate>
    <dc:creator>Sam_Ponder</dc:creator>
    <dc:date>2022-10-31T11:15:56Z</dc:date>
    <item>
      <title>Bulk updating email allow list</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Bulk-updating-email-allow-list/m-p/160499#M7236</link>
      <description>&lt;P&gt;I just wanted to pass this on in case someone is looking for this type of information down the road. And as always, feedback is appreciated.&lt;/P&gt;&lt;P&gt;Task: move all the allowed domains and IPs in mail security from one appliance to another.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Gather data from the source appliance&lt;OL&gt;&lt;LI&gt;use the following dbedit command to gather the different sections of data that is needed&lt;UL&gt;&lt;LI&gt;print mail_security_policy Global_Mail_Security_Policy&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;Take a backup or snapshot of the target appliance&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Create a txt file on the appliance. I prefer to do this via VI editor and paste in the formatted data.&lt;UL&gt;&lt;LI&gt;Add to the IP Allow&lt;UL&gt;&lt;LI&gt;The following dbedit line adds a empty element to the container&lt;UL&gt;&lt;LI&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The following dbedit line modifies the element in position '0' (or the first element) with the value X.X.X.X, or the IP address you want to add to the allow list. So if you already have elements listed, you will want to start with that value and not 0, or else you will overwrite the value in those positions.&lt;UL&gt;&lt;LI&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:0:ip X.X.X.X&lt;/LI&gt;&lt;LI&gt;Rinse and repeat for each IP address you want to add, increasing the position value each time, example below.&lt;/LI&gt;&lt;LI&gt;&lt;LI-SPOILER&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:0:ip 1.1.1.1&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:1:ip 1.1.1.2&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:2:ip 1.1.1.3&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:3:ip 1.1.1.4&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_ip_list MAIL_SECURITY_IP&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_ip_list:4:ip 1.1.1.5&lt;BR /&gt;update&amp;nbsp;mail_security_policy Global_Mail_Security_Policy&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;The&amp;nbsp;update&amp;nbsp;mail_security_policy Global_Mail_Security_Policy command at the end saves the changes.&lt;/LI&gt;&lt;LI&gt;Paste this in a new file on the target appliance&lt;/LI&gt;&lt;LI&gt;run with the following command&lt;UL&gt;&lt;LI&gt;dbedit -local -f filename.txt&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Confirm the changes in one of many ways, Smart Console, GuiDBedit, or print mail_security_policy Global_Mail_Security_Policy&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Add to the Domain Allow&lt;OL&gt;&lt;LI&gt;real similar to IP, with just a few changes&lt;UL&gt;&lt;LI&gt;MAIL_SECURITY_DOMAIN instead of&amp;nbsp;MAIL_SECURITY_IP&lt;/LI&gt;&lt;LI&gt;allow_domain_list instead of allow_domain_ip&lt;/LI&gt;&lt;LI&gt;a sample below&lt;/LI&gt;&lt;LI&gt;&lt;LI-SPOILER&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_domain_list MAIL_SECURITY_DOMAIN&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_domain_list:0:domain &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/44704"&gt;@abc&lt;/a&gt;.com&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_domain_list MAIL_SECURITY_DOMAIN&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_domain_list:1:domain @bcd.com&lt;BR /&gt;addelement mail_security_policy Global_Mail_Security_Policy allow_domain_list MAIL_SECURITY_DOMAIN&lt;BR /&gt;modify mail_security_policy Global_Mail_Security_Policy allow_domain_list:2:domain @cde.com&lt;BR /&gt;update&amp;nbsp;mail_security_policy Global_Mail_Security_Policy&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;same steps as above.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't do any block list bulk imports, but it doesn't look like it is that much different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are a few sk's that I gleaned some information from&lt;/P&gt;&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=skI3301" target="_blank" rel="noopener"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=skI3301&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk33403" target="_blank" rel="noopener"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk33403&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This task was very educational with DBedit.&lt;/P&gt;&lt;P&gt;Thanks for reading.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;Edited: to fix a typo&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 11:15:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Bulk-updating-email-allow-list/m-p/160499#M7236</guid>
      <dc:creator>Sam_Ponder</dc:creator>
      <dc:date>2022-10-31T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk updating email allow list</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Bulk-updating-email-allow-list/m-p/160709#M7244</link>
      <description>&lt;P&gt;Thanks for sharing.&lt;BR /&gt;What version/JHF did you do this on?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 22:37:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Bulk-updating-email-allow-list/m-p/160709#M7244</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-10-28T22:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk updating email allow list</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Bulk-updating-email-allow-list/m-p/160812#M7245</link>
      <description>&lt;P&gt;R81.10 take 66&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 11:16:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Bulk-updating-email-allow-list/m-p/160812#M7245</guid>
      <dc:creator>Sam_Ponder</dc:creator>
      <dc:date>2022-10-31T11:16:14Z</dc:date>
    </item>
  </channel>
</rss>

