Archive for December, 2008
I recently wanted to test TLS with SMTP. I followed instructions on http://qmail.jms1.net/test-auth.shtml and got it to work in less than 30s
perl -MMIME::Base64 -e 'print encode_base64("\000user\000password")' openssl s_client -starttls smtp -crlf -connect <ip>:<port> auth <auth_command> mail from:<email@example.com> rcpt to:<firstname.lastname@example.org> data ... .
Interestingly, when I tried typing
RCPT s_client would interpret it as “renegotiate”, which confused me a bit, but you can inhibit it with
--quiet or type it in lowercase like I did