Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1682

E-Mail Notification Connector lacks support for TLSv1.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • ManifoldCF 2.20
    • ManifoldCF 2.21
    • Email connector
    • None

    Description

      E-Mail Notifications fail with javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

      Full Stacktrace

      2021-12-01T16:20:21,315 WARN [Job reset thread] org.apache.manifoldcf.connectors: Error notifying: Error sending email: Could not convert socket to TLS
      org.apache.manifoldcf.core.interfaces.ManifoldCFException: Error sending email: Could not convert socket to TLS
            at org.apache.manifoldcf.crawler.notifications.email.EmailConnector.handleMessagingException(EmailConnector.java:773) ~[mcf-email-connector.jar:?]
            at org.apache.manifoldcf.crawler.notifications.email.EmailConnector.sendMail(EmailConnector.java:307) ~[mcf-email-connector.jar:?]
            at org.apache.manifoldcf.crawler.notifications.email.EmailConnector.notifyOfJobStopErrorAbort(EmailConnector.java:205) ~[mcf-email-connector.jar:?]
            at org.apache.manifoldcf.crawler.system.JobResetThread.doStopNotifications(JobResetThread.java:205) [mcf-pull-agent.jar:?]
            at org.apache.manifoldcf.crawler.system.JobResetThread.run(JobResetThread.java:102) [mcf-pull-agent.jar:?]
          Caused by: 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) ~[mcf-email-connector.jar:?]
            at org.apache.manifoldcf.crawler.notifications.email.EmailConnector$SendThread.run(EmailConnector.java:963) ~[mcf-email-connector.jar:?]
          Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
            at java.base/sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:170) ~[?:?]
            at java.base/sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98) ~[?:?]
            at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:221) ~[?:?]
            at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:433) ~[?:?]
            at java.base/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]
            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) ~[mcf-email-connector.jar:?]
            at org.apache.manifoldcf.crawler.notifications.email.EmailConnector$SendThread.run(EmailConnector.java:963) ~[mcf-email-connector.jar:?] 

      I think this has to with the mail server requiring TLSv1.2 only.

      ManifoldCF ships java mail 1.4.5 which according to this source does not support TLSv1.2.

      We should upgrade to java mail 1.6.x.

      Attachments

        Activity

          People

            schuch Markus Schuch
            schuch Markus Schuch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: