# openssl s_client -connect smtp.example.com:465
220 smtp.example.com ESMTP Postfix
HELO example.com
250 example.com
AUTH login
334 VXNlcm5hbWU6 [the base64 encoding of "Username:"
ZGFuaWVsQGJhc2V6ZW4uY29t [base64 encoding of "dan...@basezen.com"]
334 UGFzc3dvcmQ6 [and of "Password:"]
<redacted> [base64 encoding of my password]
235 2.7.0 Authentication successful
MAIL FROM: <dan...@basezen.com>
250 2.1.0 Ok
RCPT TO: <dan...@basezen.com>
RENEGOTIATING [this and the next 3 lines is SSL protocol chatter you
can ignore]
depth=1 /C=BE/OU=Domain Validation CA/O=GlobalSign nv-sa/CN=GlobalSign
Domain Validation CA
verify error:num=20:unable to get local issuer certificate
verify return:0
rcpt to: <dan...@basezen.com> [note lowercase is important here]
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
From: dan...@basezen.com
To: dan...@basezen.com
Subject: None
Boy, This was a lot of Work.
Interestingly, I also encountered The Quoting Problem again. By putting
in the end of a *sample* SMTP conversation in the middle of a *real*
one, I cut off my own message. See, frustrating messing with the
protocol. :-) Here's the last part again, with the terminating '.'
moved in a space:
data
354 End data with <CR><LF>.<CR><LF>
From: dan...@basezen.com
To: dan...@basezen.com
Subject: None
Boy, This was a lot of Work.
.
250 2.0.0 Ok: queued as 143086FC0E9
quit
221 2.0.0 Bye
read:errno=0
# [back at unix prompt]