E-mail Notifier – 'TLS11 is not accepted' error
I use an Office365 SMTP host for e-mail notifications. Checking server logs, these stopped being sent on 7 September. The error I receive is as follows:
Failed to send email notification with subject 'TeamCity email notification test' to address '******', error: javax.mail.MessagingException: Could not convert socket to TLS; nested exception is: javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS11 is not accepted by client preferences [TLS12, SSL20Hello]
(I replaced the real e-mail address with asterisks in the above.)
As suggested in some other posts I've seen, I tried creating a System Environment Variable 'TEAMCITY_SERVER_OPTS' and setting its value to
-Dmail.smtp.ssl.protocols="TLSv1.2"
before restarting the TeamCity server, but this did not appear to have any effect.
Can anyone suggest how I might resolve this problem? Thank you.
Please sign in to leave a comment.
Hello Philparkin,
I would suggest you to check the following:
Please let me know if these suggestions help you to solve this issue.
Thank you very much for responding.
I was able to resolve the problem by rebooting the TC server, after setting the TEAMCITY_SERVER_OPTS environment variable. Without a reboot, the variable was ignored.