New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
SMTP and APIUpdated 4 Nov 2026

POP3 explained: full form, ports, settings and how it differs from IMAP

POP3 stands for Post Office Protocol version 3. This guide covers how it downloads mail, the ports and security settings to use (110 and 995), the commands behind it, and when IMAP is the better choice.

MO
Written by Mateus Oliveira
Senior SMTP and MTA Engineer
Reviewed by Sofia Marino
  • Published7 Jul 2024
  • Read time7 min
  • Length1,333 words
Share this guide

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.

Full formPost Office Protocol version 3
Ports995 with implicit TLS (recommended), 110 with optional STLS upgrade
BehaviourDownloads mail to the client; removal from the server depends on the client setting
Use IMAP ifYou read mail on more than one device or want folders synchronised

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.

  1. The client opens a connection to the server on port 995 (TLS) or 110.
  2. It authenticates with USER and PASS, or with another method the server supports.
  3. It asks how many messages are waiting, then retrieves each with RETR.
  4. Depending on its setting, it marks retrieved messages with DELE or leaves them.
  5. It sends QUIT. The server then deletes the marked messages.

POP3 commands and a sample session

CommandPurpose
USER name, PASS secretAuthenticate with a username and password
STATNumber of messages and total size
LISTMessage numbers with their sizes
RETR nRetrieve message number n
DELE nMark message n for deletion at the end of the session
TOP n linesRetrieve the headers and a number of body lines
UIDLReturn unique identifiers, which clients use to avoid downloading the same message twice
CAPAList the capabilities the server supports (RFC 2449)
STLSUpgrade a plain connection to TLS (RFC 2595)
RSETUnmark messages marked for deletion
QUITEnd 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 Bye

You 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, QUIT

POP3 ports and security

PortModeNotes
995POP3 over TLS from the first byteRecommended. Standard setting labelled SSL/TLS in most clients (RFC 8314)
110Plain connection, with optional STLS upgradePasswords are exposed unless the client upgrades to TLS first
143 and 993IMAP and IMAP over TLSDifferent 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

AspectPOP3IMAP
Where mail livesDownloaded to the client; server copy optionalStays on the server; clients show a synchronised view
Multiple devicesPoor: each device may download different messagesDesigned for it
Folders and flagsInbox only; no server-side folders or read statusFolders, read, flagged and answered status are synchronised
Server storageLow if messages are deleted after downloadHigher: the server holds the mailbox
Offline accessEverything downloaded is available offlineDepends on the client cache
Ports110, 995143, 993
Best forOne device, small server quotas, archiving to local storagePhones, 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 STLS upgrade, 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

FieldValue
Incoming serverYour provider POP3 hostname, such as pop.example.com or mail.example.com
Port and security995 with SSL/TLS
UsernameUsually the full email address
PasswordMailbox password or app password
Outgoing (SMTP) serverProvider hostname on 587 with STARTTLS or 465 with SSL/TLS
Leave messages on serverChoose 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

ProblemLikely causeFix
Cannot connectWrong host or port, firewall, or POP3 disabled on the accountCheck the settings and that POP3 access is enabled
-ERR authentication failedWrong password, or the provider requires an app passwordRe-enter the password or generate an app password
Certificate warningName mismatch or self-signed certificateUse the hostname on the certificate, or install a valid certificate
Old mail downloaded againClient lost its UIDL list or settings were resetCheck the client profile and leave-on-server options
Mail missing on another deviceAnother device downloaded and deleted itUse IMAP, or leave copies on the server
Mailbox fullMessages kept on server without a limitDelete 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.

Explore the SMTP relay

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.

Topics#pop3#imap#email protocols#mail client#ports
Was this guide helpful?Your answer helps us improve our documentation.

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales