Dear Check Point Support,
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.
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.
We have verified the following:
SMTP relay is correctly configured.
The sendmail binary has correct permissions.
Manual attempts to send emails using sendmail yield the same inconsistent results.
SMTP port 25 is reachable from the Gaia system.
No relevant error logs are found beyond the exit codes.
We request assistance to diagnose and resolve why the sendmail command behaves inconsistently and why emails are not reliably sent.
Thank you for your support