Test SMTP and IMAP

SMTP:

#openssl s_client -connect localhost:25 -starttls smtp #openssl s_client -showcerts -connect localhost:465

ehlo localhost 
quit

IMAP:

#openssl s_client -crlf -connect localhost:993

. capability 
A login name P@ssw0rd 
A logout