Email Listener error when using SSL in the configuration: Error performing Handshake

Version 1

    Details

     


    <log4net:data name="ErrorCode" value="(null)">

    <log4net:data name="ServiceName" value="EmailService">

    <log4net:data name="LogEntryId" value="2c2069a42ea544a3a5705e32ea2e9bfd">

    <log4net:data name="log4net:UserName" value="NT AUTHORITY\SYSTEM">

    <log4net:data name="SubsystemId" value="WFEMailboxAccess">

    <log4net:data name="LoginId" value="(null)">

    <log4net:data name="log4net:Identity" value="">

    <log4net:data name="ClientIPAddress" value="(null)">

    <log4net:data name="CurrentRole" value="(null)">

    <log4net:data name="log4net:HostName" value="DEDS-ITSM01-GL">

    <log4net:data name="TenantId" value="itservice.buschvacuum.com">

    <log4net:data name="StackTrace" value=" at Quiksoft.EasyMail.SSL.Internal.?.?(String A_0, Int32 A_1)
    <br/>
    at Quiksoft.EasyMail.SSL.Internal.?.?(String A_0, Int32 A_1, Int32 A_2)
    <br/>
    at Quiksoft.EasyMail.IMAP4.IMAP4.Connect(String Server, Int32 Port)
    <br/>
    at Quiksoft.EasyMail.IMAP4.IMAP4.Connect(String Server, Int32 Port, Object SSLInterface)
    <br/>
    at com.frontrange.saas.EmailService.MailboxAccessProtocolAdapter.GetIMAPMailBox(String tenantID, String mailboxName, String userName, String password, MailboxAuthentication mailBoxAuth, String serverHost, Int32 serverPort, Boolean useTLS)">

    <log4net:data name="SessionId" value="(null)">

    <log4net:exception>
    When configuring the Email Listener Inbox with the SSL/TLS option an error is returned in the EmailServer.frslog log file when the Email Listener tries to connect to the mailbox: Quiksoft.EasyMail.SSL.SSLConnectionException: Error connecting to server. mailserver --->
    Quiksoft.EasyMail.SSL.SSLConnectionException: Error performing Handshake. Conn --->
    System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    </log4net:exception>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

    </log4net:data>

     


    Resolution

     

    This issue can be caused if a using a chained security certificate.

    The releases prior to 2016.1.1 release cannot handle any certificate chain that has an intermediate certificate. 

    e.g.: Root->Intermediate->Server

    This issue is solved in the 2016.1.1 release with the Advanced Email Processor option.

    The work-arounds in the releases prior to 2016.1.1 are:
    1) Reduce the certificate chain to Root->Server certificate (without the intermediate certificate)
    2) Do not use a SSL Connection.