POP3 stands for Post Office Protocol version 3. It is a protocol that lets a mail client connect to a mail server, download the messages waiting in a mailbox and, optionally, delete them from the server. It is defined in RFC 1939 and is used only for receiving mail: sending is done with SMTP.
POP3 uses port 110 for an unencrypted or STARTTLS-upgraded connection and port 995 for POP3 over TLS (often labelled POP3S or SSL/TLS in client settings). Use 995 whenever the server supports it. If you need the same mailbox on several devices, use IMAP instead, because POP3 is designed around downloading mail to one place.
How POP3 works
A POP3 session moves through three states, defined in the RFC. In the authorisation state the client identifies itself. In the transaction state it lists, reads and marks messages. In the update state, entered when the client quits cleanly, the server actually removes anything marked for deletion. The server replies to every command with +OK or -ERR, followed by text.
- The client opens a connection to the server on port 995 (TLS) or 110.
- It authenticates with
USERandPASS, or with another method the server supports. - It asks how many messages are waiting, then retrieves each with
RETR. - Depending on its setting, it marks retrieved messages with
DELEor leaves them. - It sends
QUIT. The server then deletes the marked messages.
POP3 commands and a sample session
| Command | Purpose |
|---|---|
USER name, PASS secret | Authenticate with a username and password |
STAT | Number of messages and total size |
LIST | Message numbers with their sizes |
RETR n | Retrieve message number n |
DELE n | Mark message n for deletion at the end of the session |
TOP n lines | Retrieve the headers and a number of body lines |
UIDL | Return unique identifiers, which clients use to avoid downloading the same message twice |
CAPA | List the capabilities the server supports (RFC 2449) |
STLS | Upgrade a plain connection to TLS (RFC 2595) |
RSET | Unmark messages marked for deletion |
QUIT | End the session and apply deletions |
S: +OK POP3 server ready
C: USER [email protected]
S: +OK
C: PASS ********
S: +OK Logged in
C: STAT
S: +OK 3 48210
C: LIST
S: +OK 3 messages
S: 1 10240
S: 2 20100
S: 3 17870
S: .
C: RETR 1
S: +OK 10240 octets
S: (message follows, ends with a line containing a single dot)
C: QUIT
S: +OK ByeYou can try a TLS session yourself without a mail client. The credentials travel inside the encrypted connection, but avoid typing real passwords into shared machines.
openssl s_client -connect mail.example.com:995 -crlf -quiet
# then type: USER name, PASS secret, STAT, QUITPOP3 ports and security
| Port | Mode | Notes |
|---|---|---|
| 995 | POP3 over TLS from the first byte | Recommended. Standard setting labelled SSL/TLS in most clients (RFC 8314) |
| 110 | Plain connection, with optional STLS upgrade | Passwords are exposed unless the client upgrades to TLS first |
| 143 and 993 | IMAP and IMAP over TLS | Different protocol; see below |
In a client, choose SSL/TLS with port 995 if offered, or STARTTLS on 110 when the provider documents it. Avoid sending a password on a plain connection. If the server uses a self-signed or mismatched certificate, the client will warn you; fix the certificate rather than clicking through, as explained in mail server certificates. Many providers now require app passwords or OAuth for POP3 and IMAP, so check their current documentation for authentication requirements.
POP3 versus IMAP
| Aspect | POP3 | IMAP |
|---|---|---|
| Where mail lives | Downloaded to the client; server copy optional | Stays on the server; clients show a synchronised view |
| Multiple devices | Poor: each device may download different messages | Designed for it |
| Folders and flags | Inbox only; no server-side folders or read status | Folders, read, flagged and answered status are synchronised |
| Server storage | Low if messages are deleted after download | Higher: the server holds the mailbox |
| Offline access | Everything downloaded is available offline | Depends on the client cache |
| Ports | 110, 995 | 143, 993 |
| Best for | One device, small server quotas, archiving to local storage | Phones, laptops and webmail used together |
Neither protocol sends mail. Outgoing messages use SMTP, so a mail account normally needs both an incoming and an outgoing server. See IMAP, POP3 and SMTP compared and what IMAP is.
How POP3 knows which messages are new
POP3 has no concept of read or unread state on the server. Instead, a client that leaves mail on the server asks for the unique identifier of each message with UIDL and remembers which identifiers it has already downloaded. On the next connection it fetches only identifiers it has not seen. This is why a client that loses its local state, for example after a reinstall or when a new profile is created, may download the whole mailbox again, and why two devices that both leave mail on the server do not know what the other has done.
The same design explains the lack of folders. The protocol sees one list of messages, the inbox. Any folders, filters and labels you see in a POP3 client are created locally by that client and are not stored on the server. If you also use webmail, you will see the server-side inbox only, with no trace of how the desktop client has organised its copies.
Security considerations
- Use port 995, or 110 with a mandatory
STLSupgrade, so that passwords never cross the network in clear text. - Use a unique password or app password for each mail client, so one lost device can be cut off without changing everything.
- Disable POP3 on accounts that do not need it. Every enabled protocol is another path for password guessing.
- Keep clients updated. Mail clients parse untrusted content and are a common target.
- If a mailbox is used only for automated processing, such as importing replies into an application, prefer a purpose-built inbound route. See inbound email processing.
Client settings: leave messages on the server
Most clients have a setting for whether to leave a copy of downloaded mail on the server and for how long. If it is off, messages are removed after download and exist only on that device, so a lost disk means lost mail unless you back it up. If it is on without a limit, the mailbox keeps growing until it hits its quota, and then new messages bounce with a mailbox full error. See mailbox full errors. If you use POP3 on several devices, enable the leave-on-server option on all of them, with a deletion period such as a number of days, and expect each device to show a different set of read and deleted messages.
Typical POP3 settings
| Field | Value |
|---|---|
| Incoming server | Your provider POP3 hostname, such as pop.example.com or mail.example.com |
| Port and security | 995 with SSL/TLS |
| Username | Usually the full email address |
| Password | Mailbox password or app password |
| Outgoing (SMTP) server | Provider hostname on 587 with STARTTLS or 465 with SSL/TLS |
| Leave messages on server | Choose according to the notes above |
The hostnames differ by provider, so take them from the provider's help page. Examples are in Gmail settings, Outlook and Microsoft 365 settings and cPanel email setup.
Troubleshooting POP3
| Problem | Likely cause | Fix |
|---|---|---|
| Cannot connect | Wrong host or port, firewall, or POP3 disabled on the account | Check the settings and that POP3 access is enabled |
| -ERR authentication failed | Wrong password, or the provider requires an app password | Re-enter the password or generate an app password |
| Certificate warning | Name mismatch or self-signed certificate | Use the hostname on the certificate, or install a valid certificate |
| Old mail downloaded again | Client lost its UIDL list or settings were reset | Check the client profile and leave-on-server options |
| Mail missing on another device | Another device downloaded and deleted it | Use IMAP, or leave copies on the server |
| Mailbox full | Messages kept on server without a limit | Delete old mail or set an automatic removal period |
When to use POP3 and next steps
Choose POP3 for a single device that should keep its own local archive, or where the server has very little storage. Choose IMAP for anything else. If you are just starting out, begin with what an email client is and what SMTP is, since sending and receiving use different protocols.
Need a reliable outgoing server for your mail client? Pair POP3 or IMAP for reading with authenticated SMTP on smtp.migosmtp.com for sending.
References and further reading
Frequently asked questions
What is the full form of POP3?
POP3 stands for Post Office Protocol version 3. It downloads email from a mail server to a client.
What ports does POP3 use?
Port 995 is used for POP3 over TLS, which is recommended. Port 110 is the plain port that can be upgraded with STLS.
What is the difference between POP3 and IMAP?
POP3 downloads mail to one device, while IMAP keeps mail on the server and synchronises folders and status across devices.
Does POP3 delete emails from the server?
Only if the client is set to delete them. Many clients can leave copies on the server for a chosen number of days.
Can I send email with POP3?
No. POP3 only receives mail. Sending uses SMTP, with a separate outgoing server in your client settings.