What is POP3?
POP3 is the simplest way to collect email. Your mail app logs in, downloads the waiting messages and usually deletes them from the server. After that the mail lives on that one device.
It has only a handful of commands and two replies, +OK and -ERR. That made it perfect for dial-up days when you paid by the minute. Today most people use IMAP so every device sees the same inbox, but POP3 is still offered by most providers.
Think of it like this. POP3 is like a letterbox at your gate. You open it, take all the letters inside and the box is empty again. If your partner checks the box later, there is nothing left for them to read.
Step by step
Normal
5 stepsMateo's desktop mail app downloads three new mails and deletes them from the server.
Normal
5 stepsMateo's desktop mail app downloads three new mails and deletes them from the server.
- 1
Connect with TLS
Port 995
The app opens a TCP connection to port 995 and starts TLS straight away. The server greets with +OK.
- 2
Log in
USER and PASS
The app sends the username, then the password. If they match, the server locks the mailbox for this session.
- 3
How much mail?
STAT and LIST
STAT gives the number of messages and their total size. LIST gives the size of each, so the app can show progress.
- 4
Download and delete
RETR, then DELE
RETR downloads a whole message. DELE marks it for deletion. Nothing is deleted yet: POP3 waits for QUIT.
- 5
QUIT
Deletions happen now
On QUIT the server enters its update stage and removes the marked mails. The mail now lives only on the desktop.
Second device
3 stepsLater Mateo checks mail on his phone, but the inbox is empty: the desktop already took everything.
Second device
3 stepsLater Mateo checks mail on his phone, but the inbox is empty: the desktop already took everything.
- 1
Phone logs in
Same mailbox, other device
The phone connects to the same POP3 server with the same login.
- 2
Nothing there
STAT says 0
The desktop downloaded and deleted the mails this morning. To the server, the mailbox is now empty.
- 3
Why
POP3 does not sync
POP3 was built for one computer that picks up mail like a letterbox. Use IMAP for several devices, or tick leave a copy on the server, which uses UIDL to avoid duplicates.
Connection lost
3 stepsThe Wi-Fi drops before QUIT, so the server deletes nothing and the next check downloads the same mail again.
Connection lost
3 stepsThe Wi-Fi drops before QUIT, so the server deletes nothing and the next check downloads the same mail again.
- 1
Download and mark
RETR 1 and DELE 1
The phone downloads message 1 and marks it for deletion, as usual.
- 2
Line drops
QUIT never arrives
The Wi-Fi drops. The QUIT is lost, so the server never reaches its update stage. RFC 1939 says the marked mails must then stay.
- 3
Next check
UIDL avoids duplicates
The next time, the mail is still on the server. A careful app sends UIDL, which gives each mail a permanent id, sees it already has that one and skips it. Without UIDL you get duplicates.
Myths and mix-ups
- POP3 does not always delete mail from the server; most apps offer to leave a copy there.
- DELE does not delete straight away; deletions happen only after QUIT.
- POP3 is not unsafe by itself; on port 995 the whole session is encrypted.
- POP3 does not sync read status or folders; that is what IMAP is for.
Try it yourself
Run these on your own computer to see POP3 at work.
Talk to a POP3 server
openssl s_client -connect pop.example.com:995 -crlf -quietReplace the host with your provider's POP3 server. Type CAPA and press Enter to list its features, then QUIT.
Check the certificate
openssl s_client -connect pop.example.com:995 -servername pop.example.com </dev/null | openssl x509 -noout -subject -enddateShows who the certificate belongs to and when it expires.
Find leave a copy on server
Open your mail app's account settings, then the incoming server (POP) sectionTurn it on if you read mail on more than one device.
POP3 at a glance
- Layer
- Application (7)
- Port
- 995 (TLS from the start); 110 plain or with STARTTLS (STLS)
- Transport
- TCP
- Replies
- +OK or -ERR, multi-line answers end with a dot
- Main commands
- USER, PASS, STAT, LIST, RETR, DELE, UIDL, QUIT
- Folders and sync
- None, inbox only
- Current spec
- RFC 1939 (1996)
Defined inRFC 1939RFC 2449RFC 2595RFC 8314
Header fields
What POP3 puts in its messages, with example values from the stories above.
POP3
- Status
+OKThe greeting. POP3 has no numbered codes, only +OK and -ERR.- Text
POP3 server ready- Command
USERUSER and PASS are the simplest login in POP3. They must only be used inside TLS.- Argument
mateo@example.com
Test yourself
Which port does POP3 with TLS from the start use?
Questions people ask
Should I use POP3 or IMAP?
Use IMAP if you read mail on more than one device or want folders and read status synced. Use POP3 if you want mail stored on one computer and removed from the server.
What port does POP3 use?
Port 995 for POP3 over TLS, which is the safe choice. Port 110 is plain POP3, which should only be used with STLS to switch on encryption.
Does POP3 delete emails from the server?
By default many apps delete after download, but you can choose to leave a copy on the server. The server only deletes mail the app marked with DELE, and only after QUIT.
Why am I getting duplicate emails with POP3?
If the connection drops before QUIT, nothing is deleted and the app may download the same mail again. Apps that use UIDL avoid this.
Can POP3 send email?
No. POP3 only collects mail. Sending always uses SMTP, usually on port 587 or 465.