How to verify that SSL for IMAP/POP3/SMTP works and a proper SSL certificate is in use