IMAP (143,993)
The Internet Message Access Protocol (IMAP) is used used for receiving emails on ports 143
(unencrypted) and 993
(SSL). In contrast with POP3, it keeps messages on the server, allowing access from multiple devices.
# Connect
telnet <ip> 143
openssl s_client -connect <ip>:993
# Authenticate
a1 LOGIN <username> <password>
# List folders
a2 LIST "" "*"
# Select the inbox
a3 SELECT INBOX
# Fetch the full body of message 1
a4 FETCH 1 BODY[]
a5 LOGOUT
Last updated
Was this helpful?