Archived Forum Post

Index of archived forum posts

Question:

Pop3 - Authentication Failed - Password Encoding

Nov 28 '13 at 08:25

Hi there,

I'm using the Chilkat Mail Component (for C#) to send and receive mails using SMTP and POP3, both using SSL. Sending via SMTP works fine, but I keep getting an Authentication Failed - Error trying to get mail via POP3 - when there a special characters (like §,$ or Ä,Ö,Ü) in my password. When there is no special character in the password, it works. I tried to decode the password to UTF8 - doesn't work, then converted the password to a Base64-String (and using the PopPasswordBase64-Property), but that failed, too. (In every case of this, sending via SMTP works. Same user, same password.) Fetching mails via Thunderbird is working with those passwords.

Are there any restrictions to the Pop3-Password? How does it need to be converted or encoded?

Thanks in advance,

SVe

Pop3SessionLog:

    **** Connected to localhost:995
< +OK POP3 server (KV-CONNECT) ready 
> USER username
< +OK
> PASS ****
< -ERR Authentication failed.

LastErrorText:

    ChilkatLog:
  CopyMail:
    DllDate: Aug 15 2013
    ChilkatVersion: 9.4.1.42
    UnlockPrefix: MEDATIMAILQ
    Username: <username>
    Architecture: Little Endian; 32-bit
    Language: .NET 4.0
    VerboseLogging: 0
    Pop3Connect:
      Connecting to POP3 server
      hostname: localhost
      port: 995
      ssl: 1
      connectTimeoutMs: 30000
      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: 127.0.0.1
      myIP_3: 127.0.0.1
      myPort_3: 56159
      connect successful (2)
      clientHelloMajorMinorVersion: 3.1
      buildClientHello:
        majorVersion: 3
        minorVersion: 1
        numRandomBytes: 32
        sessionIdSize: 0
        numCipherSuites: 10
        numCompressionMethods: 1
      --buildClientHello
      readIncomingTls_serverHello:
        processTlsRecord:
          processHandshake:
            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: 0x59d
            processHandshakeMessage:
              MessageType: Certificate
              ProcessCertificates:
                Certificate:
                  derSize: 1431
                  certSubjectCN: name name
                  certSerial: 689190B9
                  certIssuerCN: name name
                --Certificate
                NumCertificates: 1
                Queueing Certificates message...
              --ProcessCertificates
            --processHandshakeMessage
            handshakeMessageType: ServerHelloDone
            handshakeMessageLen: 0x0
            processHandshakeMessage:
              MessageType: ServerHelloDone
              Queueing HelloDone message.
            --processHandshakeMessage
          --processHandshake
        --processTlsRecord
      --readIncomingTls_serverHello
      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..
      readIncomingTls_changeCipherSpec2:
        processTlsRecord:
          processChangeCipherSpec:
            ccsProtocolType: 1
          --processChangeCipherSpec
        --processTlsRecord
      --readIncomingTls_changeCipherSpec2
      readIncomingTls_handshakeFinished2:
        processTlsRecord:
          processHandshake:
            handshakeMessageType: HandshakeFinished
            handshakeMessageLen: 0xc
            processHandshakeMessage:
              MessageType: HandshakeFinished
              FinishedMsgLen: 12
              Queueing Finished message.
            --processHandshakeMessage
          --processHandshake
        --processTlsRecord
      --readIncomingTls_handshakeFinished2
      Dequeue the FINISHED message...
      Dequeued Finished message.
      Handshake completed successfully.
      Secure Channel Established.
      Connected to POP3 server
      Turning on TCP_NODELAY.
      socketOptions:
        SO_SNDBUF: 64512
        SO_RCVBUF: 8192
        TCP_NODELAY: 1
      --socketOptions
      PopCmdResp: +OK POP3 server (KV-CONNECT) ready
      greeting: +OK POP3 server (KV-CONNECT) ready
      ConnectionType: SSL/TLS
    --Pop3Connect
    Pop3Authenticate:
      username: username
      popSPA: 0
      PopCmdSent: USER username
      PopCmdResp: +OK
      PopCmdSent: PASS ****
      PopCmdResp: -ERR Authentication failed.
      POP3 response indicates failure.
      PASS_response: -ERR Authentication failed.

      POP3 authentication failed
    --Pop3Authenticate
    Authentication failed.
    Failed to ensure transaction state.
  --CopyMail
--ChilkatLog

Answer

Ha, that's exactly what i got with IMAP in this thread here:

-> http://www.chilkatforum.com/questions/4540/ftp-utf-8-login-failed-with-pass

Hope they can fix it asap :-D