You set up your work email on a new laptop, and suddenly your phone’s inbox is empty. Or you file an email into a folder on your phone, and your desktop never sees it.
Both come down to one setting: IMAP or POP3. We ran our own mail server, sent it messages over SMTP, then connected an IMAP “phone” and a POP3 “desktop” to one mailbox.
The POP3 client emptied the inbox for every other device in one sync. Here’s how each email protocol works and which one to choose.
IMAP vs POP3 vs SMTP: the short answer
SMTP sends email. IMAP and POP3 fetch it. You always need SMTP plus one of the other two.
- SMTP (Simple Mail Transfer Protocol) moves mail from your app to your mail server, and from server to server across the internet.
- IMAP (Internet Message Access Protocol) lets your apps view and manage mail that stays on the server, so every device stays in sync.
- POP3 (Post Office Protocol version 3) downloads mail to one device, usually deleting it from the server afterwards.
| SMTP | IMAP | POP3 | |
|---|---|---|---|
| Job | Sends mail | Reads mail on the server | Downloads mail to one device |
| Mail stays on server | n/a | Yes | Usually deleted |
| Syncs across devices | n/a | Yes | No |
| Sees folders | n/a | Yes | Inbox only |
| Secure port | 587 or 465 | 993 | 995 |
| Best for | Every account | Almost everyone | One-device archives |
Our test: one mailbox, three protocols
We set up a mail server on our test machine: Dovecot for IMAP and POP3, plus a small SMTP server that delivered into the same mailbox. Then we scripted the clients so every step was repeatable.
| Step | What we did | What happened |
|---|---|---|
| 1 | Sent 3 emails over SMTP | Server replied 250, accepted for delivery |
| 2 | IMAP laptop opened 1 email and filed it in a new folder | Change saved on the server |
| 3 | IMAP phone connected | 3 messages, 2 unread, Receipts folder visible |
| 4 | POP3 desktop downloaded and deleted | Saw 3 inbox messages, no folders |
| 5 | IMAP phone checked again | 0 messages in the inbox |
| 6 | POP3 with leave-a-copy, 3 new emails | All 3 kept, but all marked read |
SMTP: sending the messages
We sent three emails over SMTP: an invoice, a lunch invite and a login code. SMTP’s only job was to hand them to the server and get back “250 Message accepted for delivery”. It never shows you an inbox, because receiving isn’t its job.
IMAP: two devices, one inbox
Our “laptop” connected over IMAP, opened the invoice, created a folder called Receipts and filed a copy there.
Then our “phone” connected over IMAP. It saw all 3 messages, with 2 unread. The read status set on the laptop had already synced, because IMAP keeps that state on the server. The Receipts folder was there too.

POP3: download and delete
Then a “desktop” connected over POP3, using the classic default of downloading messages and removing them from the server.
POP3 saw 3 messages in the inbox and nothing else. It has no idea folders exist. It downloaded all three and deleted them from the server.
When the phone checked again over IMAP, its inbox showed 0 messages. That’s the vanishing-email problem in one step. Only the copy filed in Receipts survived, because POP3 never touches folders.
POP3 with “leave a copy on server”
Most mail apps offer a “leave a copy of messages on the server” option for POP3. We sent three new messages and downloaded them that way.
All three stayed on the server, but the IMAP phone then showed 0 unread. The POP3 download had marked them as read on the server, even though nobody on the phone had opened them. Leaving a copy prevents deletion, not confusion.

What the protocols actually say
Email protocols are plain text conversations, which makes them easy to watch. Here’s the full SMTP exchange when we sent one message to our test server by hand:
S: 220 localhost Python SMTP 1.4.6
C: EHLO laptop.lab.test
S: 250-localhost
S: 250-SIZE 33554432
S: 250-8BITMIME
S: 250-SMTPUTF8
S: 250 HELP
C: MAIL FROM:<[email protected]>
S: 250 OK
C: RCPT TO:<[email protected]>
S: 250 OK
C: DATA
S: 354 End data with <CR><LF>.<CR><LF>
C: (headers, body, then a line with a single dot)
S: 250 Message accepted for delivery
C: QUIT
S: 221 Bye
Every reply starts with a three-digit code. 2xx means success, 3xx means “go on”, 4xx is a temporary failure and 5xx is permanent. When a mail app shows “550 mailbox unavailable” or “535 authentication failed”, that’s the server’s SMTP reply passed straight through.
IMAP and POP3 have their own short command sets. You’ll never type them, but knowing they exist explains how each one behaves:
| Job | IMAP command | POP3 command |
|---|---|---|
| Log in | LOGIN | USER and PASS |
| Count messages | SELECT INBOX | STAT |
| Download a message | FETCH | RETR |
| Headers only | FETCH with header fields | TOP n 0 |
| Search on the server | SEARCH | None |
| Folders | CREATE, LIST, COPY | None |
| Read, flagged, answered | STORE flags | None |
| Wait for new mail | IDLE | None |
| Delete | STORE \\Deleted, then EXPUNGE | DELE |
The gap in that table is the whole story. POP3 has no command for folders, flags or searching. It can list, download and delete. Everything else IMAP does, POP3 simply can’t express.
The attachment test: what each protocol downloads
To see the bandwidth difference, we sent a message with a 2 MB attachment and two short notes, then synced the inbox both ways.
| What the app did | Data transferred | Time |
|---|---|---|
| IMAP: sync headers for 4 messages | 229 bytes | 4 ms |
| IMAP: open the big email’s text | 17 bytes | Instant |
| IMAP: search subjects for “invoice” | Only the match number | 0.3 ms |
| POP3: normal download of 4 messages | 2,870,808 bytes | 23 ms |
| POP3: headers only with TOP | 598 bytes | Instant |
IMAP fetched the sender, subject and date of all four messages in 229 bytes. Opening the text of the big message took another 17 bytes. The attachment stayed on the server until someone tapped it.
POP3’s normal sync pulled down 2.87 MB, every byte of every message. On a phone with limited data, or a laptop on hotel Wi-Fi, that’s the difference between a quick check and a long wait.
Notice the size jump too. The 2 MB file became a 2.87 MB message, because email encodes attachments as text (base64), which adds about 37%. That’s why a 20 MB file can bounce off a provider with a 25 MB limit.
POP3 does have a TOP command that fetches headers only. In our test, it got all four headers in 598 bytes. Few mail apps use it, though, and it can’t fetch one part of a message later the way IMAP can.
Push email: how IMAP delivers new mail instantly
IMAP has a command called IDLE. Your app opens a connection, says “tell me when something changes”, and waits. When new mail lands, the server pushes a notice down that open line.
We timed it. Our IMAP client sat in IDLE while a script delivered a new message over SMTP. The client received * 5 EXISTS, the server’s way of saying “the inbox now has five messages”, 506 milliseconds after delivery.
POP3 has nothing like it. A POP3 app has to log in and ask on a timer, often every 5 to 15 minutes. That’s why POP3 accounts feel slow: the mail arrived, but your app hasn’t asked yet.
Why sent mail doesn’t show on your other devices
Here’s a problem IMAP users hit all the time: you send an email from your laptop, and it’s missing from the Sent folder on your phone.
Our test showed why. After sending messages over SMTP, our mailbox had one folder, INBOX. SMTP delivers mail to the recipient; it doesn’t keep a copy for you.
The Sent folder is your mail app’s job. After sending over SMTP, a well-behaved app uploads a copy to the server’s Sent folder with the IMAP APPEND command. We did that by hand, and the copy appeared for every device.
So if sent mail is missing elsewhere, check two things. Is the account set up as IMAP, not POP3? And is the app’s Sent folder mapped to the server’s Sent folder, not a local one?
Gmail’s own servers save a copy of mail you send through them, so Gmail users rarely see this. Many hosting mailboxes rely on the app.
How IMAP deletes: flag first, then expunge
Deleting over IMAP is a two-step process, and it explains a lot of odd behaviour.
| Step | Messages in inbox | Marked deleted |
|---|---|---|
| Before | 5 | 0 |
After flagging one \\Deleted | 5 | 1 |
After EXPUNGE | 4 | 0 |
When we deleted a message, the inbox still held all five. One was simply flagged \Deleted. Only after the EXPUNGE command did it actually go, leaving four.
Most modern apps do both steps at once, or move the message to Trash instead. Some older setups, including certain Outlook and Thunderbird settings, show deleted messages with a line through them until you “compact” or “purge” the folder. That isn’t a bug; it’s the first step without the second.
How SMTP works
SMTP is the delivery truck of email. When you hit Send:
- Your mail app connects to your provider’s SMTP server and logs in.
- The server looks up the recipient domain’s MX record in DNS to find which server accepts its mail.
- It hands the message to that server over SMTP.
- The receiving server checks SPF, DKIM and DMARC, then files the message in the recipient’s mailbox.
From there, the recipient’s apps fetch it with IMAP or POP3. If your messages land in spam, the problem is usually in step 4, which our guides to SPF, DKIM and DMARC and email deliverability cover.
SMTP ports
You’ll be asked for an SMTP port when setting up a mail app or a website form:
- 587: the standard port for sending mail from apps, with STARTTLS encryption. Use this by default.
- 465: SMTP over TLS from the first byte. Also secure, and many providers support it.
- 25: the port servers use to talk to each other. Many ISPs and cloud hosts block it for regular users to stop spam.
How IMAP works
With IMAP, the server is the master copy. Your apps show a live view of it and send every change back: read, unread, flagged, moved, deleted.
That’s why our phone saw the laptop’s changes instantly. It’s also why IMAP uses server storage: every email and attachment stays there until you delete it.
IMAP uses port 993 with TLS encryption. Plain port 143 exists but shouldn’t be used without encryption.
How POP3 works
POP3 comes from the dial-up days, when you connected briefly, grabbed your mail and disconnected. It treats the server as a temporary holding area.
Your app downloads new messages from the inbox, then usually deletes them from the server. After that, the email lives only on that one device. Lose the laptop without a backup, and the mail is gone.
POP3 uses port 995 with TLS encryption, or 110 without it.
IMAP vs POP3: which should you use?
Use IMAP in almost every case. If you read email on more than one device, or you want folders, flags and read status to stay in sync, IMAP is the only option that works. It’s what Gmail, Outlook.com, Zoho and nearly every hosting provider recommend.
Use POP3 only for narrow cases:
- Your server storage is tiny and you need to clear it.
- You want a local-only archive on one computer, and you back it up.
- An old app or device supports nothing else.
If you must use POP3 alongside other devices, turn on “leave a copy on server”, and expect read status to get muddled.
How to switch from POP3 to IMAP
You can’t change an existing account’s protocol in most mail apps. You add the account again:
- Back up first if POP3 has been deleting mail, because those messages exist only on that device.
- Add the account again in your mail app and pick IMAP, with port 993 and SSL/TLS.
- Set SMTP to port 587 with STARTTLS, or 465 with SSL.
- Check that folders and mail appear, then remove the old POP3 account.
To move old POP3 mail back to the server, drag it from the local folders into the IMAP inbox.
IMAP isn’t a backup
IMAP’s biggest strength has a catch. Because every device mirrors the server, a mistake on one device happens everywhere. Delete a folder on your phone, and it’s gone from your laptop seconds later. Our delete test showed the server’s count drop from five to four for every connected client at once.
That makes IMAP great for convenience and poor as a safety net. If the mailbox gets wiped, hacked or hits a provider error, every synced copy follows.
A sensible setup keeps IMAP for daily use and adds one real backup:
- Export the mailbox now and then. Most webmail and hosting panels offer an export or archive download.
- Copy important folders into local folders in a desktop app like Thunderbird. Local folders don’t sync, so they survive a server deletion.
- Use a migration tool such as imapsync when moving hosts, so nothing relies on one copy during the switch.
This is also the one honest argument for POP3. A POP3 download to one backed-up computer is a separate copy. It’s just a poor way to read mail day to day.
How to set up IMAP by hand in any mail app
Most apps fill in settings automatically. When they don’t, or when they pick POP3, use manual setup:
Manual IMAP setup
The same fields appear in Outlook, Thunderbird, Apple Mail and Android mail apps.
-
Step 1 of 5
Choose manual or advanced setup
Start adding the account, then pick the option for manual, advanced or other account. Choose IMAP when asked for the account type.
-
Step 2 of 5
Enter the incoming server
Use your provider’s IMAP hostname, port 993 and SSL/TLS. The username is usually your full email address.
-
Step 3 of 5
Enter the outgoing server
Use the SMTP hostname, port 587 with STARTTLS or 465 with SSL/TLS, and turn on authentication with the same username.
-
Step 4 of 5
Sign in
Use the provider’s sign-in window if one appears. If the app only asks for a password, create an app password in your account’s security settings.
-
Step 5 of 5
Map the special folders
In the account settings, point Sent, Drafts and Trash at the server folders so every device shares them.
If the test fails, check the error against the table above before changing more than one setting.
Server settings for popular email providers
These are the standard settings for common providers. Many now require you to sign in through the provider’s own login screen (OAuth) or to create an app password, rather than typing your normal password into the mail app.
| Provider | IMAP | SMTP | POP3 |
|---|---|---|---|
| Gmail | imap.gmail.com : 993 | smtp.gmail.com : 587 or 465 | pop.gmail.com : 995 |
| Outlook.com | outlook.office365.com : 993 | smtp-mail.outlook.com : 587 | outlook.office365.com : 995 |
| Yahoo Mail | imap.mail.yahoo.com : 993 | smtp.mail.yahoo.com : 465 or 587 | pop.mail.yahoo.com : 995 |
| iCloud Mail | imap.mail.me.com : 993 | smtp.mail.me.com : 587 | Not offered |
| Zoho Mail | imap.zoho.com : 993 | smtp.zoho.com : 465 or 587 | pop.zoho.com : 995 |
| Hostinger email | imap.hostinger.com : 993 | smtp.hostinger.com : 465 | pop.hostinger.com : 995 |
Your own domain’s email works the same way, with the server names your host gives you. If you’re not sure which provider handles your mail, look up your domain’s MX record. Our guide to how DNS works explains what that lookup returns.
Common email setup errors and how to fix them
| Error or symptom | Likely cause | Fix |
|---|---|---|
| 535 authentication failed | Wrong password, or the provider needs an app password | Create an app password or use the OAuth sign-in |
| Can’t connect on port 25 | ISP or cloud host blocks it | Use 587 with STARTTLS or 465 with SSL |
| Certificate warning on connect | Server name doesn’t match the certificate | Use the provider’s exact hostname |
| Inbox empty on other devices | A POP3 client deleted the mail | Switch every device to IMAP; recover from the POP3 device |
| Duplicate messages | POP3 with leave-a-copy on several devices | Move all devices to IMAP |
| Sent mail missing elsewhere | App saves sent copies locally | Map Sent to the server folder over IMAP |
| Deleted mail shows struck through | IMAP flag set, no expunge | Purge or compact the folder, or move to Trash |
| 552 message size exceeds limit | Attachment too big after encoding | Share a link instead of attaching |
Most of these come down to the wrong port, the wrong encryption setting, or a provider that wants an app password. Change one setting at a time, so you know which change fixed it.
Beyond IMAP: Exchange, ActiveSync and JMAP
IMAP isn’t the only way to read mail. Microsoft 365 and Outlook use Exchange protocols, which sync mail, calendar and contacts together, and phones often connect through Exchange ActiveSync. If your work account is on Microsoft 365, the Outlook app will usually pick Exchange over IMAP on its own.
JMAP is a newer open standard that does IMAP’s job over a modern web API, with push built in. Fastmail uses it, but few other providers do yet.
For a personal or small-business mailbox on a host like Zoho, Hostinger or Google Workspace, IMAP plus SMTP remains the setup that works with every app.
Where SMTP services fit in
Your mailbox provider’s SMTP server is fine for everyday email. For bulk or automated mail, such as newsletters, password resets and order confirmations, businesses use a dedicated sending service with better deliverability tools and higher limits.
Heads-up: our SendGrid and Brevo links are affiliate links. If you buy through them, DroidCrunch earns a commission at no extra cost to you.
SendGrid is a popular SMTP and email API service for developers sending app notifications, and our SendGrid review covers its plans. Brevo combines marketing email with a transactional SMTP relay; see our Brevo review. If you’re sending cold outreach, our guide to building a cold email outreach system explains why you should keep it off your main domain.
Frequently asked questions
Is Gmail IMAP or POP3?
Gmail supports both, but its own apps and most third-party mail apps use IMAP by default. You can turn POP download on in Gmail’s settings under Forwarding and POP/IMAP. If you add Gmail to Outlook or Apple Mail, choose IMAP so your mail stays in sync with your phone.
Do I need SMTP if I use IMAP?
Yes. IMAP only reads and manages mail on the server; it can’t send anything. Every mail app needs SMTP settings for outgoing mail too. Most providers use the same server name for both, with port 993 for IMAP and 587 or 465 for SMTP.
What is an SMTP server?
An SMTP server is the mail server that accepts outgoing email from your app and passes it on toward the recipient’s server. Your email provider runs one, and services like SendGrid or Brevo offer SMTP relays for sending bulk or automated mail from websites and apps.
Is IMAP more secure than POP3?
Neither is more secure by design; both are safe when encrypted with TLS on ports 993 and 995. The difference is where mail lives. IMAP keeps it on your provider’s server, while POP3 moves it to your device, where your own backups and disk encryption protect it.
Why are my emails disappearing from my phone?
Usually because another device uses POP3 and deletes messages after downloading them. In our test, one POP3 sync emptied the inbox for an IMAP phone. Switch every device to IMAP, or set the POP3 client to leave a copy on the server.
Can I use IMAP and POP3 at the same time?
Yes, on the same account, but it gets messy. As our test showed, a POP3 client can delete mail other devices need, and even with a copy left on the server it can mark messages read. Pick IMAP everywhere unless you have a specific reason.
What port should I use for SMTP?
Use port 587 with STARTTLS for sending from mail apps and websites. Port 465 with SSL also works with most providers. Avoid port 25 for app sending; it’s meant for server-to-server delivery, and many ISPs and cloud hosts block it.
Can I get back emails that POP3 deleted from the server?
Usually only from the device that downloaded them. Open that mail app, find the messages in its local inbox, and drag them into an IMAP folder to upload them again. Some providers keep deleted mail for a few days, so check the webmail Trash or a restore option too.
Does IMAP work offline?
Yes. Most mail apps keep a local copy of recent messages, so you can read and write offline. Changes like moving or deleting are queued and sent to the server when you reconnect. What you can’t do offline is open messages or attachments the app never downloaded.
The bottom line
SMTP sends, IMAP and POP3 receive. In our test, IMAP kept two devices perfectly in sync, while a single POP3 download emptied the inbox for everyone else and ignored folders entirely.
For almost everyone, the right setup is IMAP on port 993 for receiving and SMTP on port 587 for sending. Keep POP3 for a single-device archive you back up.
If your mail ever vanished from one device after setting up another, now you know why.



