This content has been marked as final. Show 2 replies
Are you setting a new default SSLContext?
By default, JavaMail will use the default SSLSocketFactory, which (I believe) by default will use the default SSLContext.
You can also set the property mail.<protocol>.ssl.protocols to the protocol you want to be used,
which will be passed to the SSLSocket.setEnabledProtocols method.
Yes I am overriding the default SocketFactory.
By setting the property mail.smtp.ssl.protocols I was able to enforce the TLSv1.2.
Thanks a lot for the help.