Well, figured this out for SMTP, but what about IMAP? Well it’s a little simpler, basically there is port 143 for unencrypted and port 993 for encrypted. You really always want to encrypt, so 993 works best. Most modern servers handle encryption on 143 as well.