Archive for December, 2008

Cake++

Saturday, December 13th, 2008

We recently visited our friends who started their own start-up. No, not in the Silicon Valley, but here in Kilchberg. And not in IT, but in pâtisserie.

We heard the [chocolate cake](http://www.cake-plus.ch/Web-Site/Meine%20Produkte.html) is to die for. We are so getting it for Christmas, topped with Christmas decorations. Sweet ;-)

Talking TLS to SMTP

Tuesday, December 2nd, 2008

I recently wanted to test TLS with SMTP. I followed instructions on and got it to work in less than 30s ;-)

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.