The internet message access protocol (imap) is a standard internet protocol that is used by email clients to retrieve email messages from a mail server over tcp/ip. Imap is defined by rfc 3501. An imap server typically listens on port number 143. Imap over ssl (imaps) is assigned the port number 993.