Page 1 of 1

OpenKM 6.3.8 Mail configuration Could not convert socket to TLS

PostPosted:Thu Aug 08, 2019 6:34 am
by Sentry
Hi all

I config the mail account info in server.xml but test error .
Code: Select all
<Resource name="mail/OpenKM" auth="Container" type="javax.mail.Session"
    mail.transport.protocol="smtp"
    mail.smtp.auth="true"
    mail.smtp.host="host ip"
    mail.smtp.port="587"
    mail.smtp.user="username"
    password=" "
    mail.smtp.from=" "
    mail.smtp.quitwait="false"  
    mail.smtp.starttls.enable="true"
    mail.smtp.ssl.checkserveridentity="false"
    mail.smtp.ssl.trust=" "       
    mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
    mail.debug="true"/>

How to fix it ?

Thanks in advance.

exception logs :
Code: Select all
ERROR c.o.servlet.frontend.MassiveServlet - MessagingException: Could not convert socket to TLS
java.io.IOException: MessagingException: Could not convert socket to TLS
at com.openkm.module.db.DbNotificationModule.notify(DbNotificationModule.java:204) ~[classes/:6.3.8]
at com.openkm.servlet.frontend.MassiveServlet.notify(MassiveServlet.java:688) ~[classes/:6.3.8]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_211]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_211]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_211]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_211]
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:587) [gwt-servlet-2.8.2.jar:na]
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:333) [gwt-servlet-2.8.2.jar:na]
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:303) [gwt-servlet-2.8.2.jar:na]
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373) [gwt-servlet-2.8.2.jar:na]
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) [gwt-servlet-2.8.2.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) [servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [servlet-api.jar:na]

Re: OpenKM 6.3.8 Mail configuration Could not convert socket to TLS

PostPosted:Thu Aug 08, 2019 6:40 am
by Sentry
I found the reply from stackoverflow
https://stackoverflow.com/questions/127 ... tion-could

Bucause Server is not trusted. However I hade config the mail.smtp.ssl.trust in server.xml , it's seem not working,Mail still not working

Re: OpenKM 6.3.8 Mail configuration Could not convert socket to TLS

PostPosted:Sat Aug 10, 2019 8:58 am
by jllort
Are you sure about the port 465? Did you checked the configuration with standard email client?