On 2/28/2011 11:17 AM, Wietse Venema wrote:
jeffrey j donovan:
Thanks
I guess blew past that,.. okay so just kill the session and use
a client. I thought i would be able to then send or type a test
message like MAIL FROM: soandso
-j
You can (

        openssl s_client -connect host:port

provided that you avoid the R and Q characters.

Just use lowercase input.

        Wietse
Yes, but it's troublesome with little reward. Manually learning and typing in the SMTP specification is nice to know, but not necessary and probably confusing for the stage the OP is at. For example, to use AUTH properly, you have to manually Base64-encode your inputs (I used a web-site utility to do so). In any case, I've enclosed an example transaction with private data redacted. My comments are in [].

# 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.
.
250 2.0.0 Ok: queued as 143086FC0E9
quit
221 2.0.0 Bye
read:errno=0
#

Reply via email to