POP3 (Post Office Protocol version 3) is an application-layer protocol used by email clients to retrieve messages from a remote server over a TCP/IP connection. Built on a store-and-forward model, the mail server acts as a temporary holding area until the client downloads the messages to a local device. Once downloaded, messages are typically deleted from the server, making POP3 ideal for offline access and minimizing server-side storage usage.
How it works
POP3 operates over TCP, listening on port 110 for unencrypted connections (which can be upgraded via STLS) and port 995 for implicit SSL/TLS encryption. Unlike IMAP, POP3 does not synchronize folder structures or message flags—such as read, unread, or replied statuses—across multiple devices. Furthermore, POP3 only accesses the primary Inbox; any custom server-side folders or spam directories remain invisible to the client.
Every POP3 connection progresses through three sequential states:
- Authorization: Immediately after the TCP handshake, the server greets the client, and the client authenticates using plain-text
USERandPASScommands (or encoded credentials viaAUTH). - Transaction: Once authenticated, the client acquires an exclusive lock on the maildrop. It checks mailbox totals with
STAT, enumerates message sizes withLIST, downloads full emails viaRETR, and flags messages for removal usingDELE. - Update: When the client sends the
QUITcommand, the server permanently purges all messages marked for deletion, releases the maildrop lock, and closes the TCP connection.
Example
You can inspect a raw POP3 session directly from a terminal using OpenSSL to connect over encrypted port 995. Below is an abbreviated interactive session showing the three protocol states in action:
$ openssl s_client -connect mail.example.com:995 -quiet
+OK Dovecot ready.
USER [email protected]
+OK
PASS correct-horse-battery-staple
+OK Logged in.
STAT
+OK 2 4820
RETR 1
+OK 2410 octets
Return-Path: <[email protected]>
Subject: Server Maintenance Window
...
.
DELE 1
+OK Marked to be deleted.
QUIT
+OK Logging out, messages deleted.
In this exchange, the client logs in, discovers two messages totaling 4,820 bytes, downloads the first message, marks it for deletion, and triggers the final purge upon issuing QUIT.
What matters when choosing a server or hosting
When configuring mail servers like Dovecot or Postfix, or selecting managed email hosting, verify how the environment handles POP3 security and storage:
- Enforced TLS: Ensure port
995(POP3S) is enabled with a valid TLS certificate, and disable unencrypted authentication on port110unlessSTLSis strictly required. - Maildrop locking behavior: Because POP3 locks the mailbox during the Transaction state, simultaneous connections from two devices can cause lock contention or failed syncs.
- Retention overrides: Check whether the hosting provider enforces server-side retention policies that override a client's deletion commands, or if storage quotas are tight enough that prompt POP3 purging is advantageous.
Common mistakes
- Enabling "Leave a copy on server" on multiple devices: When several clients poll the same POP3 inbox without deleting messages, each device downloads duplicate copies independently and never sees replies sent from other machines.
- Exposing plain-text port 110: Allowing unencrypted
USERandPASScommands over public networks exposes mailbox credentials to packet sniffing. - Expecting sent items or subfolders to back up: Because POP3 only pulls from the Inbox, migrating a POP3 account to a new computer will lose sent emails and organized folders unless the user manually exports their local mail archive (such as a PST or MBOX file).
FAQ
Does POP3 send emails as well as receive them?
No. POP3 is strictly a retrieval protocol. Email clients must use a separate protocol—almost always SMTP on port 587 or 465—to submit outgoing messages to a mail server.
Why did my emails disappear from webmail after setting up a desktop client?
By default, most email clients issue the DELE command immediately after downloading messages via POP3. Once the client sends QUIT, the server permanently removes those messages from your webmail Inbox.
When should I choose POP3 over IMAP?
Choose POP3 if you check email from a single primary computer, need reliable offline access to your entire archive, or use a hosting plan with very limited server disk space.