OpenKM 6.3.8 Mail configuration Could not convert socket to TLS

OpenKM tiene muchas características interesantes, pero es necesario un proceso de configuración para mostrar todo su potencial.
Forum rules
Por favor, antes de preguntar algo consulta el wiki de documentación o utiliza la función de búsqueda del foro. Recuerda que no tenemos una bola de cristal ni poderes mentales, o sea que que para informar sobre un error es necesario que nos indiques tanto la versión de OpenKM que usas como la del navegador y sistema operativo. Para más información consulta Cómo informar de fallos de forma efectiva.
Post Reply
Sentry
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Aug 04, 2019 2:45 am

OpenKM 6.3.8 Mail configuration Could not convert socket to TLS

Post by Sentry » Tue Aug 06, 2019 9:09 am

Hi all

I config the mail info in server.xml but test error my config info as show below :

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.required="true"
   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 config it? Thanks in advance.

exception logs :

Code: Select all

ERROR c.o.servlet.frontend.MassiveServlet - MessagingException: [b]Could not convert socket to TLS[/b]
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]

jllort
Moderator
Moderator
Posts: 10929
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Thu Aug 08, 2019 6:20 pm

I have never played with these parameters ( https://docs.openkm.com/kcenter/view/ok ... -mail.html ):

Code: Select all

  mail.smtp.starttls.required="true"
   mail.smtp.starttls.enable="true"
   mail.smtp.ssl.checkserveridentity="false"
    mail.smtp.ssl.trust=""   
Does your email server need a trusted certificate for stablishing de connection?

Sentry
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Aug 04, 2019 2:45 am

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

Post by Sentry » Mon Aug 12, 2019 8:36 am

Thanks for you replay.

yes, My email server need a trusted certificate for stablishing de connection.
it's working fine now if I remove the config item

Code: Select all

   mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
 
Last edited by Sentry on Mon Aug 12, 2019 8:46 am, edited 1 time in total.

Sentry
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sun Aug 04, 2019 2:45 am

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

Post by Sentry » Mon Aug 12, 2019 8:44 am

I meeting other one issue now

I found the same isuue :(viewtopic.php?f=4&t=12294)

But I want to know, How to configuration the mail server ?

or Whether OpenKM support config all user use the configuration mail account to sent mail , need not change the from field ?

Thanks in advance.

jllort
Moderator
Moderator
Posts: 10929
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Thu Aug 15, 2019 9:33 am

The other post is not talking about the same error "com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender" is not talking about "MessagingException: Could not convert socket to TLS" what is a totally different issue.

I think has not relation with from field, really I think is not able to connect to the server in the way you are configuring.

Post Reply