Ignition 7.6 and smtp.office365.com

Recently Microsoft changed the way emails are send using TLS1.1, I upgrade java and it work for about a week and now its having issues again. Does any one know of a way to fix it?

12:04:40 PM EmailNotificationProfile[Email_SMS] [hostname=smtp.office365.com,port=587] Error sending message to user ‘usr-prov:default:/usr:XXX’.

javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587;
nested exception is:
javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2211)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
at javax.mail.Service.connect(Service.java:388)
at javax.mail.Service.connect(Service.java:246)
at javax.mail.Service.connect(Service.java:195)
at javax.mail.Transport.send0(Transport.java:254)
at javax.mail.Transport.send(Transport.java:124)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:343)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$3.run(EmailNotificationProfile.java:196)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
at sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(Unknown Source)
at sun.security.ssl.SSLSocketInputRecord.decode(Unknown Source)
at sun.security.ssl.SSLTransport.decode(Unknown Source)
at sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:626)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:400)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2175)
… 11 more

Unfortunately in the other cases I’ve seen this here and in support the ultimate resolution has required upgrading to 7.9.18 or 8.x which have special options on the email notification profile to force the use of TLS 1.2.

1 Like

Can confirm. 7.9.18 works with Office365, earlier does not due to lack of TLS1.2 support.

Well my solution for right now until the customer upgrades was to setup the Windows Server that is hosting Ignition to be an SMTP relay server.
Ignition Email Notification → Local SMTP Server → Office365 SMTP

I’m in a situation where I need to do just that, but have no experience setting up a Local SMTP Server. I’ve installed hmail on the local machine with Ignition install. Do you know what settings I need to put in Ignition and hmail to make it a relay server for smtp.office365.com? I’ve tried several settings with no luck.