Archived Forum Post

Index of archived forum posts

Question:

Error connecting to IMAP Server

Dec 19 '16 at 03:47

We've been using Chilkat to connect to our Exchange 2010 Server for a while and all has been fine, until a few weeks ago when users could no longer connect.

The certificate on the mail domain was about to expire (but was still valid) and I thought it may be somehow to do with that, but now it has been renewed we are getting new errors and I'm not sure what I can do to resolve as nothing has changed that I'm aware of other than the renewed certificate, any suggestions?

ChilkatLog:    
  Connect_Imap(1469ms):    
    DllDate: Nov 13 2016    
    ChilkatVersion: 9.5.0.64    
    UnlockPrefix: myunlockprefix    
    Architecture: Little Endian; 32-bit    
    Language: Visual C++ 8.0 (32-bit)    
    VerboseLogging: 1    
    connectInner(1422ms):    
      connectToImapServer(1407ms):    
        hostname: mail.mycompany.net    
        port: 993    
        socket2Connect(1391ms):    
          connect2(1375ms):    
            hostname: mail.canburg.net    
            port: 993    
            ssl: 1    
            connectImplicitSsl(1359ms):    
              Clearing TLS client certificates.    
              connectSocket(1187ms):    
                domainOrIpAddress: mail.mycompany.net    
                port: 993    
                connectTimeoutMs: 30000    
                connect_ipv6_or_ipv4(1172ms):    
                  Multi-threaded domain to IP address resolution    
                  connecting to IPV4 address...    
                  ipAddress: external.ip.address   
                  createSocket(15ms):    
                    Setting SO_SNDBUF size    
                    sendBufSize: 262144    
                    Setting SO_RCVBUF size    
                    recvBufSize: 4194304    
                  --createSocket    
                  connect(47ms):    
                    Waiting for the connect to complete...    
                    myIP: 192.168.1.53    
                    myPort: 63797    
                    socket connect successful.    
                  --connect    
                --connect_ipv6_or_ipv4    
              --connectSocket    
              clientHandshake(140ms):    
                The client cert chain is NULL.    
                cacheClientCerts(15ms):    
                  Cached TLS client certificates.    
                  Client cert chain is NULL.    
                --cacheClientCerts    
                clientHandshake2(125ms):    
                  readHandshakeMessages(47ms):    
                    WindowsError: An established connection was aborted by the software in your host machine.    
                    WindowsErrorCode: 0x2745    
                    numBytesRequested: 5    
                    Failed to receive data on the TCP socket    
                    sockRecv: Socket fatal error.    
                    Failed to read beginning of SSL/TLS record.    
                    b: 0    
                    dbSize: 0    
                    nReadNBytes: 0    
                  --readHandshakeMessages    
                --clientHandshake2    
              --clientHandshake    
              Client handshake failed. (3)    
            --connectImplicitSsl    
            ConnectFailReason: 103    
          --connect2    
        --socket2Connect    
        failReason: 0    
      --connectToImapServer
      connect failed.
    --connectInner
    Failed.
  --Connect_Imap
--ChilkatLog

EDIT: Not sure if this would help figure out the issue, but at the same time we started having problems sending emails using SMTP using the same server, output below:

ChilkatLog:
  SendEmail(7297ms):
    DllDate: Nov 13 2016
    ChilkatVersion: 9.5.0.64
    UnlockPrefix: MyUnlockPrefix
    Architecture: Little Endian; 32-bit
    Language: Visual C++ 8.0 (32-bit)
    VerboseLogging: 1
    sendEmailInner(7187ms):
      getSmtpReversePath(15ms):
        fromCkxBounceAddr: fromaddress@mydomain.com
      --getSmtpReversePath
      renderToMime(1359ms):
        createEmailForSending(859ms):
          xSigningAlg: sha1
          Auto-generating Message-ID
          clone2(828ms):
            assembleMimeBody(344ms):
              contentType: multipart/mixed
              isEmailAttachment(62ms):
                attachmentReason(46ms):
                  contentType: multipart/mixed
                  subject: [U=1074][T=DJ][J=60000][V=1][C=Dr Dempsey][F=1074][S=IM][R=Bathroom][Co=SMB]
                  from: "Adam Dempsey" <fromaddress@mydomain.com>
                  No (multipart enclosure)
                --attachmentReason
              --isEmailAttachment
              assembleMimeBody(63ms):
                contentType: text/plain
                isEmailAttachment(31ms):
                  attachmentReason(31ms):
                    contentType: text/plain
                    No, attachment is not indicated.
                  --attachmentReason
                --isEmailAttachment
                getEncodedBody(16ms):
                  contentType: text/plain
                  cp: 0
                --getEncodedBody
              --assembleMimeBody
              assembleMimeBody(94ms):
                contentType: application/zip
                isEmailAttachment(62ms):
                  attachmentReason(31ms):
                    contentType: application/zip
                    disposition: attachment
                    filename: DJ.tab.zip
                    name: DJ.tab.zip
                    Yes (disposition=attachment)
                  --attachmentReason
                --isEmailAttachment
                getEncodedBody(16ms):
                  contentType: application/zip
                --getEncodedBody
              --assembleMimeBody
            --assembleMimeBody
          --clone2
        --createEmailForSending
        assembleMimeBody(484ms):
          contentType: multipart/mixed
          isEmailAttachment(62ms):
            attachmentReason(62ms):
              contentType: multipart/mixed
              subject: [U=1074][T=DJ][J=60000][V=1][C=Dr Dempsey][F=1074][S=IM][R=Bathroom][Co=SMB]
              from: "Adam Dempsey" <fromaddress@mydomain.com>
              No (multipart enclosure)
            --attachmentReason
          --isEmailAttachment
          assembleMimeBody(125ms):
            contentType: text/plain
            isEmailAttachment(79ms):
              attachmentReason(47ms):
                contentType: text/plain
                No, attachment is not indicated.
              --attachmentReason
            --isEmailAttachment
            getEncodedBody(15ms):
              contentType: text/plain
              cp: 0
            --getEncodedBody
          --assembleMimeBody
          assembleMimeBody(109ms):
            contentType: application/zip
            isEmailAttachment(63ms):
              attachmentReason(47ms):
                contentType: application/zip
                disposition: attachment
                filename: DJ.tab.zip
                name: DJ.tab.zip
                Yes (disposition=attachment)
              --attachmentReason
            --isEmailAttachment
            getEncodedBody(15ms):
              contentType: application/zip
            --getEncodedBody
          --assembleMimeBody
          Email assembled.
        --assembleMimeBody
        renderToMime: Elapsed time: 1343 millisec
      --renderToMime
      sendMimeInner(5734ms):
        ensureSmtpSession(5719ms):
          ensureSmtpConnection(5703ms):
            SmtpHost: mail.mydomain.net
            SmtpPort: 587
            SmtpUsername: providence
            SmtpSsl: 0
            StartTLS: 1
            smtpConnect(5656ms):
              smtpHostname: mail.mydomain.net
              smtpPort: 587
              connectionIsReady(15ms):
                Need new SMTP connection
              --connectionIsReady
              smtpSocketConnect(359ms):
                socket2Connect(312ms):
                  connect2(297ms):
                    hostname: mail.mydomain.net
                    port: 587
                    ssl: 0
                    connectSocket(266ms):
                      domainOrIpAddress: mail.mydomain.net
                      port: 587
                      connectTimeoutMs: 30000
                      connect_ipv6_or_ipv4(235ms):
                        Multi-threaded domain to IP address resolution
                        connecting to IPV4 address...
                        ipAddress: 192.168.100.33
                        createSocket(32ms):
                          Setting SO_SNDBUF size
                          sendBufSize: 262144
                          Setting SO_RCVBUF size
                          recvBufSize: 4194304
                        --createSocket
                        connect(62ms):
                          Waiting for the connect to complete...
                          myIP: 192.168.168.28
                          myPort: 49703
                          socket connect successful.
                        --connect
                      --connect_ipv6_or_ipv4
                    --connectSocket
                  --connect2
                --socket2Connect
                Turning on TCP_NODELAY.
                socketOptions(32ms):
                  SO_SNDBUF: 262144
                  SO_RCVBUF: 4194304
                  TCP_NODELAY: 1
                  SO_KEEPALIVE: 1
                --socketOptions
              --smtpSocketConnect
              smtpGreeting(16ms):
                readSmtpResponse(16ms):
                  SmtpCmdResp: 220 ServerName.Domain.LOCAL Microsoft ESMTP MAIL Service ready at Mon, 19 Dec 2016 08:31:56 +0000
                --readSmtpResponse
              --smtpGreeting
              startTLS(5204ms):
                Will be using STARTTLS...
                sendCmdToSmtp(16ms):
                  SmtpCmdSent: EHLO CBM4006800D4J<CRLF>
                --sendCmdToSmtp
                readSmtpResponse(78ms):
                  SmtpCmdResp: 250-ServerName.Domain.LOCAL Hello [192.168.168.28]
                  SmtpCmdResp: 250-SIZE 41943040
                  SmtpCmdResp: 250-PIPELINING
                  SmtpCmdResp: 250-DSN
                  SmtpCmdResp: 250-ENHANCEDSTATUSCODES
                  SmtpCmdResp: 250-AUTH GSSAPI NTLM
                  SmtpCmdResp: 250-8BITMIME
                  SmtpCmdResp: 250-BINARYMIME
                  SmtpCmdResp: 250 CHUNKING
                --readSmtpResponse
                sendCmdToSmtp(15ms):
                  SmtpCmdSent: STARTTLS<CRLF>
                --sendCmdToSmtp
                readSmtpResponse(5032ms):
                  SmtpCmdResp: 500 5.3.3 Unrecognized command
                --readSmtpResponse
                Non-success STARTTLS response.
              --startTLS
            --smtpConnect
          --ensureSmtpConnection
        --ensureSmtpSession
      --sendMimeInner
    --sendEmailInner
    Failed.
  --SendEmail
--ChilkatLog