Hello Maxim:

I followed what you suggested the last time I asked about this (13th july) but 
for some reason I can’t get it to work.  Considering my procedures and the 
Error I get what can I be doing wrong?
- Is there another way to send the link to my attendees without using the email 
feature? (i.e. create an invitation email with a password, create the link, and 
copy these into an ordinary email).
- I tried to do this pasting the link into the browser of my laptop but it does 
not open the access to OM (example link created: 
http://localhost:5080/openmeetings/hash?invitation=6c608020-c92d-42bc-98d9-763cfb0a1bb3&language=1).
 My laptop runs on Windows XP and no one is supporting XP anymore.  Could this 
be the cause or am I doing this wrong?


set up gmail smtp
https://support.google.com/a/answer/176600?hl=en
I chose: Gmail SMTP server

>From here I went to: https://support.google.com/a/answer/6260879?hl=en
because I had to make sure I was enabling “Less secure apps” correctly
According to this page, to be able to enable “Less secure apps” I had to access 
Google Admin Console, to be able to do this I had to create a GSuite account 
with a non-gmail email from my website, verify my domain as usual, and 
apparently I’m going to be invoiced if I want to keep on using this.  After 
going through this adventure crossing rivers, through swamps, under and over 
the ocean, I finally installed OM with the following data:

smtp_server:    smtp.gmail.com
smtp_port:      465
mail.smtp.starttls.enable: 1

I have tried to get emails sent from the room (Public Video And Whiteboard 
Room) using the following email information:

system_email_addr          1) the email registered as the user email when 
installing OM (my website email), It is the same email used as 
                                   Admin of Gsuite; 2) another gmail: 
myem...@gmail.com
email_username    myemail@gmail or mygsuiteem...@mywebsite.com or my OM 
username (not an email)

email_userpass    password used to enter myem...@gmail.com or my password used 
to enter mygsuiteem...@mywebsite.com or 
                                  my OM password, respectively

Each time I changed the configuration in the frontend I logged out and 
restarted Red5 to make sure changes were effective, then went into the room and 
sent an email invitation (with password activated and having created the hash 
link)

myGSuiteemail:  if I had an email called john...@mywebsite.com managed through 
my website, now I have an email with that same name managed through Google’s 
Gsuite but although it looks like gmail.com it sends emails as if it were 
john123 from my website.


What I have found in my OM log is the following (the same in all cases):

EBUG 07-30 20:11:03.061 o.a.o.c.m.MailHandler:236 [taskExecutor-1] - Message 
sending in progress
DEBUG 07-30 20:11:03.062 o.a.o.c.m.MailHandler:237 [taskExecutor-1] -   To: 
"email of person I am inviting"
DEBUG 07-30 20:11:03.062 o.a.o.c.m.MailHandler:238 [taskExecutor-1] -   
Subject: "invitation sent"
DEBUG 07-30 20:11:03.062 o.a.o.c.m.MailHandler:199 [taskExecutor-1] - 
getMimeMessage
DEBUG 07-30 20:11:03.062 o.a.o.c.m.MailHandler:162 [taskExecutor-1] - 
getBasicMimeMessage
DEBUG 07-30 20:11:03.136 o.a.o.c.m.MailHandler:205 [taskExecutor-1] - 
setReplyTo "Email registered for “user” when I installed OM" 
                                                                                
                    (It doesn’t change when I change emails in the frontend 
Configuration)
DEBUG 07-30 20:11:10.139 o.a.o.c.m.MailHandler:277 
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3] - 
sendMails enter ...
DEBUG 07-30 20:11:10.146 o.a.o.c.m.MailHandler:279 
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3] - 
Number of emails in init queue 0
DEBUG 07-30 20:11:10.147 o.a.o.c.m.MailHandler:284 
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3] - ... 
sendMails done.
DEBUG 07-30 20:11:11.048 o.a.o.w.c.MainPanel:117 [http-nio-0.0.0.0-5080-exec-7] 
- Sending WebSocket PING
DEBUG 07-30 20:11:27.974 o.a.o.s.q.s.ReminderJob:44 
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-4] - 
ReminderJob.remindMeetings
ERROR 07-30 20:11:33.499 o.a.o.c.m.MailHandler:246 [taskExecutor-1] - Error 
while sending message
javax.mail.MessagingException: Exception reading response
        at 
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2369)
        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2096)
        at 
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
        at javax.mail.Service.connect(Service.java:388)
        at javax.mail.Service.connect(Service.java:246)
        at javax.mail.Service.connect(Service.java:195)
        at javax.mail.Transport.send0(Transport.java:254)
        at javax.mail.Transport.send(Transport.java:124)
        at 
org.apache.openmeetings.core.mail.MailHandler$2.run(MailHandler.java:242)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:92)
        at 
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2349)
        ... 11 common frames omitted



Thanks,

Richard 
 
 
--------------------------------------------
On Thu, 13/7/17, Maxim Solodovnik <solomax...@gmail.com> wrote:

 Subject: Re: help configuration smtp server
 To: "Openmeetings user-list" <user@openmeetings.apache.org>, "Richard Pérez" 
<traductorchi...@yahoo.co.uk>
 Date: Thursday, 13 July, 2017, 22:03
 
 To set up gmail smtp you should get params
 from here:
 https://support.google.com/a/answer/176600?hl=en
 I have used "Gmail SMTP server"
 
 In OM "mail.smtp.starttls.enable"
 should be "1"
 
 In case of "unable to find valid
 certification path to requested
 target" you most probably need to
 update JRE (to get latest CAs)
 If not try to import certificate chain
 in catruststore of JVM (as was
 discussed earlier)
 
 
 On Fri, Jul 14, 2017 at 1:41 AM,
 Richard Pérez
 <traductorchi...@yahoo.co.uk>
 wrote:
 > Sorry about that, I thought that
 highlighting the exceptions would help you go through the
 whole code.
 >
 > Here are the different tests
 performed in summary with their corresponding exceptions:
 > Apparently tuning Avast Off or ON
 and Chrome’s “Less Secure apps” Off or On has no
 effect, except with Chrome where using port 465 does produce
 a difference.
 > I detail all the tests because
 they deliver different error messages and that might help
 understand which are the issues.
 >
 > All other elements are the same:
 > smtp_server:   
 smtp.gmail.com
 > system_email_addr:   
   xxx...@gmail.com
 > email_username: xxx...@gmail.com
 > email_userpass: xxxxxxxxxxx
 >
 >
 > Test 11 uses :
 > smtp_port:      587
 (if using TLS)
 > mail.smtp.starttls.enable: 1
 >
 > Result :
 >
 > ERROR 07-12 21:31:39.118
 o.a.o.c.m.MailHandler:246 [taskExecutor-2] - Error while
 sending message
 >
 javax.mail.AuthenticationFailedException: 534-5.7.14 
<https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbuk
 > 534-5.7.14
 biKGX1C24PZXzMJ1zvevytTTcsPOfvDDXjoyhKOaK5EM1A0-5baK8oapoHcabVjq2fR3ky
 > 534-5.7.14
 l6SwsxkeN2tUEPYora1XnMqeTuwNTrzIaKawY0VIlYdIGyPjCsXzsYOCNPV_KKQrre9czt
 > 534-5.7.14
 bWYiFOswZKsZKjGwYJaBgvYWvECJqK7cI7mXERAST4OeFF9dCeRXkv2HvGYoTXcjGwArDZ
 > 534-5.7.14
 --Wn-PMKjwUKY_Sq2clqbE1yTCNWI> Please log in via your web
 browser and
 > 534-5.7.14 then try again.
 > 534-5.7.14  Learn more at
 > 534 5.7.14  https://support.google.com/mail/answer/78754
 w72sm3109941qka.63 - gsmtp
 >
 > ERROR 07-12 21:33:40.364
 o.a.o.c.m.MailHandler:246 [taskExecutor-4] - Error while
 sending message
 > javax.mail.MessagingException:
 Could not convert socket to TLS
 >         at
 com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2064)
 >         at
 com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:724)
 >
 > …………………. and more
 >
 > Caused by:
 javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: PKIX path
 building failed:
 sun.security.provider.certpath.SunCertPathBuilderException:
 unable to find valid certification path to requested target
 >         at
 sun.security.ssl.Alerts.getSSLException(Unknown Source)
 >         at
 sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
 >         at
 sun.security.ssl.Handshaker.fatalSE(Unknown Source)
 >
 > …………………. and more
 >
 > Caused by:
 sun.security.validator.ValidatorException: PKIX path
 building failed:
 sun.security.provider.certpath.SunCertPathBuilderException:
 unable to find valid certification path to requested target
 >         at
 sun.security.validator.PKIXValidator.doBuild(Unknown
 Source)
 >         at
 sun.security.validator.PKIXValidator.engineValidate(Unknown
 Source)
 >         at
 sun.security.validator.Validator.validate(Unknown Source)
 >
 > …………………. and more
 >
 > Caused by:
 sun.security.provider.certpath.SunCertPathBuilderException:
 unable to find valid certification path to requested target
 >         at
 sun.security.provider.certpath.SunCertPathBuilder.build(Unknown
 Source)
 >         at
 sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown
 Source)
 > …………………. and more
 >
 >
 > Test 9 and 10 used:
 > smtp_port:      80
 (if using no SSL)
 > mail.smtp.starttls.enable: 0
 >
 > Result:
 >
 > ERROR 07-12 21:10:56.643
 MailHandler.java 265506 246
 org.apache.openmeetings.core.mail.MailHandler
 [taskExecutor-2] - Error while sending message
 >
 com.sun.mail.util.MailConnectException: Couldn't connect to
 host, port: smtp.gmail.com, 80; timeout 30000
 >         at
 com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2118)
 >         at
 com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
 >         at
 javax.mail.Service.connect(Service.java:388)
 >
 > …………………. and more
 >
 > Caused by:
 java.net.ConnectException: Connection timed out: connect
 >         at
 java.net.DualStackPlainSocketImpl.waitForConnect(Native
 Method)
 >         at
 java.net.DualStackPlainSocketImpl.socketConnect(Unknown
 Source)
 >
 > …………………. and more
 >
 >
 > Test 8 used:
 > smtp_port:      465
 (if using SSL)
 > mail.smtp.starttls.enable: 1
 >
 > Result:
 >
 > ERROR 07-12 21:02:11.131
 o.a.o.c.m.MailHandler:246 [taskExecutor-2] - Error while
 sending message
 > javax.mail.MessagingException:
 Could not connect to SMTP host: smtp.gmail.com, port: 465,
 response: -1
 >         at
 com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2106)
 >         at
 com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
 >         at
 javax.mail.Service.connect(Service.java:388)
 >
 > …………………. and more
 >
 >
 > ERROR 07-12 21:02:26.315
 o.a.o.c.r.RecordingService:307
 [http-nio-0.0.0.0-5080-exec-6] - [stopRecordingShow]
 > java.lang.NullPointerException:
 null
 >         at
 java.util.concurrent.ConcurrentHashMap.get(Unknown Source)
 >         at
 
org.apache.openmeetings.core.remote.RecordingService.stopRecordingShow(RecordingService.java:264)
 > …………………. and more
 >
 >
 > Test 3, 4, 5 and 6 used:
 > smtp_port:      443
 (if using SSL)
 > mail.smtp.starttls.enable: 1
 >
 > ERROR 07-12 20:35:55.354
 o.a.o.c.m.MailHandler:246 [taskExecutor-1] - Error while
 sending message
 >
 com.sun.mail.util.MailConnectException: Couldn't connect to
 host, port: smtp.gmail.com, 443; timeout 30000
 >         at
 com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2118)
 >         at
 com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
 >
 > …………………. and more
 >
 > Caused by:
 java.net.ConnectException: Connection timed out: connect
 >         at
 java.net.DualStackPlainSocketImpl.waitForConnect(Native
 Method)
 >         at
 java.net.DualStackPlainSocketImpl.socketConnect(Unknown
 Source)
 >         at
 java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
 >
 > …………………. and more
 >
 >
 > ERROR 07-12 20:36:40.617
 o.a.o.c.r.RecordingService:307
 [http-nio-0.0.0.0-5080-exec-8] - [stopRecordingShow]
 > java.lang.NullPointerException:
 null
 >         at
 java.util.concurrent.ConcurrentHashMap.get(Unknown Source)
 >         at
 
org.apache.openmeetings.core.remote.RecordingService.stopRecordingShow(RecordingService.java:264)
 > …………………. and more
 >
 >
 > Test 2 and 7 used:
 > smtp_port:      465
 (if using SSL)
 > mail.smtp.starttls.enable: 1
 > Google less secure= ON
 >
 > Results:
 >
 > ERROR 07-12 19:55:17.157
 o.a.o.c.m.MailHandler:246 [taskExecutor-1] - Error while
 sending message
 > javax.mail.MessagingException:
 Exception reading response
 >         at
 com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2369)
 >         at
 com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2096)
 >         at
 com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
 > …………………. and more
 >
 > Caused by:
 java.net.SocketTimeoutException: Read timed out
 >         at
 java.net.SocketInputStream.socketRead0(Native Method)
 >         at
 java.net.SocketInputStream.socketRead(Unknown Source)
 >
 > …………………. and more
 >
 > ERROR 07-12 19:57:36.099
 o.a.o.c.r.RecordingService:307
 [http-nio-0.0.0.0-5080-exec-3] - [stopRecordingShow]
 > java.lang.NullPointerException:
 null
 >         at
 java.util.concurrent.ConcurrentHashMap.get(Unknown Source)
 >         at
 
org.apache.openmeetings.core.remote.RecordingService.stopRecordingShow(RecordingService.java:264)
 > …………………. and more
 >
 >
 > Test 1 used:
 > smtp_port:      465
 (if using SSL)
 > mail.smtp.starttls.enable: 1
 > Google less secure= OFF
 >
 > Results:
 >
 > Gives same errors as Tests 2 and 7
 plus the following:
 >
 >
 > Caused by: java.io.IOException: Se
 ha anulado una conexión establecida por el software en su
 equipo host.
 >         at
 sun.nio.ch.SocketDispatcher.write0(Native Method)
 >
 > …………………. and more
 >
 >
 > Comment:
 > Why this message is in Spanish, I
 don’t know.  It would translate as: “A connection
 established by the software in your host equipment has been
 cancelled”
 >
 >
 > Richard Pérez-Mongard
 >
 >
 > .
 >
 >
 --------------------------------------------
 > On Thu, 13/7/17, Maxim Solodovnik
 <solomax...@gmail.com>
 wrote:
 >
 >  Subject: Re: help
 configuration smtp server
 >  To: "Richard Pérez" <traductorchi...@yahoo.co.uk>
 >  Cc: "Openmeetings user-list"
 <user@openmeetings.apache.org>
 >  Date: Thursday, 13 July,
 2017, 11:55
 >
 >  To be
 >  fair, I don't have enough
 time to read through 209
 >  pages.Could you please send
 email, find error in the
 >  log and paste it as text
 into email?
 >  Thanks in advance
 >  On Thu, Jul 13, 2017 at
 >  10:50 PM, Richard Pérez
 <traductorchi...@yahoo.co.uk>
 >  wrote:
 >  Here I
 >  send attached as PDFs
 Openmeetings Log for July 12th and the
 >  tests I performed on that
 date.
 >
 >  In each test I registered
 the exact moment I pressed the
 >  SEND email button. 
 With that I expected to find the error
 >  easily in the Log (maybe
 it's a mistake, but what I have
 >  been doing is copy pasting
 the commands in the Red5 command
 >  window, but I suppose it's
 the same info but restricted
 >  by a certain amount of
 time).  Sorry, but in some tests I
 >  forgot to register the
 precise time, but I have highlighted
 >  most, if not all, exceptions
 in the PDF.
 >
 >
 >
 >
 >
 >  Richard Pérez-Mongard
 >
 >
 >
 >
 >
 >
 >
 >
 >
 > 
 ------------------------------ --------------
 >
 >  On Thu, 13/7/17, Maxim
 Solodovnik <solomax...@gmail.com>
 >  wrote:
 >
 >
 >
 >   Subject: Re: help
 configuration smtp server
 >
 >   To: "Openmeetings
 user-list" <user@openmeetings.apache.org>
 >  , "Richard Pérez" <traductorchi...@yahoo.co.uk>
 >
 >   Date: Thursday, 13 July,
 2017, 10:52
 >
 >
 >
 >   Please
 >
 >   provide related part of
 openmeetings.log?What the exact
 >
 >   error are you receiving
 from java.mail?
 >
 >   On Thu, Jul 13, 2017 at
 >
 >   9:37 PM, Richard Pérez
 <traductorchi...@yahoo.co.uk>
 >
 >   wrote:
 >
 >   Hello:
 >
 >
 >
 >
 >
 >
 >
 >   I was "listening" in to
 this one because
 >  I'm
 >
 >   suffering the same
 inability to send emails,
 >
 >
 >
 >   I get the same error
 messages.
 >
 >
 >
 >
 >
 >
 >
 >   I have tried with yahoo,
 Gmail, Hotmail and my
 >  website's
 >
 >   email, with my Antivirus
 disconnected or not, with
 >
 >   Chrome's "less secure"
 active or not,
 >  with
 >
 >   465, 443, 587, 80, enabled,
 not enabled, and nothing
 >  works
 >
 >   with sending an invitation
 while in a room (haven't
 >
 >   found yet any other way of
 sending an invitation).
 >
 >
 >
 >
 >
 >
 >
 >   Could you please tell me
 what do you mean by:
 >
 >
 >
 >
 >
 >
 >
 >   "Open OS and software
 firewall SMTP ports.
 >
 >
 >
 >   Set hardware firewall
 policies NAT allow from your server
 >  to
 >
 >   WAN."
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >   I looked for the Firewall
 settings:
 >
 >
 >
 >   Firewall Settings > Apps
 allowed
 >
 >
 >
 >   These are the ones not
 allowed that I feel might be
 >
 >   related
 >
 >
 >
 >   ----------------------
 >
 >
 >
 >   Captura SNMP   (SNMP
 capture?)
 >
 >
 >
 >   Esta característica
 permite que este equipo pueda
 >  recibir
 >
 >   el tráfico del Servicio de
 captura de SNMP.
 >
 >
 >
 >
 >
 >
 >
 >   Enrutamiento y acceso
 remoto  (Routing and remote
 >
 >   access?)
 >
 >
 >
 >   Esta característica se usa
 para permitir las conexiones
 >  VPN
 >
 >   y RAS entrantes.
 >
 >
 >
 >
 >
 >
 >
 >   Protocolo de túnel de
 sockets seguros (Secure Socket
 >  Tunnel
 >
 >   Protocol)
 >
 >
 >
 >   Esta característica se usa
 para permitir las conexiones
 >  VPN
 >
 >   entrantes que usan el
 protocolo de túnel de sockets
 >  seguros
 >
 >   (SSTP). (Usa HTTPS)
 >
 >
 >
 >
 >
 >
 >
 >   Servicio iSCSI  
 (ISCSI service?)
 >
 >
 >
 >   Esta característica se usa
 para conectarse a servidores
 >  y
 >
 >   dispositivos de destino
 iSCSI.
 >
 >
 >
 >  
 ------------------------------ ---------
 >
 >
 >
 >
 >
 >
 >
 >   I have also seen the
 advanced Firewall Settings
 >  ("Entry
 >
 >   rules" and "Exit rules", I
 have a
 >  Spanish
 >
 >   version of Windows 10), but
 I don’t know what/if I
 >  should
 >
 >   change.
 >
 >
 >
 >
 >
 >
 >
 >   I wanted to use Gmail as my
 option for sending
 >  emails.
 >
 >   Excuse my ignorance, but
 should I get my own CA
 >  certificate
 >
 >   or do I get it from
 Gmail.  Do I have to do something
 >  to
 >
 >   earn it?
 >
 >
 >
 >   My website is HTTPS thanks
 to a SSL certificate delivered
 >  by
 >
 >   CPanel (the free
 version).  If I used my website's
 >
 >   email as sender and system
 email (it would be the same
 >  email
 >
 >   I signed up to OpenMeetings
 with) would this certificate
 >  be
 >
 >   equivalent to the CA
 certificate you mention?
 >
 >
 >
 >
 >
 >
 >
 >   I have been reading about
 some Certificate installing
 >
 >   procedures but they seem
 outdated (jre 1.6)
 >
 >
 >
 >  
 http://s-n-ushakov.blogspot.
 >
 >   com/2013/11/yet-another-
 >
 >  
 installcert-for-java-now.html
 >
 >
 >
 >   https://javaee.github.io/
 >
 >   javamail/InstallCert
 >
 >
 >
 >
 >
 >
 >
 >   I haven't found a way to
 download or export the
 >  CPanel
 >
 >   certificate (if I can) but
 have some details:
 >
 >
 >
 >   Certificate ID:, Domains:,
 Key Size:, Expiration:, and
 >  the
 >
 >   Issuer:     
 cPanel, Inc., however I have noticed
 >  that
 >
 >   CPanel is not among the
 trusted CAs (I understand it's
 >  a
 >
 >   "Comodo" certificate.
 >
 >
 >
 >
 >
 >
 >
 >   If I insist on Gmail can I
 use the CPanel one or would
 >  I
 >
 >   have to buy a CA
 certificate? or would you suggest getting
 >  a
 >
 >   free one if buying is not
 possible?
 >
 >
 >
 >
 >
 >
 >
 >   Thanks,
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >   Richard Pérez-Mongard
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >  
 ------------------------------ --------------
 >
 >
 >
 >   On Thu, 13/7/17, 
 <maxime.gue...@bssp.fr>
 >
 >   wrote:
 >
 >
 >
 >
 >
 >
 >
 >    Subject: Re: help
 configuration smtp server
 >
 >
 >
 >    To: user@openmeetings.apache.org
 >
 >
 >
 >    Date: Thursday, 13
 July, 2017, 9:07
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >    On 13.07.2017 02:58,
 Maxim Solodovnik wrote:
 >
 >
 >
 >
 >
 >
 >
 >    Hello,
 >
 >
 >
 >
 >
 >
 >
 >    This error "unable
 >
 >
 >
 >    to find valid
 certification path to requested
 >
 >
 >
 >    target" usually means
 certificate chin is not
 >
 >
 >
 >    recognized to be
 secure
 >
 >
 >
 >    I believe you need to
 import your CA certificate will
 >
 >
 >
 >    all intermediate
 certificates to JRE
 >
 >
 >
 >   
 (jre/lib/security/cacerts)
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >    On Thu, Jul 13, 2017
 >
 >
 >
 >    at 1:43 AM, Coscend@OM <om.insig...@coscend.com>
 >
 >
 >
 >    wrote:
 >
 >
 >
 >
 >
 >
 >
 >    Hello
 >
 >
 >
 >    Maxime,
 >
 >
 >
 >
 >
 >
 >
 >     In the spirit of
 >
 >
 >
 >    assisting you, here
 are a few vectors to resolve your
 >
 >
 >
 >     issue:
 >
 >
 >
 >     Issue: 
 "unable
 >
 >
 >
 >    to find valid
 certification path to requested target
 >
 >
 >
 >         
    at com.sun.mail.smtp.
 >
 >
 >
 >   
 SMTPTransport.startTLS"
 >
 >
 >
 >
 >
 >
 >
 >     Suggestions:
 >
 >
 >
 >     1.  OM
 >
 >
 >
 >    configuration issue:
 >
 >
 >
 >     Configure Admin
 ->
 >
 >
 >
 >    Configuration
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >    Smtp_server: 
 this is the smtp server to send
 >
 >   messages.
 >
 >
 >
 >     Smtp_port: 
 this is the smtp server port
 >
 >
 >
 >    normally 25 or 80, if
 using no SSL,
 >
 >
 >
 >
 >
 >
 >
 >    otherwise 443 if
 using SSL encrypted e-mail.
 >
 >
 >
 >    
 System_email_addr:  all sent e-mails by the
 >
 >
 >
 >    system including
 invitations
 >
 >
 >
 >     will have this
 >
 >
 >
 >    address:
 >
 >
 >
 >     Email_username
 (System
 >
 >
 >
 >    authentication email
 username):  your e-mail's
 >
 >
 >
 >     username:  ....
 or on how your third party
 >
 >
 >
 >    e-mail client is
 configured.
 >
 >
 >
 >
 >
 >
 >
 >    Email_userpass: 
 the password of your e-mail's
 >
 >
 >
 >    username
 >
 >
 >
 >    
 Mail.smtp.starttls.enable:  0 (if
 >
 >
 >
 >    above 25 or 80) or 1
 (if above is 443)
 >
 >
 >
 >
 >
 >
 >
 >    Enable TLS 1=true,
 0=false
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >     For example, in
 GMail,
 >
 >
 >
 >
 >
 >
 >
 >     Smtp_server: 
 smtp.gmail.com
 >
 >
 >
 >     Smtp_port: 
 Port 465 (SSL required)
 >
 >
 >
 >     Port 587 (TLS
 required)
 >
 >
 >
 >
 >
 >
 >
 >     2. Additional: 
 Firewall
 >
 >
 >
 >
 >
 >
 >
 >    Open OS and software
 firewall SMTP ports.
 >
 >
 >
 >
 >
 >
 >
 >    Set hardware firewall
 policies NAT allow from your
 >  server
 >
 >   to
 >
 >
 >
 >    WAN.
 >
 >
 >
 >
 >
 >
 >
 >     Thank you.
 >
 >
 >
 >
 >
 >
 >
 >     Sincerely,
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >     Hemant K. Sabat
 >
 >
 >
 >
 >
 >
 >
 >     Coscend
 Communications Solutions
 >
 >
 >
 >     www.Coscend.com
 >
 >
 >
 >    
 ------------------------------
 >
 >
 >
 >   
 ----------------------------- - ------
 >
 >
 >
 >
 >
 >
 >
 >    Real-time,
 Interactive Video Collaboration,
 >
 >   Tele-healthcare,
 >
 >
 >
 >    Tele-education,
 >
 >
 >
 >     Telepresence
 Services, on
 >
 >
 >
 >    the fly...
 >
 >
 >
 >    
 ------------------------------
 >
 >
 >
 >   
 ----------------------------- - ------
 >
 >
 >
 >
 >
 >
 >
 >    CONFIDENTIALITY
 NOTICE: See 'Confidentiality
 >  Notice
 >
 >
 >
 >    Regarding E-mail
 >
 >
 >
 >     Messages from
 Coscend
 >
 >
 >
 >    Communications
 Solutions' posted at:
 >
 >
 >
 >     http://www.Coscend.com/Terms_
 >
 >
 >
 >    and_Conditions.html
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >    -----Original
 Message-----
 >
 >
 >
 >     From: maxime.gue...@bssp.fr
 >
 >
 >
 >    [mailto:maxime.gue...@bssp.fr
 >  ]
 >
 >
 >
 >     Sent: Wednesday,
 July 12, 2017 12:29 PM
 >
 >
 >
 >     To: user@openmeetings.apache.org
 >
 >
 >
 >     Subject: help
 configuration smtp server
 >
 >
 >
 >
 >
 >
 >
 >     Hello,
 >
 >
 >
 >
 >
 >
 >
 >     We are installing a
 version of openmeetings
 >
 >
 >
 >    (last stable) on a
 stretch
 >
 >
 >
 >     Debian.
 >
 >
 >
 >    Everything seems to
 work fine but we configured a
 >  smtp
 >
 >
 >
 >    server with
 >
 >
 >
 >     starttls port 587
 from a
 >
 >
 >
 >    functional mail
 server and we have a mail sending
 >
 >
 >
 >     problem after
 creating a conference in the
 >
 >
 >
 >    calendar.
 >
 >
 >
 >     The "email
 Management"
 >
 >
 >
 >    shows multiple errors
 as follows :
 >
 >
 >
 >
 >
 >
 >
 >     Last Error
 >
 >
 >
 >
 >
 >
 >
 >    javax.mail.
 MessagingException: Could not convert
 >  socket
 >
 >   to
 >
 >
 >
 >    TLS;
 >
 >
 >
 >        nested
 exception is:
 >
 >
 >
 >         
    javax.net.ssl.
 >
 >
 >
 >   
 SSLHandshakeException:
 >
 >
 >
 >
 >
 >
 >
 >   
 sun.security.validator. ValidatorException: PKIX path
 >
 >
 >
 >    building failed:
 >
 >
 >
 >    
 sun.security.provider.
 >
 >
 >
 >    certpath.
 SunCertPathBuilderException: unable to find
 >
 >
 >
 >     valid certification
 path to requested
 >
 >
 >
 >    target
 >
 >
 >
 >         
    at com.sun.mail.smtp.
 >
 >
 >
 >   
 SMTPTransport.startTLS( SMTPTransport.java:2064)
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >    com.sun.mail.smtp.
 SMTPTransport.protocolConnect(
 >
 >
 >
 >   
 SMTPTransport.java:724)
 >
 >
 >
 >         
    at
 >
 >
 >
 >   
 javax.mail.Service.connect( Service.java:388)
 >
 >
 >
 >         
    at javax.mail.Service.connect(
 >
 >
 >
 >    Service.java:246)
 >
 >
 >
 >         
    at
 >
 >
 >
 >   
 javax.mail.Service.connect( Service.java:195)
 >
 >
 >
 >         
    at javax.mail.Transport.send0(
 >
 >
 >
 >    Transport.java:254)
 >
 >
 >
 >         
    at
 >
 >
 >
 >   
 javax.mail.Transport.send( Transport.java:124)
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >   
 org.apache.openmeetings.core. mail.MailHandler$2.run(
 >
 >
 >
 >   
 MailHandler.java:242)
 >
 >
 >
 >         
    at
 >
 >
 >
 >    
 java.util.concurrent.
 >
 >
 >
 >   
 ThreadPoolExecutor.runWorker(
 >
 >   ThreadPoolExecutor.java:11
 >
 >
 >
 >     42)
 >
 >
 >
 >         
    at
 >
 >
 >
 >    
 java.util.concurrent.
 >
 >
 >
 >   
 ThreadPoolExecutor$Worker. run(
 >
 >   ThreadPoolExecutor.java:6
 >
 >
 >
 >     17)
 >
 >
 >
 >         
    at
 >
 >
 >
 >   
 java.lang.Thread.run(Thread. java:748)
 >
 >
 >
 >
 >
 >
 >
 >    Caused by:
 javax.net.ssl. SSLHandshakeException:
 >
 >
 >
 >    
 sun.security.validator. ValidatorException:
 >
 >
 >
 >    PKIX path building
 failed:
 >
 >
 >
 >
 >
 >
 >
 >   
 sun.security.provider. certpath.
 >
 >
 >
 >   
 SunCertPathBuilderException: unable to find
 >
 >
 >
 >
 >
 >
 >
 >    valid certification
 path to requested target
 >
 >
 >
 >         
    at sun.security.ssl.Alerts.
 >
 >
 >
 >   
 getSSLException(Alerts.java: 192)
 >
 >
 >
 >
 >
 >
 >
 >      at
 sun.security.ssl. SSLSocketImpl.fatal(
 >
 >
 >
 >   
 SSLSocketImpl.java:1949)
 >
 >
 >
 >         
    at
 >
 >
 >
 >   
 sun.security.ssl.Handshaker.
 >
 >  
 fatalSE(Handshaker.java:302)
 >
 >
 >
 >         
    at sun.security.ssl.Handshaker.
 >
 >
 >
 >   
 fatalSE(Handshaker.java:296)
 >
 >
 >
 >
 >
 >
 >
 >    at
 >
 >
 >
 >     sun.security.ssl.
 ClientHandshaker.
 >
 >
 >
 >    serverCertificate(
 ClientHandshaker.java:15
 >
 >
 >
 >
 >
 >
 >
 >    14)
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >    sun.security.ssl.
 ClientHandshaker. processMessage(
 >
 >
 >
 >   
 ClientHandshaker.java:216)
 >
 >
 >
 >         
    at
 >
 >
 >
 >   
 sun.security.ssl.Handshaker.
 >
 >  
 processLoop(Handshaker.java:
 >
 >
 >
 >    1026)
 >
 >
 >
 >         
    at
 >
 >
 >
 >   
 sun.security.ssl.Handshaker.
 >  process_record(Handshaker.
 >
 >
 >
 >    java:961)
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >    sun.security.ssl.
 SSLSocketImpl.readRecord(
 >
 >
 >
 >   
 SSLSocketImpl.java:1062)
 >
 >
 >
 >         
    at
 >
 >
 >
 >     sun.security.ssl.
 SSLSocketImpl.
 >
 >
 >
 >   
 performInitialHandshake( SSLSocketImpl.java:13
 >
 >
 >
 >     75)
 >
 >
 >
 >         
    at
 >
 >
 >
 >     sun.security.ssl.
 >
 >
 >
 >   
 SSLSocketImpl.startHandshake(
 >  SSLSocketImpl.java:1403)
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >    sun.security.ssl.
 SSLSocketImpl.startHandshake(
 >
 >
 >
 >   
 SSLSocketImpl.java:1387)
 >
 >
 >
 >         
    at
 >
 >
 >
 >     com.sun.mail.util.
 SocketFetcher.
 >
 >
 >
 >    configureSSLSocket(
 SocketFetcher.java:598)
 >
 >
 >
 >
 >
 >
 >
 >         
   at com.sun.mail.util.
 >
 >   SocketFetcher.startTLS(
 >
 >
 >
 >   
 SocketFetcher.java:525)
 >
 >
 >
 >         
    at
 >
 >
 >
 >    com.sun.mail.smtp.
 SMTPTransport.startTLS(
 >
 >
 >
 >   
 SMTPTransport.java:2059)
 >
 >
 >
 >         
    ... 10
 >
 >
 >
 >    more
 >
 >
 >
 >     Caused by:
 sun.security.validator.
 >
 >
 >
 >    ValidatorException:
 PKIX path building
 >
 >
 >
 >
 >
 >
 >
 >    failed:
 sun.security.provider. certpath.
 >
 >
 >
 >   
 SunCertPathBuilderException:
 >
 >
 >
 >     unable to find
 >
 >
 >
 >    valid certification
 path to requested target
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >   
 sun.security.validator. PKIXValidator.doBuild(
 >
 >
 >
 >   
 PKIXValidator.java:387)
 >
 >
 >
 >         
    at
 >
 >
 >
 >    
 sun.security.validator.
 >
 >
 >
 >   
 PKIXValidator.engineValidate( PKIXValidator.java:292)
 >
 >
 >
 >         
    at sun.security.validator.
 >
 >
 >
 >   
 Validator.validate(Validator. java:260)
 >
 >
 >
 >
 >
 >
 >
 >         
 at
 >
 >
 >
 >     sun.security.ssl.
 >
 >
 >
 >    X509TrustManagerImpl.
 validate(
 >
 >
 >
 >   
 X509TrustManagerImpl.java:324
 >
 >
 >
 >     )
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >    sun.security.ssl.
 X509TrustManagerImpl. checkTrusted(
 >
 >
 >
 >   
 X509TrustManagerImpl.java
 >
 >
 >
 >     :229)
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >    sun.security.ssl.
 X509TrustManagerImpl.
 >
 >   checkServerTrusted(
 >
 >
 >
 >    X509TrustManagerImp
 >
 >
 >
 >     l.java:124)
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >    sun.security.ssl.
 ClientHandshaker.
 >  serverCertificate(
 >
 >
 >
 >   
 ClientHandshaker.java:14
 >
 >
 >
 >     96)
 >
 >
 >
 >         
    ... 20 more
 >
 >
 >
 >
 >
 >
 >
 >    Caused by:
 sun.security.provider. certpath.
 >
 >
 >
 >   
 SunCertPathBuilderException:
 >
 >
 >
 >     unable to find
 >
 >
 >
 >    valid certification
 path to requested target
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >   
 sun.security.provider. certpath.SunCertPathBuilder.
 >
 >
 >
 >   
 build(SunCertPathBuilder.j
 >
 >
 >
 >     ava:141)
 >
 >
 >
 >         
    at
 >
 >
 >
 >
 >
 >
 >
 >   
 sun.security.provider. certpath.SunCertPathBuilder.
 >
 >
 >
 >   
 engineBuild(SunCertPathBui
 >
 >
 >
 >
 >
 >
 >
 >    lder.java:126)
 >
 >
 >
 >         
    at
 >
 >
 >
 >     java.security.cert.
 CertPathBuilder.build(
 >
 >
 >
 >   
 CertPathBuilder.java:280)
 >
 >
 >
 >         
    at
 >
 >
 >
 >    
 sun.security.validator. PKIXValidator.doBuild(
 >
 >
 >
 >   
 PKIXValidator.java:382)
 >
 >
 >
 >         
    ... 26
 >
 >
 >
 >    more
 >
 >
 >
 >
 >
 >
 >
 >     Could you help us
 on
 >
 >
 >
 >    configuring mail
 server with openmeetings ?
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >     Thanks for your
 help.
 >
 >
 >
 >
 >
 >
 >
 >     Best Regards.
 >
 >
 >
 >
 >
 >
 >
 >     Maxime
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >    ---
 >
 >
 >
 >     This email has been
 checked for viruses
 >
 >
 >
 >    by AVG.
 >
 >
 >
 >     http://www.avg.com
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >    --
 >
 >
 >
 >
 >
 >
 >
 >    WBR
 >
 >
 >
 >    Maxim aka solomax
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >    Hello,
 >
 >
 >
 >
 >
 >
 >
 >    Thank you very
 >
 >
 >
 >    much for your reply
 and your useful help, importing
 >  the
 >
 >
 >
 >    certificate made it
 functional. It works fine now.
 >
 >
 >
 >
 >
 >
 >
 >    Best regards.
 >
 >
 >
 >
 >
 >
 >
 >    Maxime
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >   --
 >
 >   WBR
 >
 >   Maxim aka solomax
 >
 >
 >  --
 >
 >  WBR
 >  Maxim aka solomax
 >
 
 
 
 -- 
 WBR
 Maxim aka solomax

Reply via email to