Post Office Protocol version 3. A client/server protocol for
retrieving email from a mail server. Designed for offline,
single-device use — the client downloads messages and the server
deletes them by default. Largely superseded by IMAP in modern
deployments but still encountered, particularly on legacy systems
and in CTF enumeration.
1. Client connects to server on port 110 (or 995)
2. Server sends: +OK Dovecot ready
3. Client authenticates:
USER alice
PASS secretpassword
4. Server responds: +OK Logged in
5. Client issues transaction commands
6. Client sends QUIT — server deletes marked messages, closes session
Commands
Command
Purpose
Response
USER <name>
Send username
+OK
PASS <password>
Send password
+OK / -ERR
STAT
Message count and total size
+OK 3 8472 (3 messages, 8472 bytes)
LIST
List messages with sizes
+OK 3 messages / numbered list
LIST <n>
Size of specific message
+OK 1 2042
RETR <n>
Retrieve message n
Full message text
DELE <n>
Mark message n for deletion
+OK
NOOP
Keep connection alive
+OK
RSET
Unmark all messages for deletion
+OK
QUIT
End session (deletions applied)
+OK Bye
Manual Interaction
SHELL
# Plaintext connection (port 110)
nc $IP 110
# TLS connection (port 995)
openssl s_client -connect $IP:995
# Example session
USER alice
PASS password
STAT # How many messages?
LIST # List all with sizes
RETR 1 # Read message 1
DELE 1 # Mark for deletion
QUIT # End session, apply deletions
POP3 vs IMAP
Feature
POP3
IMAP
Storage
Local (server deletes after download)
Server-side
Multi-device
Poor — mail on one device
Good — syncs across devices
Offline access
Good
Depends on client caching
Folder sync
No
Yes
Partial download
No
Yes
Port
110 / 995
143 / 993
Security Relevance
Plaintext credentials
POP3 on port 110 transmits usernames and passwords in cleartext —
visible to anyone with network access. A finding if encountered
on an internal assessment.
SHELL
# Confirm plaintext auth in Wireshark
# Filter: tcp.port == 110
# Look for USER and PASS commands in packet data
Credential brute force
SHELL
# Hydra against POP3
hydra -l alice -P /usr/share/wordlists/rockyou.txt pop3://$IP
hydra -l alice -P /usr/share/wordlists/rockyou.txt pop3s://$IP