Footprinting

IMAP / POP3

Notes and commands for IMAP / POP3.

2024-02-27
Tags reconfootprintingimap-pop3

IMAP/POP3

CommandDescription
curl -k 'imaps://<FQDN/IP>' --user <user>:<password>Log in to the IMAPS service using cURL.
`openssl s_client -connect <FQDN/IP>:imapsConnect to the IMAPS service.`
`openssl s_client -connect <FQDN/IP>:pop3sConnect to the POP3s service.`
1 LOGIN username passwordUser’s login.
1 LIST "" *Lists all directories.
1 CREATE "INBOX"Creates a mailbox with a specified name.
1 DELETE "INBOX"Deletes a mailbox.
1 RENAME "ToRead" "Important"Renames a mailbox.
1 LSUB "" *Returns a subset of names from the set of names that the User has declared as being active or subscribed.
1 SELECT INBOXSelects a mailbox so that messages in the mailbox can be accessed.
1 UNSELECT INBOXExits the selected mailbox.
1 FETCH <ID> allRetrieves data associated with a message in the mailbox.
1 CLOSERemoves all messages with the Deleted flag set.
1 LOGOUTCloses the connection with the IMAP server.
POP3 Commands
CommandDescription
USER usernameIdentifies the user.
PASS passwordAuthentication of the user using its password.
STATRequests the number of saved emails from the server.
LISTRequests from the server the number and size of all emails.
RETR idRequests the server to deliver the requested email by ID.
DELE idRequests the server to delete the requested email by ID.
CAPARequests the server to display the server capabilities.
RSETRequests the server to reset the transmitted information.
QUITCloses the connection with the POP3 server.