This is a useful one for testing dovecot when setting up SSL:

openssl s_client -connect localhost:993 -quiet

If you get a ‘Connection Refused’, you have my permission to swear loudly. For me, the C bomb echoed around these four walls several times.