Email Notification SMTP Issues

I'm getting this error when I try to execute a test on my Alarm Notification

Ignition

Any Insight on this issue would be a great help.

Thanks

Completely unreadable.

Post the error as text, using the "preformatted text" button in the forum comment editor.

[hostname=smtp.office365.com,port=587] Error sending message to user 'usr-prov:default:/usr:maint'. Remaining retries=0

javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587

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.sendMessage(EmailNotificationProfile.java:819)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.buildAndMaybeSendMessage(EmailNotificationProfile.java:807)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:721)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile.lambda$sendNotification$0(EmailNotificationProfile.java:535)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message

at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(Unknown Source)

at java.base/sun.security.ssl.SSLSocketInputRecord.decode(Unknown Source)

at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)

at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)

at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)

at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at java.base/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)

... 13 common frames omitted
Caused by: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message

I would guess that Microsoft has tightened their security in the new year. What version of Ignition is this?

8.1.25

I think this is usually an incorrect combination of the port and SSL / StartTLS settings.

Try both ports 465 and 587 with all combinations of enabling SSL and StartTLS.

FWIW, we're using Office365 web email with this combination just fine:
outlook_setup

1 Like