CS158a
Chris Pollett
May 11, 2011
S: 220 myname.edu C: HELO client.domain S: 250 Hello client.domain, pleased to meet you C: MAIL FROM: bob@client.domain S: 250 bob@client.domain ... Sender ok C: RCPT TO: sally@myname.edu S: 250 sally@client.domain ... Receiver ok C: DATA S:354 Enter mail, end with "." on a line by itself C: How about lunch? C: . S: 250 Message accepted for delivery C: QUIT S: 221 myname.edu closing connection
From: bob@client.domain To: sally@client.domain Subject: lunch? How about lunch?
ELHO client.domaininstead.
STARTTLScommand.
openssl s_client -starttls smtp -crlf -quiet -connect pollett.org:25 or openssl s_client -starttls smtp -crlf -quiet -connect pollett.org:587Here 25 and 587 are port numbers. 587 usually defaults to secure mail. Once connected you can issue usual SMTP commands.
C: AUTH LOGIN S: 334 some_base64_string C: my_base_64_login_for_machine S: 334 some_other_base64_string C: my_base_64_password_for_machine S: 235 Authentication successful
telnet mailserver 110 +OK POP3 server ready user bob +OK pass secret +OK user successfully logged on
C: telnet www.cs.sjsu.edu 80 S: Trying 130.65.86.46... Connected to www.cs.sjsu.edu. Escape character is '^]'. C: GET /index.html HTTP/1.1 Host: www.cs.sjsu.edu [blank line] S: HTTP/1.1 200 OK Date: Thu, 10 May 2007 18:37:34 GMT Server: Apache/2.2.2 (Fedora) Last-Modified: Mon, 07 May 2007 22:38:22 GMT Accept-Ranges: bytes Content-Length: 9700 Connection: close Content-Type: text/html [blank line] document