TLS 1.3 I see connection reset message, other TLS versions working fine

I am seeing Could not connect to SMTP host: 127.0.0.1, port: 465;
nested exception is:
javax.net.ssl.SSLException: Connection reset
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1706)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525)

exception while I am trying to send mail with TLS1.3 enabled. All other versions working fine

Hi,

you will need to provide some more info here:

  • Who or what throws this error (Client?)
    You are using port 465, which is SSL / TLS encrypted SMTP. So how is your SMTP receiver configured for Port 465?
    Certificates in place? Correctly configured?
    Have you tried verifying your mail-server encryption with ssl-tools.net for instance?