Fix STARTTLS support (IMAP/SMTP).