You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@manifoldcf.apache.org by ju...@francelabs.com on 2021/05/11 16:13:07 UTC

Notification connector error

Hello,

 

I am trying to use an email notification connector but without success. When
the connector tries to send an email I keep having the following error:

 

Email: Error sending email: Could not convert socket to TLS

javax.mail.MessagingException: Could not convert socket to TLS

                at
com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1918)
~[mail-1.4.5.jar:1.4.5]

                at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:652)
~[mail-1.4.5.jar:1.4.5]

                at javax.mail.Service.connect(Service.java:317)
~[mail-1.4.5.jar:1.4.5]

                at javax.mail.Service.connect(Service.java:176)
~[mail-1.4.5.jar:1.4.5]

                at javax.mail.Service.connect(Service.java:125)
~[mail-1.4.5.jar:1.4.5]

                at javax.mail.Transport.send0(Transport.java:194)
~[mail-1.4.5.jar:1.4.5]

                at javax.mail.Transport.send(Transport.java:124)
~[mail-1.4.5.jar:1.4.5]

                at
org.apache.manifoldcf.crawler.notifications.email.EmailSession.send(EmailSes
sion.java:112) ~[?:?]

                at
org.apache.manifoldcf.crawler.notifications.email.EmailConnector$SendThread.
run(EmailConnector.java:963) ~[?:?]

Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol
(protocol is disabled or cipher suites are inappropriate)

                at
sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:170) ~[?:?]

                at
sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:9
8) ~[?:?]

                at
sun.security.ssl.TransportContext.kickstart(TransportContext.java:221)
~[?:?]

                at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:433) ~[?:?]

                at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:411) ~[?:?]

                at
com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:548)
~[mail-1.4.5.jar:1.4.5]

                at
com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:485)
~[mail-1.4.5.jar:1.4.5]

                at
com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1913)
~[mail-1.4.5.jar:1.4.5]

                ... 8 more

 

 

The connector is configured with a gmail SMTP, using the configuration
recommended by the documentation:

 

Hostname: smtp.gmail.com

Port: 587

 

Configuration properties:

mail.smtp.ssl.trust : smtp.gmail.com

mail.smtp.starttls.enable : true

mail.smtp.auth : true

 

 

The username and password I use are correct and I also tried with the
office365 SMTP and I get the same error. 

 

I am using openjdk version "11.0.11" 2021-04-20. Do you have any idea about
my issue ? 

 

Julien

 


Re: Notification connector error

Posted by Karl Wright <da...@gmail.com>.
This used to work fine, but I suspect that when SSH was declared unsafe, it
was disabled, and now only TLS will work.

Karl


On Tue, May 11, 2021 at 12:13 PM <ju...@francelabs.com> wrote:

> Hello,
>
>
>
> I am trying to use an email notification connector but without success.
> When the connector tries to send an email I keep having the following error:
>
>
>
> Email: Error sending email: Could not convert socket to TLS
>
> javax.mail.MessagingException: Could not convert socket to TLS
>
>                 at
> com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1918)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:652)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 at javax.mail.Service.connect(Service.java:317)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 at javax.mail.Service.connect(Service.java:176)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 at javax.mail.Service.connect(Service.java:125)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 at javax.mail.Transport.send0(Transport.java:194)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 at javax.mail.Transport.send(Transport.java:124)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 at
> org.apache.manifoldcf.crawler.notifications.email.EmailSession.send(EmailSession.java:112)
> ~[?:?]
>
>                 at
> org.apache.manifoldcf.crawler.notifications.email.EmailConnector$SendThread.run(EmailConnector.java:963)
> ~[?:?]
>
> Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol
> (protocol is disabled or cipher suites are inappropriate)
>
>                 at
> sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:170) ~[?:?]
>
>                 at
> sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98)
> ~[?:?]
>
>                 at
> sun.security.ssl.TransportContext.kickstart(TransportContext.java:221)
> ~[?:?]
>
>                 at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:433) ~[?:?]
>
>                 at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:411) ~[?:?]
>
>                 at
> com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:548)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 at
> com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:485)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 at
> com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1913)
> ~[mail-1.4.5.jar:1.4.5]
>
>                 ... 8 more
>
>
>
>
>
> The connector is configured with a gmail SMTP, using the configuration
> recommended by the documentation:
>
>
>
> Hostname: smtp.gmail.com
>
> Port: 587
>
>
>
> Configuration properties:
>
> mail.smtp.ssl.trust : smtp.gmail.com
>
> mail.smtp.starttls.enable : true
>
> mail.smtp.auth : true
>
>
>
>
>
> The username and password I use are correct and I also tried with the
> office365 SMTP and I get the same error.
>
>
>
> I am using openjdk version "11.0.11" 2021-04-20. Do you have any idea
> about my issue ?
>
>
>
> Julien
>
>
>