Skip to main content
0
  1. Wiki/

Email Encyclopedia: What is POP3

Introduction #

POP3 (Post Office Protocol Version 3) is an internet standard protocol used for receiving electronic mail from a mail server. It is one of two commonly used protocols in email systems, the other being IMAP (Internet Message Access Protocol). POP3 is primarily used to download emails from a remote server to a local device (such as a personal computer or phone), and typically deletes these emails from the server after downloading.

Compared to IMAP, POP3’s design is simpler and more direct, suitable for users who primarily use a single device to send and receive emails. The protocol is standardized by the IETF (Internet Engineering Task Force), with its latest version defined in RFC 1939.

Historical Background #

In early email systems, there was no clear distinction between mail transfer and mail access. As email systems continued to develop, a protocol specifically for mail access was needed. The initial POP protocol appeared in 1984, known as POP1, later evolved to POP2, and was finally officially defined as POP3 by RFC 1939 in 1996, becoming the widely used version today.

How It Works #

POP3 is a client-server protocol that operates at the application layer of the TCP/IP model, using TCP port 110 for communication. If SSL/TLS encryption is enabled, port 995 is used (also known as POP3S).

Main Process #

  1. Establish Connection: The email client (such as Outlook, Thunderbird, etc.) connects to the mail server’s POP3 port via TCP.
  2. Authentication: The client sends a username and password to log in to the server. This can be done through plaintext transmission (not recommended) or using encryption methods.
  3. Get Mail List: The client can request to view the list of emails on the server and their sizes.
  4. Download Mail: The client can choose to download all emails or emails with specific numbers.
  5. Mark for Deletion: The client can mark certain emails for deletion.
  6. End Session: The client sends a quit command, the server performs the actual deletion operation and disconnects.

Protocol Interaction Example #

A simple POP3 session is as follows:

C: telnet mail.example.com 110
S: +OK POP3 server ready <...>
C: USER alice
S: +OK User name accepted, password required
C: PASS secret
S: +OK Mailbox open, 2 messages
C: LIST
S: +OK 2 messages (320 octets)
S: 1 120
S: 2 200
S: .
C: RETR 1
S: +OK 120 octets
S: [Email content]
S: .
C: DELE 1
S: +OK Marked for deletion
C: QUIT
S: +OK POP3 server signing off

Features #

Advantages #

  • Simple and Efficient: POP3 protocol has a simple structure, easy to implement and deploy.
  • Offline Access: Emails can be read without an internet connection after being downloaded locally.
  • Saves Server Resources: Emails are typically deleted after download, reducing server storage burden.

Disadvantages #

  • One-way Synchronization: POP3 only supports downloading emails from the server, not managing folders, tags, etc. on the server.
  • Difficult Multi-device Synchronization: Since emails are typically deleted after download, using multiple devices easily leads to email desynchronization.
  • Lacks Advanced Features: Doesn’t support searching, partial downloading, real-time notifications, and other functions.

Comparison with Other Protocols #

POP3 vs IMAP #

Feature POP3 IMAP
Email Storage Location Usually deleted after download Emails remain on the server
Multi-device Support Poor Good
Synchronization Capability One-way (download only) Two-way synchronization
Network Dependency Low (can read offline after download) High (needs to maintain connection)
Server Resource Usage Low High
Supported Functions Basic functions (download, delete) Advanced functions (folder management, search, etc.)

POP3 vs SMTP #

  • SMTP (Simple Mail Transfer Protocol) is used for sending electronic mail, while POP3 is used for receiving electronic mail.
  • SMTP works in the mail transfer phase, while POP3 is used in the mail retrieval phase.
  • SMTP uses port 25 (or 587, 465 for encryption), while POP3 uses port 110 (or 995 for encryption).

Security #

Since POP3 was not designed with security in mind initially, usernames and passwords are transmitted in plaintext by default, making them vulnerable to man-in-the-middle attacks. To enhance security, modern implementations typically combine SSL/TLS encryption technology to form POP3S (POP3 over SSL/TLS).

Additionally, some mail service providers may require using more modern authentication mechanisms like OAuth to replace the traditional username/password method.

Implementation and Application #

Many email client software support the POP3 protocol, including:

  • Microsoft Outlook
  • Mozilla Thunderbird
  • Apple Mail
  • Gmail (can be enabled through settings)

Most mainstream mail service providers (such as Gmail, Yahoo Mail, Outlook.com) also support the POP3 protocol, allowing users to import emails into other clients.

Common Issues and Solutions #

Emails Not Synchronized #

Since POP3 typically deletes emails after downloading, if users wish to retain server copies, they should enable the “Keep server copy” option in client settings.

Login Failure #

Check if the username and password are correct, confirm if two-step verification is enabled, and ensure the client allows non-encrypted connections (some service providers restrict third-party client access).

Duplicate Email Downloads #

This may be due to emails not being correctly marked as deleted, or the QUIT command not being executed in time. It’s recommended to regularly clean up mailbox cache.

With the popularity of cloud computing and mobile office work, IMAP is gradually becoming mainstream due to its better synchronization capabilities and multi-device support. However, POP3 still has advantages in certain specific scenarios, such as situations with limited bandwidth or requiring completely localized email management.

Conclusion #

As a classic and practical email receiving protocol, POP3 has played an important role in the history of electronic mail development. Although it is not as advanced as IMAP in functionality, its simplicity and efficiency make it still irreplaceable in certain application scenarios. For ordinary users, understanding how POP3 works helps to better configure and manage their email accounts.


References

  • RFC 1939: Post Office Protocol - Version 3
  • IETF.org
  • Wikipedia.org
  • Mozilla Thunderbird Help Center
  • Gmail Support Documentation

Alibaba Mail More Products and Services