Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: EMAIL IMAP not connecting with tls 1.1 or 1.2

  1. #1
    Join Date
    Sep 2016
    Posts
    3

    Default EMAIL IMAP not connecting with tls 1.1 or 1.2

    Our exchange email server was modified to not allow tls 1 connections( Known security issue).
    Now the "Get mails (pop/imap)" step fails in login with following error:

    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - Remote host closed connection during handshake
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) -
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at org.pentaho.di.job.entries.getpop.MailConnection.connect(MailConnection.java:319)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at org.pentaho.di.job.entries.getpop.JobEntryGetPOP.execute(JobEntryGetPOP.java:926)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at org.pentaho.di.job.Job.execute(Job.java:676)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at org.pentaho.di.job.Job.execute(Job.java:817)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at org.pentaho.di.job.Job.execute(Job.java:493)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at org.pentaho.di.job.Job.run(Job.java:380)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - Caused by: javax.mail.MessagingException: Remote host closed connection during handshake;
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - nested exception is:
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:670)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at javax.mail.Service.connect(Service.java:295)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at javax.mail.Service.connect(Service.java:176)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at javax.mail.Service.connect(Service.java:125)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at org.pentaho.di.job.entries.getpop.MailConnection.connect(MailConnection.java:305)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - ... 5 more
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:994)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:549)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:354)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:211)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at com.sun.mail.iap.Protocol.<init>(Protocol.java:116)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:115)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at com.sun.mail.imap.IMAPStore.newIMAPProtocol(IMAPStore.java:685)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:636)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - ... 9 more
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - Caused by: java.io.EOFException: SSL peer shut down incorrectly
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at sun.security.ssl.InputRecord.read(InputRecord.java:505)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - ... 19 more
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - Closing connection ...
    2018/10/31 08:18:09 - Get mails (POP3/IMAP) - Connection closed.
    2018/10/31 08:18:09 - Email_Receive - Finished job entry [Get mails (POP3/IMAP)] (result=[false])

    I have tried this with Pentaho 6.1 and 8.1 versions on Windows 10 and Ubuntu 16.04.5 LTS and Oracle Linux and Fedora.
    Java 1.8.0_191

    It worked prior to the disabling of tls 1.

    I know that TLS1.1 and 1.2 work on the exchange server since I can connect using openssl s_client

  2. #2
    Join Date
    Sep 2016
    Posts
    3

    Default

    I replaced the mail-1.4.7.jar file in the lib directory with a javax.mail.jar release 1.6.2 and now the connection works.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2017 Pentaho Corporation. All Rights Reserved.