Previously working email sent, now error -443

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?

Hi Kev,
Welcome to the OptoForums! Any updates on this? I’m hoping you’ve already contacted support@opto22.com w/these details?
FYI, we’re currently working on an overhaul to the SendEmail-related docs, so I’m hoping you and others will share any/all troubleshooting, etc. info with us…
Thanks!
-OptoMary

Well, I got it working. For some reason, it id this error despite restarting hardware multiple times. I finally got it working by pointing the IP in the logic to a different server, and then pointing it back again at the original server, and voila. It magically started sending email as appropriate. Don’t know how it was losing connection so quickly, but it’s g2g now.

I have had problems with Gmail. If I send to many emails it gives me an error

Hey jglueck, what qualified as “too many” for you?

We’ve had issues here using Gmail as a service to send out alarm notifications for customers. Strangely enough, we’ve had the email stop working from some locations, and continue working at others, even with a seemingly similar volume of emails being produced. The errors usually start cropping up as handshaking or 202.

I worked with an Opto tech support member, but we were unable to truly resolve the issue any further than “we’ve had issues with Gmail.”