LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   smtp client need STARTTLS commnd. (https://www.linuxquestions.org/questions/programming-9/smtp-client-need-starttls-commnd-463224/)

jlkuo56linuxqu 07-12-2006 03:55 AM

smtp client need STARTTLS commnd.
 
I want to write a smtp client application. @Cgywin


When I connect to smtp.gmail.com and EHLO localhost,

S:250-mx.gmail.com at ...
S:250-SIZE
S:250-8BITMIME
S:250-STARTTLS
S:250 ENHANCEDSTATUSCODES
C:MAIT FROM: ....
S:530 5.7.0 Must issue a STARTTLS command first ...

I search "STARTTLS" and find RFC2487 ?? TLS negotiation ??

How can I get TLS negotiation command ?? :confused:

r0b0 07-12-2006 10:00 AM

As an example you can use openssl tool like this:

Code:

$ openssl s_client -starttls smtp -connect server:25
CONNECTED(00000003)
[snip...]
220 server ESMTP Postfix


david_ross 07-12-2006 12:26 PM

Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.

jlkuo56linuxqu 07-20-2006 03:50 AM

Thank you ,r0b0
I also have found gnutls, Cygwin Packages.
The TLS handshake seem complex !!!
I take examples from opensslv3 and tlsv1.


All times are GMT -5. The time now is 01:40 AM.