Talking TLS to SMTP
I recently wanted to test TLS with SMTP. I followed instructions on
In short:
perl -MMIME::Base64 -e 'print encode_base64("\000user\000password")'
openssl s_client -starttls smtp -crlf -connect <ip>:<port>
auth <auth_command>
mail from:<tadek@pietraszek.org>
rcpt to:<tadek@pietraszek.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
T.
December 3rd, 2008 at 12:53 am
Hi Tadek,
do you know swaks http://jetmore.org/john/code/#swaks?
Kind regards,
Schiermi
December 6th, 2008 at 12:07 pm
Cool. And it also has a Debian package. Nice tip!
April 28th, 2009 at 9:05 pm
very good tip thank you.