POP3 vs. IMAP: What’s the Difference?
POP3 and IMAP are the two standard protocols that email apps use to read mail from a server. When you add an account to an app such as Outlook, Apple Mail, or Thunderbird, you choose one of them. This article explains how each protocol works, what each is good at, and which to use.
Neither protocol sends mail. Sending always uses SMTP, whichever you choose for reading.
Summary
| POP3 | IMAP | |
|---|---|---|
| Model | Download and (usually) delete | Work on the server copy |
| Where mail lives | On the device | On the server |
| Folders | Inbox only | All server folders |
| Read, flagged, answered status | Not synced | Synced through server-side flags |
| Multiple devices | Poor | Designed for it |
| Offline access | Full, after download | Cached copies, depending on the app |
| Server storage used | Little | All of your mail |
| Partial download | Headers or first lines only | Any part of any message |
| Server-side search | No | Yes |
| New-mail notification | App must check | Push with IDLE |
| Standard ports | 110, or 995 with TLS | 143, or 993 with TLS |
| Current standard | RFC 1939 | RFC 9051 (IMAP4rev2); RFC 3501 (IMAP4rev1) is still widely used |
How POP3 works
POP3 (Post Office Protocol version 3) treats the server as a temporary drop box. The app connects, downloads new messages, and usually asks the server to delete them.
A POP3 session
A POP3 session goes through three states:
- Authorisation. The app signs in, usually with
USERandPASS(or a stronger method such asAPOPor SASL). - Transaction. The app works with the messages in the inbox:
STATreturns the number of messages and their total size.LISTreturns the size of each message.UIDLreturns a unique ID for each message, which lets an app recognise messages it has already downloaded.RETRdownloads a whole message.TOPdownloads only the headers and a set number of body lines.DELEmarks a message for deletion.
- Update. When the app sends
QUIT, the server permanently deletes the marked messages and closes the session. If the connection drops beforeQUIT, nothing is deleted.
What POP3 cannot do
- No folders. POP3 sees only the inbox. Sent items, archives, and other server folders are invisible to it.
- No shared status. There are no flags on the server, so "read", "flagged", or "replied" exist only in the app that downloaded the message.
- No server-side search. To search, the app must download everything first.
- No push. The app has to reconnect and check for new mail on a timer.
"Leave a copy on the server"
Most apps can keep messages on the server after download. The app uses UIDL to remember which messages it has already fetched, and skips them next time. This lets a second device download the same mail, but each device still keeps its own separate copy, folders, and read status. Many apps also offer "remove from server after N days" to stop the server filling up.
Benefits of POP3
- Simple and predictable. A small command set and a short session.
- Full offline access. Every downloaded message is stored locally, independent of the server.
- Low server storage. Mail is removed from the server, which helps on small mailbox quotas.
- Less exposure on the server. Once deleted from the server, mail cannot be read there if the account is compromised later.
- Light on the connection. One short download, then the app can disconnect.
Drawbacks of POP3
- If the device is lost, damaged, or stolen, mail that existed only on that device is gone, unless you have a backup.
- A message read on your phone stays unread on your computer.
- Sent mail and folders exist only on the device where you created them.
How IMAP works
IMAP (Internet Message Access Protocol) treats the server as the master copy of your mailbox. Apps view and change that copy, and every change is visible to every other app connected to the same account.
An IMAP session
An IMAP session is long-lived and stateful. Each command carries a tag, so an app can send several commands without waiting for each reply.
- Not authenticated. The app signs in with
LOGINorAUTHENTICATE.AUTHENTICATEsupports SASL methods, including OAuth 2.0 tokens, which many providers such as Gmail and Microsoft 365 now require or prefer. - Authenticated. The app can list folders (
LIST), create, rename, or delete them, check a folder's status (STATUS), and choose one to work in withSELECT(read-write) orEXAMINE(read-only). - Selected. The app works with the messages in that folder:
FETCHdownloads all or part of a message: headers only, the text body, or a single attachment. Apps can show a message list without downloading full messages.SEARCHruns a search on the server and returns matching messages.STOREsets or clears flags.COPYandMOVEtransfer messages between folders on the server.APPENDuploads a message into a folder. Apps use this to save sent mail and drafts, and migration tools use it to write messages into the destination mailbox.EXPUNGEpermanently removes messages flagged as deleted.
- Logout. The app ends the session with
LOGOUT.
Flags: how read status syncs
Each message on the server carries flags. The standard system flags are:
\Seen: the message has been read.\Answered: you replied to it.\Flagged: marked as important or starred.\Deleted: marked for deletion, removed at the next expunge.\Draft: an unfinished message.
Servers can also allow custom keywords, which some apps use for labels or tags. Because flags live on the server, reading a message on your phone marks it as read on your laptop too.
Unique IDs: how apps stay in step
Every message in a folder has a UID that does not change, plus a folder-level UIDVALIDITY value. Together they let an app tell which messages it already knows and which are new, even across many sessions. If the server ever renumbers a folder, UIDVALIDITY changes and the app knows to resync that folder. Extensions such as CONDSTORE and QRESYNC let apps fetch only what changed since their last connection, which makes resyncing fast.
Push with IDLE
With the IDLE command, the app keeps the connection open and the server notifies it as soon as new mail arrives. No polling is needed.
Benefits of IMAP
- Every device sees the same mailbox: messages, folders, sent items, drafts, and read status.
- Mail survives a lost device, because the master copy is on the server.
- Fast on large mailboxes, because apps download headers first and fetch bodies or attachments only when opened.
- Server-side search across mail that is not on the device.
- Instant notifications through IDLE.
- Works with webmail: what you do in the app matches what you see in the browser.
Drawbacks of IMAP
- Server storage. All your mail stays on the server and counts against your quota.
- Depends on the connection. Without a connection, you see only what the app has cached.
- Deletions sync too. Deleting a message on one device deletes it everywhere. IMAP is synchronisation, not a backup.
Security
Both protocols can be encrypted with TLS in two ways:
- Implicit TLS on dedicated ports: 995 for POP3 and 993 for IMAP. The connection is encrypted from the start. This is the recommended setup.
- STARTTLS on the standard ports, 110 and 143: the connection starts unencrypted, then upgrades to TLS.
Never use either protocol without TLS, because your password and mail would cross the network in plain text. If your account uses two-factor authentication, you usually need an app password or an OAuth sign-in rather than your normal password.
Which should you use?
Use IMAP if:
- You read mail on more than one device, or also use webmail.
- You use folders and want them everywhere.
- You want your mail to survive a lost or broken device.
This is the right choice for most people.
POP3 is still reasonable if:
- You use only one device and want a full local copy.
- Your server storage is very small and you need to move mail off it.
- You want mail removed from the server once you have downloaded it.
If you choose POP3 because of storage limits, consider upgrading your plan instead, or moving to a provider with more storage and using IMAP.
Why MailMigrata uses IMAP
MailMigrata migrates mailboxes over IMAP only. A migration needs everything POP3 cannot provide:
- All folders, not just the inbox, so you can choose which to copy.
- Flags, so read and answered status are kept.
- Stable message identities, so messages already in the destination can be skipped as duplicates.
- Write access to folders (
APPEND), so messages can be placed into folders in the destination.
Most servers that offer POP3 also offer IMAP. If you use POP3 today, enable IMAP on the account before you migrate. Mail that a POP3 app has already downloaded and deleted from the server is no longer on the server, so MailMigrata cannot copy it. To include it, upload it back to the server from the app first, for example by connecting the same app over IMAP and moving the local folders to the server.