LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-12-2006, 03:55 AM   #1
jlkuo56linuxqu
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
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 ??

Last edited by jlkuo56linuxqu; 07-12-2006 at 03:57 AM.
 
Old 07-12-2006, 10:00 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
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
 
Old 07-12-2006, 12:26 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 07-20-2006, 03:50 AM   #4
jlkuo56linuxqu
LQ Newbie
 
Registered: Jul 2006
Posts: 2

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
client cannot connect to sendmail smtp LetoX Linux - Networking 0 07-06-2004 05:47 PM
sendmail as a smtp auth client pezzer55 Linux - General 0 03-29-2004 08:47 AM
difference between rpm and urpmi commnd? petkov Mandriva 1 03-17-2004 03:16 AM
postfix smtp client netmaniac Linux - Networking 0 07-31-2003 10:59 AM
client side smtp problem f1uke Linux - Newbie 6 02-25-2003 01:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration