The Post Office Protocol (POP) is a basic email protocol that downloads emails from the server to a local device and typically removes them from the server. It works well for users who access email from a single device but lacks features like email synchronization and folder management.

Default Port: 110,995(ssl)

Banner grabbing

nc -nv $IP 110
openssl s_client -connect $IP:pop3s

Nmap

Nmap is a network scanner created by Gordon Lyon. Nmap is used to discover hosts and services on computer network by sending packets and analyzing the responses.

Nmap provides a number of features for probing computer networks, including host discovery and service and operating system detection.

# Default NSE
sudo nmap -sCV -p110,995 $IP

POP3 Commands

To interact with the POP, use the telnet tool to establish a connection with the server.

CommandDescription
USER usernameIdentifies the user.
PASS passwordAuthentication of the user using its password.
STATList the number of saved emails.
LISTList the number and size of all emails.
RETR idRequests a specific email by ID from the server.
DELE idDeletes a specific email by ID from the server.
CAPADisplays the server’s capabilities.
RSETResets the current session information.
QUITCloses the connection with the server.

Dangerous settings

While most companies use third-party email providers like Google or Microsoft, some still maintain their own mail servers for various reasons. These settings apply to both POP3 and IMAP protocols.

SettingDescription
auth_debugEnables all authentication debug logging.
auth_debug_passwordsIncreases log verbosity to include submitted passwords and the authentication scheme used.
auth_verboseLogs failed authentication attempts along with the reasons for failure.
auth_verbose_passwordsPasswords used for authentication are logged and can also be truncated.
auth_anonymous_usernameSpecifies the username to use when logging in with the ANONYMOUS SASL authentication method.