After having succeeded in connecting to smtp.gmail.com and smtp.mail.yahoo.com using the AUTH LOGIN mechanism, I'm trying to do the same with smtp.live.com, but to no avail.

The Server is not responding when I send "AUTH LOGIN". Here's what's happening:

S:
250-BLU0-SMTP378.phx.gbl Hello [80.149.109.201]
250-TURN
250-SIZE 41943040
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-AUTH LOGIN PLAIN XOAUTH2
250 OK

C:
AUTH LOGIN

But no Response from the server after that.

Note: a STARTTLS command has been issued before attempting to Login. The communication is running under TLS.

有帮助吗?

解决方案

For some reason using SSL_CTX_new(SSLv23_client_method()) with smtp.live.com always fails and produces the issue presented in my 1st post.

After replacing the client method with SSL_CTX_new(TLSv1_client_method()), the issue was resolved.

It is weird, why this happens only with this particular server.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top