curl-library
RE: Gmail / SMTP +SSL
Date: Sat, 25 Dec 2010 22:56:49 +0100 (CET)
On Thu, 23 Dec 2010, Alona Rossen wrote:
> < 250-mx.google.com at your service, [199.85.101.2]
> < 250-SIZE 35651584
> < 250-8BITMIME
> < 250-STARTTLS
> < 250-ENHANCEDSTATUSCODES
> < 250 PIPELINING
>> STARTTLS
> < 220 2.0.0 Ready to start TLS
>> EHLO geniosol9
> < JFMi×OB©w%lÑL6À
As a comparison, when I run smtp-multi.c it works fine, I receive the email
and I get this verbose output. The different output after libcurl sends 'EHLO'
is of course very interesting:
* 0x885f8fc is at send pipe head!
* STATE: CONNECT => WAITRESOLVE handle 0x887971c; (connection #0)
* About to connect() to smtp.gmail.com port 587 (#0)
* Trying 74.125.79.109... * STATE: WAITRESOLVE => WAITCONNECT handle
0x887971c; (connection #0)
* Connected to smtp.gmail.com (74.125.79.109) port 587 (#0)
* SMTP 0x8879cd4 state change from STOP to SERVERGREET
* STATE: WAITCONNECT => PROTOCONNECT handle 0x887971c; (connection #0)
< 220 mx.google.com ESMTP b52sm7531090eei.7
> EHLO sture
* SMTP 0x8879cd4 state change from SERVERGREET to EHLO
< 250-mx.google.com at your service, [82.182.26.5]
< 250-SIZE 35651584
< 250-8BITMIME
< 250-STARTTLS
< 250 ENHANCEDSTATUSCODES
> STARTTLS
* SMTP 0x8879cd4 state change from EHLO to STARTTLS
< 220 2.0.0 Ready to start TLS
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* SSL connection using RC4-MD5
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc;
CN=smtp.gmail.com
* start date: 2010-04-22 20:02:45 GMT
* expire date: 2011-04-22 20:12:45 GMT
* issuer: C=US; O=Google Inc; CN=Google Internet Authority
* SSL certificate verify ok.
> EHLO sture
* SMTP 0x8879cd4 state change from STARTTLS to EHLO
< 250-mx.google.com at your service, [82.182.26.5]
Can you build 7.21.3 with configure --enable-debug and see what your output
says about the multi state when you run the same app? We need to narrow down
exactly when your version goes wrong and figure out why or how...
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-25