Archived Forum Post

Index of archived forum posts

Question:

LastSmtpStatus is 0 (again)

Jul 26 '12 at 05:55

If I logon with wrong credentials to my SMTP-Server the LastSmtpStatus is 0 again.

SessionLog:

220 SERVER.kdt.local Microsoft ESMTP MAIL Service ready at Sun, 22 Jul 2012 12:52:40 +0200 EHLO Dirk-PC 250-SERVER.kdt.local Hello [192.168.8.90] 250-SIZE 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-STARTTLS 250-X-ANONYMOUSTLS 250-AUTH 250-X-EXPS GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250-XEXCH50 250-XRDST 250 XSHADOW STARTTLS 220 2.0.0 SMTP server ready EHLO Dirk-PC 250-SERVER.kdt.local Hello [192.168.8.90] 250-SIZE 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH LOGIN 250-X-EXPS GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250-XEXCH50 250-XRDST 250 XSHADOW AUTH LOGIN 334 VXNlcm5hbWU6 ZGlya0B2b2xtZXItbGVnZGVuLmRlNA== 334 UGFzc3dvcmQ6 a3JpZHJlbTIx 535 5.7.3 Authentication unsuccessful

LastErrorText:


ChilkatLog:
                  SendMimeBytes:
                    DllDate: Jul 17 2012
                    UnlockPrefix: KORTENMAILQ
                    Username: DIRK-PC:dirk
                    Architecture: Little Endian; 32-bit
                    Language: .NET 4.0
                    SmtpConnect:
                      SmtpHost: 192.168.8.12
                      SmtpPort: 25
                      SmtpUsername: wrong username
                      SmtpSsl: 0
                      StartTLS: 1
                      SmtpAuthMethod: PLAIN
                      Need new SMTP connection
                      checkForExistingConnection: Elapsed time: 0 millisec
                      SMTP_Connect:
                        Connecting to SMTP server 192.168.8.12:25
                        smtp_host: 192.168.8.12
                        smtp_port: 25
                        smtp_user: wrong username
                        auth-method: PLAIN
                        ConnectTimeoutMs_1: 30000
                        calling ConnectSocket2
                        IPV6 enabled connect with NO heartbeat.
                        This is an IPV4 numeric address...
                        AddrInfoList:
                          AddrInfo:
                            ai_flags: 4
                            ai_family: 2
                            ai_socktype: 1
                            ai_protocol: 0
                            ai_addrlen: 16
                            ai_canonname: (NULL)
                          --AddrInfo
                        --AddrInfoList
                        Connect using IPV4.
                        ipAddress1: 192.168.8.12
                        myIP_3: 192.168.8.90
                        myPort_3: 50251
                        connect successful (2)
                        socketConnect: Elapsed time: 0 millisec
                        SmtpCmdResp: 220 SERVER.kdt.local Microsoft ESMTP MAIL Service ready at Sun, 22 Jul 2012 12:52:40 +0200
                        initialResponse: Elapsed time: 0 millisec
                        Sending STARTTLS after hello.
                        sendEhlo: Elapsed time: 0 millisec
                        SmtpCmdResp: 250-SERVER.kdt.local Hello [192.168.8.90]
                        SmtpCmdResp: 250-SIZE
                        SmtpCmdResp: 250-PIPELINING
                        SmtpCmdResp: 250-DSN
                        SmtpCmdResp: 250-ENHANCEDSTATUSCODES
                        SmtpCmdResp: 250-STARTTLS
                        SmtpCmdResp: 250-X-ANONYMOUSTLS
                        SmtpCmdResp: 250-AUTH
                        SmtpCmdResp: 250-X-EXPS GSSAPI NTLM
                        SmtpCmdResp: 250-8BITMIME
                        SmtpCmdResp: 250-BINARYMIME
                        SmtpCmdResp: 250-CHUNKING
                        SmtpCmdResp: 250-XEXCH50
                        SmtpCmdResp: 250-XRDST
                        SmtpCmdResp: 250 XSHADOW
                        helloResponse: Elapsed time: 0 millisec
                        Sending STARTTLS (2)...
                        SmtpCmdResp: 220 2.0.0 SMTP server ready
                        clientHelloMajorMinorVersion: 3.1
                        buildClientHello:
                          majorVersion: 3
                          minorVersion: 1
                          numRandomBytes: 32
                          sessionIdSize: 0
                          numCipherSuites: 10
                          numCompressionMethods: 1
                        --buildClientHello
                        handshakeMessageType: ServerHello
                        handshakeMessageLen: 0x46
                        processHandshakeMessage:
                          MessageType: ServerHello
                          Processing ServerHello...
                          ServerHello:
                            MajorVersion: 3
                            MinorVersion: 1
                            SessionIdLen: 32
                            CipherSuite: RSA_WITH_AES_128_CBC_SHA
                            CipherSuite: 00,2f
                            CompressionMethod: 0
                            Queueing ServerHello message.
                            ServerHello is OK.
                          --ServerHello
                        --processHandshakeMessage
                        handshakeMessageType: Certificate
                        handshakeMessageLen: 0x555
                        processHandshakeMessage:
                          MessageType: Certificate
                          ProcessCertificates:
                            Certificate:
                              derSize: 1359
                              certSubjectCN: remote.volmer-legden.de
                              certSerial: 116B878D000000000008
                              certIssuerCN: kdt-SERVER-CA
                            --Certificate
                            NumCertificates: 1
                            Queueing Certificates message...
                          --ProcessCertificates
                        --processHandshakeMessage
                        handshakeMessageType: ServerHelloDone
                        handshakeMessageLen: 0x0
                        processHandshakeMessage:
                          MessageType: ServerHelloDone
                          Queueing HelloDone message.
                        --processHandshakeMessage
                        HandshakeQueue:
                          MessageType: ServerHello
                          MessageType: Certificate
                          MessageType: ServerHelloDone
                        --HandshakeQueue
                        Dequeued ServerHello message.
                        Dequeued Certificate message.
                        DequeuedMessageType: ServerHelloDone
                        OK to ServerHelloDone!
                        No client certificate required by the server.
                        Encrypted pre-master secret with server certificate RSA public key is OK.
                        Sending ClientKeyExchange...
                        Sent ClientKeyExchange message.
                        Sending ChangeCipherSpec...
                        Sent ChangeCipherSpec message.
                        Derived keys.
                        Installed new outgoing security params.
                        Sending FINISHED message..
                        algorithm: aes
                        keyLength: 128
                        Sent FINISHED message..
                        ccsProtocolType: 1
                        handshakeMessageType: HandshakeFinished
                        handshakeMessageLen: 0xc
                        processHandshakeMessage:
                          MessageType: HandshakeFinished
                          FinishedMsgLen: 12
                          Queueing Finished message.
                        --processHandshakeMessage
                        Dequeue the FINISHED message...
                        Dequeued Finished message.
                        Handshake completed successfully.
                        Secure Channel Established.
                        TLS connection established.
                        sendingHello2: EHLO Dirk-PC
                        SmtpCmdResp: 250-SERVER.kdt.local Hello [192.168.8.90]
                        SmtpCmdResp: 250-SIZE
                        SmtpCmdResp: 250-PIPELINING
                        SmtpCmdResp: 250-DSN
                        SmtpCmdResp: 250-ENHANCEDSTATUSCODES
                        SmtpCmdResp: 250-AUTH LOGIN
                        SmtpCmdResp: 250-X-EXPS GSSAPI NTLM
                        SmtpCmdResp: 250-8BITMIME
                        SmtpCmdResp: 250-BINARYMIME
                        SmtpCmdResp: 250-CHUNKING
                        SmtpCmdResp: 250-XEXCH50
                        SmtpCmdResp: 250-XRDST
                        SmtpCmdResp: 250 XSHADOW
                        helloResponse2: 250-SERVER.kdt.local Hello [192.168.8.90]
                250-SIZE
                250-PIPELINING
                250-DSN
                250-ENHANCEDSTATUSCODES
                250-AUTH LOGIN
                250-X-EXPS GSSAPI NTLM
                250-8BITMIME
                250-BINARYMIME
                250-CHUNKING
                250-XEXCH50
                250-XRDST
                250 XSHADOW
                        smtpAuthMethod: PLAIN
                        This SMTP server did not list authentication methods.
                        Defaulting to LOGIN authentication method.
                        login_method: LOGIN
                        auth_login_1:
                          SmtpCmdResp: 334 VXNlcm5hbWU6
                          smtpStatusCode: 334
                          SmtpCmdResp: 334 UGFzc3dvcmQ6
                          smtpStatusCode: 334
                          SmtpCmdResp: 535 5.7.3 Authentication unsuccessful
                          smtpStatusCode: 535
                          535 5.7.3 Authentication unsuccessful
                          Failed to get response to login password
                        --auth_login_1
                        Failed to login using LOGIN method
                      --SMTP_Connect
                      checkOrMakeSmtpConnection: Elapsed time: 5023 millisec
                    --SmtpConnect
                  --SendMimeBytes
                --ChilkatLog
    

Greetings Dirk


Accepted Answer

This new build should fix it: http://www.chilkatsoft.com/preRelease/ChilkatDotNet4.zip

-Matt


Answer

Dirk,

Thanks! I'm sure it's the same issue but at a different place within the internal code. I'll make the fix today and notify you. I'll also make sure to check for all other possible instances of the same situation.


Answer

I want to thank you for the quick and competent support.

Dirk