POP3 Protocol
POP3 (Post Office Protocol version 3) is a protocol used to download email from a mail server.
POP3 allows users to retrieve mail from a server through a client (such as Outlook or Thunderbird) and store the mail on a local device.
How POP3 Works
POP3 uses a client-server model and transmits mail over a plaintext or encrypted communication channel. Its core function is to download mail from the server.
1. POP3 Connection Establishment

- The client connects to port 110 of the server (the default POP3 port).
- The server returns
+OK, indicating the service is ready. - The client sends the username (USER command), and the server returns
+OK, indicating that a password is required. - The client sends the password (PASS command), and the server returns
+OK, indicating successful login.
2. Mail Download
After the connection is established, the client can download mail. The following is a typical mail download process:

- STAT: The client obtains the number of messages and the total size.
- LIST: The client obtains the message list.
- RETR: The client downloads the specified message.
- DELE: The client marks a message for deletion (the message is deleted after the QUIT command).
3. Connection Closure
After the mail download is complete, the client can close the connection:

- The client sends the QUIT command to request closing the connection.
- The server returns
+OK, indicating the connection is closed, and deletes messages marked for deletion.
Key Features of POP3
-
Simple and Easy to Use:
-
Mail Download:
-
Deletion Mechanism:
-
Stateless Protocol:
Application Scenarios of POP3
POP3 is widely used in the following scenarios:
- Mail Clients: Mail clients such as Outlook and Thunderbird use POP3 to download mail.
- Offline Access: Users can access downloaded mail while offline.
- Storage Management: Save server storage space by deleting messages on the server.
Security Issues of POP3
POP3 itself is insecure because it transmits data in plaintext and is vulnerable to the following attacks:
- Eavesdropping: Attackers can eavesdrop on transmitted data.
- Tampering: Attackers can tamper with transmitted data.
- Spoofing: Attackers can impersonate a server or client.
To improve security, you can use POP3S (POP3 Secure), that is, POP3 over TLS/SSL, which protects data transmission through encrypted communication.
Alternatives to POP3
In some scenarios, the following alternatives can be used:
- IMAP: Supports managing mail on the server, suitable for multi-device access.
- Web Mail Services: Access email through web interfaces (such as Gmail, Outlook.com).
In summary, POP3 is a protocol for downloading email, using a client-server model to download mail from a server to a local device. It is simple and easy to use, suitable for offline access and storage management, but attention should be paid to its security issues. If you are interested in a specific feature or application scenario of POP3, feel free to explore further!