<?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 Scirpts with Sendmail in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254019#M49791</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Check Point Support,&lt;/P&gt;&lt;P&gt;We are trying to create a script that automatically checks our encryption certificates (IKE Certificates) on our Gaia system and sends an email report detailing their status—expiration date, days left, whether certificates are expired or about to expire.&lt;/P&gt;&lt;P&gt;However, we are experiencing an issue with the sendmail command on Gaia. Sometimes the command returns exit code 1 and no email is sent. Other times, it returns exit code 0 (indicating success), but the email still does not arrive at the recipient.&lt;/P&gt;&lt;P&gt;We have verified the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;SMTP relay is correctly configured.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The sendmail binary has correct permissions.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Manual attempts to send emails using sendmail yield the same inconsistent results.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SMTP port 25 is reachable from the Gaia system.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;No relevant error logs are found beyond the exit codes.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We request assistance to diagnose and resolve why the sendmail command behaves inconsistently and why emails are not reliably sent.&lt;/P&gt;&lt;P&gt;Thank you for your support&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jul 2025 06:57:11 GMT</pubDate>
    <dc:creator>Netanel</dc:creator>
    <dc:date>2025-07-27T06:57:11Z</dc:date>
    <item>
      <title>Scirpts with Sendmail</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254019#M49791</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Check Point Support,&lt;/P&gt;&lt;P&gt;We are trying to create a script that automatically checks our encryption certificates (IKE Certificates) on our Gaia system and sends an email report detailing their status—expiration date, days left, whether certificates are expired or about to expire.&lt;/P&gt;&lt;P&gt;However, we are experiencing an issue with the sendmail command on Gaia. Sometimes the command returns exit code 1 and no email is sent. Other times, it returns exit code 0 (indicating success), but the email still does not arrive at the recipient.&lt;/P&gt;&lt;P&gt;We have verified the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;SMTP relay is correctly configured.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The sendmail binary has correct permissions.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Manual attempts to send emails using sendmail yield the same inconsistent results.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SMTP port 25 is reachable from the Gaia system.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;No relevant error logs are found beyond the exit codes.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We request assistance to diagnose and resolve why the sendmail command behaves inconsistently and why emails are not reliably sent.&lt;/P&gt;&lt;P&gt;Thank you for your support&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 06:57:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254019#M49791</guid>
      <dc:creator>Netanel</dc:creator>
      <dc:date>2025-07-27T06:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scirpts with Sendmail</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254074#M49792</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/127288"&gt;@Netanel&lt;/a&gt;, for the record, this is a community site, not an official support channel. If you need our TAC help, please open a support request via &lt;A href="https://help.checkpoint.com" target="_blank"&gt;https://help.checkpoint.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That said, I hope our community members could give you some advice.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 10:49:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254074#M49792</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2025-07-28T10:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scirpts with Sendmail</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254087#M49794</link>
      <description>&lt;P&gt;Can you send an example of what you created? Please blur out sensitive data. Here is an sk about it.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.checkpoint.com/results/sk/sk25941" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk25941&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 12:33:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254087#M49794</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-07-28T12:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scirpts with Sendmail</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254118#M49801</link>
      <description>&lt;P&gt;1)&amp;nbsp;To verify that the DNS is properly configured, you can use tools like "nslookup" to check if domain names are correctly resolving to their respective IP addresses. For example, running "nslookup mail_destination.com" and&amp;nbsp;nslookup $(hostname -i) should return a valid IP address if the DNS is set up correctly.&lt;BR /&gt;&lt;BR /&gt;2) If you're using a relay (e.g., mail_destination.com), run this manual test using telnet:&lt;BR /&gt;# telnet mail_destination.com 25&lt;BR /&gt;&lt;BR /&gt;3) Check TLS connection:&lt;BR /&gt;# cpopenssl s_client -starttls smtp -connect mail_destination.com:25&lt;/P&gt;
&lt;P&gt;4) Check sendmail with -v verbose logging:&lt;BR /&gt;# (echo "Subject: Test mail"; echo; echo "Body text") | sendmail -v recipient@mail_destination.com&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 15:47:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254118#M49801</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2025-07-28T15:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Scirpts with Sendmail</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254139#M49806</link>
      <description>&lt;P&gt;Make sure you use complete path where sendmail binary file is located.&lt;/P&gt;
&lt;P&gt;use "/usr/sbin/sendmail" instead of just "sendmail" within the script itself.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 20:48:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254139#M49806</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2025-07-28T20:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scirpts with Sendmail</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254158#M49810</link>
      <description>&lt;P&gt;look :&lt;BR /&gt;[Expert@cpmoudle:0]# sendmail -t *.*.*.* -s "Check Point Test" -f "mail_sender" -m /tmp/TESTMAIL/test.txt mail&lt;BR /&gt;0&lt;BR /&gt;[Expert@cpmoudle:0]#&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 06:13:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254158#M49810</guid>
      <dc:creator>Netanel</dc:creator>
      <dc:date>2025-07-29T06:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scirpts with Sendmail</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254159#M49811</link>
      <description>&lt;P&gt;look&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 06:14:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Scirpts-with-Sendmail/m-p/254159#M49811</guid>
      <dc:creator>Netanel</dc:creator>
      <dc:date>2025-07-29T06:14:28Z</dc:date>
    </item>
  </channel>
</rss>

