I’ve got a SNAP PAC R1 (R9.4b) running for many months monitoring power remotely and triggering an email notification if power ever dropped at a remote installation. It’s been working well and successfully sent me email when tested and when under operation. Sometime in the not too distant future, it stopped working. I’m trying to figure out why.
Here’s the core logic for the email, as copied from a forum post somewhere, that I don’t recall at the moment.
nResult = SendEmail(
arrstrServer, arrstrRecipients, arrstrBody );
if (nResult == 0) then
SetVariableTrue( mainline_email_OFF_sent );
else
// We had some trouble sending the email, log that to the Message Queue
NumberToString(nResult, strTempString);
strErrorMessage = "Could not send email, error: " + strTempString;
AddMessageToQueue(16, strErrorMessage);
endif
That’s a straight copy from the original source on the forum and worked fine. Now, I’m getting -443 errors reporting whenever it attempts to send email. No connection, right? Well I check the postfix log on that linux server, and here is what I see (IPs sanitized)…
Sep 15 13:37:39 draco postfix/smtpd[28185]: connect from opto22c.xyz[x.y.z.27]
Sep 15 13:37:39 draco postfix/smtpd[28185]: lost connection after CONNECT from opto22c.xyz[x.y.z.27]
Sep 15 13:37:39 draco postfix/smtpd[28185]: disconnect from opto22c.xyz[x.y.z.27]
Sep 15 13:37:54 draco postfix/smtpd[28201]: connect from opto22c.xyz[x.y.z.27]
Sep 15 13:37:54 draco postfix/smtpd[28201]: lost connection after CONNECT from opto22c.xyz[x.y.z.27]
Sep 15 13:37:54 draco postfix/smtpd[28201]: disconnect from opto22c.xyz[x.y.z.27]
Sep 15 13:38:09 draco postfix/smtpd[28104]: connect from opto22c.xyz[x.y.z.27]
Sep 15 13:38:09 draco postfix/smtpd[28104]: lost connection after CONNECT from opto22c.xyz[x.y.z.27]
Sep 15 13:38:09 draco postfix/smtpd[28104]: disconnect from opto22c.xyz[x.y.z.27]
Sep 15 13:38:25 draco postfix/smtpd[28104]: connect from opto22c.xyz[x.y.z.27]
Sep 15 13:38:25 draco postfix/smtpd[28104]: lost connection after CONNECT from opto22c.xyz[x.y.z.27]
Sep 15 13:38:25 draco postfix/smtpd[28104]: disconnect from opto22c.xyz[x.y.z.27]
So, the controller is establishing initial communication with my email server, but is dropping nearly immediately before it send the email, and I don’t have any diagnostic information on what to search for next…
Any ideas?