Page 1 of 1

MessagingException: Could not convert socket to TLS

PostPosted:Sat Dec 25, 2021 12:31 pm
by itwolf
Hi folks,
I search in the last weeks for a solution for the mail configuration. I found helpful solutions, but now I have a problem with jave who has no bugfix.
I get all the MessagingException: Could not convert socket to TLS.
My configuration in the file server.xml is for mail:
Code: Select all
    <Resource name="mail/OpenKM" auth="Container" type="javax.mail.Session"
              mail.from="My address"
              mail.transport.protocol="smtp"
              mail.smtp.starttls.enable="true"
              mail.smtp.auth="true"
              mail.smtp.host="smtp.strato.de"
              mail.smtp.port="25"
              mail.smtp.quitwait="false"
              mail.smtp.ssl.trust="smtp.strato.de"
              mail.smtp.user="My user"
              password="Password"
              mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
              mail.debug="true"/>
My Java version is 1.8.0_292-b10
My email post box is the provider strato.
I think the configuration is good, but I no Idea what can be wrong.
Have anybody an idea.

Thx
ITWolf

Re: MessagingException: Could not convert socket to TLS

PostPosted:Mon Dec 27, 2021 9:02 am
by jllort
I think this is a problem with mail-XXX.jar version in the tomcatXX/lib, which should update the library.
* Stop OpenKM
* Replace mail-1.5.2.jar by https://repo1.maven.org/maven2/com/sun/ ... -1.6.2.jar
* Start OpenKM

Re: MessagingException: Could not convert socket to TLS

PostPosted:Mon Dec 27, 2021 11:13 am
by itwolf
Hi jllort,
thanks for your help.
This fixed this issue.

Thanks