login about faq

I am using your SOCKET ActiveX with Delphi 2010.

There is a problem connecting to smtp.live.com... ths TLS handshake is NOT working.

this is the log from the ActiveX:

25/11/2012 14:12:23.896 UTC:  Cannot connect via SSL to smtp.live.com at port 587 Error Code = 0
    DllDate: Aug  5 2012
    UnlockPrefix: myPrefix
    Username: myUser
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    objectId: 1
    port: 587
    ssl: 1
    maxWaitMs: 5000
    ConnectTimeoutMs_1: 5000
    calling ConnectSocket2
    IPV6 enabled connect with NO heartbeat.
    This is an IPV4 numeric address...
        ai_flags: 4
        ai_family: 2
        ai_socktype: 1
        ai_protocol: 0
        ai_addrlen: 16
        ai_canonname: (NULL)
    Connect using IPV4.
    myPort_3: 55331
    connect successful (2)
    clientHelloMajorMinorVersion: 3.1
      majorVersion: 3
      minorVersion: 1
      numRandomBytes: 32
      sessionIdSize: 0
      numCipherSuites: 10
      numCompressionMethods: 1
    Timeout waiting to read socket or accept connection
    timeoutMs: 5000
    Failed to read TLS record (2)
    tlsRec_msg: 126
    msgLen: 8258
    Expected ServerHello but did not receive it.
    Client handshake failed. (3)

asked Nov 25 '12 at 15:27

chilkat's gravatar image

chilkat ♦♦

Port 587 is the customary port for "explicit" SSL/TLS. The error is that you are trying to connect using "implicit" SSL/TLS.

"implicit" means that immediately upon connection the SSL/TLS handshake begins and the secure connection is established.

"explicit" means that the non-encrypted TCP socket connection is first established, and then it is converted to a secure SSL/TLS channel using some command in the protocol, which in this case is SMTP.

Therefore, instead of setting the MailMan2.SmtpSsl property = 1 (which indicates implicit SSL), set the MailMan2.StartTLS property = 1 to indicate explicit SSL.


answered Nov 25 '12 at 15:31

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Nov 25 '12 at 15:27

Seen: 3,888 times

Last updated: Nov 25 '12 at 15:31

powered by OSQA