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

IMAP vs POP3 vs SMTP: Email Protocols Compared, With Ports, Security and When to Use Each

SMTP sends email, while IMAP and POP3 read it. IMAP keeps mail on the server and syncs devices, and POP3 downloads it to one device. This guide compares the three protocols in a table, shows how they work together, explains when to choose IMAP or POP3, lists ports and security settings, and clears up common setup mix-ups.

IR
Written by Ishita Rao
Email Authentication Engineer
Reviewed by Karan Malhotra
  • Published1 Oct 2026
  • Read time6 min
  • Length1,186 words
Share this guide

IMAP, POP3 and SMTP are the three protocols behind email. SMTP sends mail. IMAP and POP3 read it: IMAP keeps mail on the server and syncs it across your devices, while POP3 downloads it to one device. A normal mail account uses SMTP for outgoing mail plus either IMAP or POP3 for incoming mail. This guide compares the three protocols, shows when to pick IMAP or POP3, lists the ports and security modes, and explains how the pieces fit together when you set up an email account or an application.

SMTPsend: moves mail from you to the server and between servers
IMAPread and sync: mail stays on the server, every device matches
POP3download: mail is fetched to one device, usually removed from the server

Email protocols at a glance

SMTPIMAPPOP3
Full nameSimple Mail Transfer ProtocolInternet Message Access ProtocolPost Office Protocol, version 3
DirectionOutgoingIncomingIncoming
Main jobSend and relay mailRead and manage mail on the serverDownload mail to a device
Mail storedPasses through; not a mailboxOn the serverOn the device, often removed from the server
Typical ports587, 465 (submission); 25 (server to server)993 (TLS), 143 (STARTTLS)995 (TLS), 110 (STARTTLS)
SpecificationRFC 5321RFC 3501, RFC 9051RFC 1939

How the three protocols work together

Imagine you write a message to a friend. Your email app hands it to your provider's outgoing server using SMTP. That server finds your friend's provider using DNS and delivers the message to it, again over SMTP. The message lands in your friend's mailbox on that provider's server. When your friend opens their email app, it uses IMAP or POP3 to fetch the message from the mailbox. SMTP carried the message, and IMAP or POP3 collected it. No single protocol does both jobs.

Our guides to SMTP and IMAP go into each in detail, and the article on the mail transfer agent shows what happens in the middle.

IMAP vs POP3: which should you choose?

Choose IMAP if you read email on more than one device, if you want sent mail, drafts and folders to stay in sync, or if you want your mail to be available on the web. IMAP is the default for most providers today.

Choose POP3 if you read mail on a single computer, want messages stored locally, and have limited server storage. POP3 also suits older systems and some devices that only support it. If you use POP3, check whether it deletes mail from the server after download, because that decides whether other devices can still see it. Many clients offer a setting to leave a copy on the server for a number of days.

Your situationBetter choice
Phone, laptop and web mailIMAP
Shared mailbox used by a teamIMAP
One old computer, local archive, small server quotaPOP3
Device that supports only one protocolWhichever it supports

Where SMTP fits when you read mail with IMAP or POP3

When you set up an email account manually, the app asks for two servers. The incoming server is IMAP or POP3. The outgoing server is SMTP. They often have different names, such as imap.example.com and smtp.example.com, and different ports. A common mistake is to enter the incoming server name for both. If you can read mail but cannot send, check the outgoing settings first. Read SMTP settings, ports and authentication for what each field means.

Security for all three

All three protocols were designed before encryption was everywhere. Modern use needs TLS on every connection. Use implicit TLS ports where available: 993 for IMAP, 995 for POP3 and 465 for SMTP submission. Or use the STARTTLS ports (143, 110 and 587) with encryption required. Never use a plain-text option with a real password. RFC 8314 explains why implicit TLS is the preferred approach. Read email SSL and TLS explained for the details and how to test.

Many providers now require app-specific passwords or OAuth for IMAP, POP3 and SMTP, because ordinary passwords are easy to steal. If your login fails with a correct password, check that.

Other ways to read and send email

  • Webmail uses a browser. You do not need IMAP or SMTP settings, because the web application talks to the server itself.
  • Exchange ActiveSync and similar proprietary protocols are used by some corporate systems.
  • Email APIs let an application send mail with an HTTP call instead of SMTP. See SMTP or API.
  • Inbound webhooks deliver incoming mail to an application as an HTTP request instead of through IMAP. See inbound email processing.

Common mix-ups

  • "My app can receive but not send." The IMAP or POP3 settings are right and the SMTP settings are wrong.
  • "My sent mail does not appear on my phone." With IMAP, the app must save sent messages to a Sent folder on the server. With POP3, sent mail stays on the device that sent it.
  • "I deleted mail on my phone and it is still on my laptop." This suggests POP3, or a client that is not syncing.
  • "Which protocol sends newsletters?" SMTP, or an email API. Neither IMAP nor POP3 sends anything.

Rule of thumb: SMTP out, IMAP in. Pick POP3 only if you have a reason to keep mail on one device.

For applications that send email

If you are building an application, only SMTP, or an API, matters for sending. Use a hosted service so that authentication, retries and reputation are handled for you. See SMTP servers vs SMTP services and our SMTP relay.

POP3 in more detail

POP3, the Post Office Protocol version 3, is older and simpler than IMAP. After login, the client asks the server how many messages there are, retrieves them one by one, and may tell the server to delete them. The classic commands are USER and PASS to log in, STAT and LIST to see what is waiting, RETR to fetch a message, DELE to mark one for deletion and QUIT to end the session and apply the deletions. Because POP3 has no concept of folders on the server or of per-message flags, two devices using it cannot easily agree on what has been read. Some clients mitigate this by leaving copies on the server for a time. POP3 is specified in RFC 1939, and its encrypted port is 995.

A typical set of settings

These values show the shape of a complete setup. The names are placeholders, and your provider's help page has the real ones.

PurposeProtocolServerPortSecurity
Incoming (recommended)IMAPimap.example.com993SSL/TLS
Incoming (alternative)POP3pop.example.com995SSL/TLS
OutgoingSMTPsmtp.example.com587STARTTLS

A short timeline

SMTP appeared first, in 1982, to move mail between systems. POP followed in the early 1980s so that people with a personal computer could collect mail from a server. IMAP arrived in the mid-1980s to let people manage mail on the server from several places, and it grew in importance as people moved to webmail and mobile devices. The three have been revised several times, but their roles have stayed the same, which is why a setup from twenty years ago still looks familiar.

Setting up email for an app or a domain? Tell us what you need to send and read, and we will tell you which protocol and settings to use.

Ask us

References and further reading

Frequently asked questions

What is the difference between IMAP, POP3 and SMTP?

SMTP sends mail. IMAP and POP3 read it: IMAP keeps mail on the server and syncs it across devices, and POP3 downloads it to one device and often removes it from the server.

Is IMAP better than POP3?

For most people, yes, because it keeps mail and its state in sync across phone, laptop and web. POP3 suits a single computer with local storage or devices that only support it.

Do I need SMTP if I use IMAP?

Yes. IMAP only reads mail. To send mail you need an outgoing SMTP server in the same account.

What ports do IMAP, POP3 and SMTP use?

IMAP uses 993 with TLS or 143 with STARTTLS. POP3 uses 995 with TLS or 110 with STARTTLS. SMTP submission uses 587 with STARTTLS or 465 with TLS.

Why can I receive email but not send it?

The incoming IMAP or POP3 settings are probably correct but the outgoing SMTP settings are wrong. Check the SMTP host name, port, security mode and credentials.

Topics#imap#pop3#smtp#email protocols#imap vs pop3#email ports#email security
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