Post Office Protocol Version 3 - Interactive Learning Module
POP3 (Post Office Protocol version 3) is an application-layer protocol used by email clients to retrieve emails from a mail server. It operates over TCP port 110 (or 995 for SSL/TLS) and provides a simple, straightforward method for downloading messages to your local device.
Understanding POP3 helps you analyze network traffic and troubleshoot email connectivity issues.
Learn how email protocols work to identify security vulnerabilities and implement proper protections.
POP3 is fundamental to understanding email systems and client-server communication patterns.
Specifies the username for authentication.
Provides the password for authentication.
Requests mailbox statistics (message count and total size).
Lists all messages with their sizes.
Retrieves the full content of a specific message.
Marks a message for deletion (deleted on QUIT).
No operation - keeps connection alive.
Resets session, unmarks deleted messages.
Ends session and commits deletions.
Positive response - command successful.
Negative response - command failed.
| Command | Parameters | Purpose | Example Response |
|---|---|---|---|
| USER | username (max 40 chars) | Authenticate username | +OK User accepted |
| PASS | password (max 40 chars) | Authenticate password | +OK Logged in |
| STAT | none | Get message count and total size | +OK 5 3420 |
| LIST | [message number] | List message(s) with size | +OK 1 820 |
| RETR | message number | Retrieve message content | +OK 820 octets |
| DELE | message number | Mark message for deletion | +OK Message deleted |
| NOOP | none | Keep connection alive | +OK |
| RSET | none | Reset session state | +OK |
| QUIT | none | End session, commit changes | +OK Goodbye |
Standard POP3 sends credentials in clear text. Always use POP3S (port 995) or STARTTLS for secure connections.
Once deleted and committed (QUIT), messages are permanently removed from the server. Plan your email retention strategy carefully.
Modern implementations support APOP (encrypted password) and SASL authentication mechanisms for enhanced security.