What IMAP is
IMAP is how an email client reads a mailbox that lives on somebody else’s server. The messages stay where they are; the client holds a copy and keeps it in step.
What the protocol actually does
IMAP stands for Internet Message Access Protocol, and the word that matters in it is access. The mailbox belongs to the server; IMAP is the language a client speaks to look at it. The client asks which folders exist, which messages are in them, which have been read, which are flagged — and then asks for the parts of a message it needs. A list view needs a few headers, so that is all it fetches; the body comes when you open the message.
Because the mailbox stays on the server, every client sees the same mailbox. Read a message on your phone and it is read on your laptop, because “read” is a flag stored on the server rather than a note kept by one program. Move a message to a folder and it has moved for everyone. That is the whole difference between IMAP and the older POP3, which hands a client the messages and forgets them.
The settings a client asks for
Four things: the host, the port, whether the connection is encrypted, and the credentials. The host is the server name your provider documents (imap.gmail.com, outlook.office365.com, imap.mail.me.com). The port tells the client when encryption starts rather than how strong it is.
| Port | Encryption | When to use it |
|---|---|---|
| 993 | Implicit TLS — encrypted from the first byte | Prefer this one |
| 143 | STARTTLS — upgrades after connecting | Where 993 is not offered |
What IMAP does not do
It does not send mail. Sending is SMTP, on a different port, usually with the same credentials — which is why a mail client asks you for two servers and why mail can arrive but refuse to go out. It does not deduplicate, thread or search across accounts either: one connection is one mailbox, and anything that spans several mailboxes is the client’s own work.
It also does not promise the same folders everywhere. Providers disagree about where sent mail and drafts go, and about whether a deleted message is flagged or moved, so two clients on the same mailbox can present it differently. A well-behaved client asks the server which folders have which role rather than guessing from their names.
How a client keeps its copy in step
Every message in an IMAP folder has a number that does not change, and the folder itself carries a token saying those numbers are still valid. A client stores both, so on reconnecting it can ask for what arrived since rather than reading the folder again. If the server says the token has changed — because the folder was rebuilt — the client knows its numbering is worthless and starts that folder afresh.
Two optional extensions do most of the work people notice. One lets a client ask what changed since a given point, flags included, instead of comparing everything. The other lets it wait on an open connection and be told the moment a message arrives, which is why mail appears without anybody pressing refresh. Where a server offers neither, a client has to poll, and new mail is as fresh as the interval allows.
Common questions
Is IMAP still the standard?
Yes. Every mainstream provider offers it, and it is what any mail client uses unless it has a proprietary API to talk to instead.
Does IMAP download my whole mailbox?
Only what a client asks for. Most clients keep headers for everything and bodies for what you have opened or for a recent window, which is why a mailbox is usable before it has finished syncing.
Can two programs use IMAP on the same mailbox at once?
Yes, that is the point of it. Some providers cap how many connections one account may hold open, which is why a client that opens one per folder can be refused.
Is IMAP encrypted?
The connection is, on port 993 or with STARTTLS on 143. The messages themselves are not: IMAP is transport, not end-to-end encryption.
Keep reading
One IMAP mailbox is easy. Six is the problem
Mailbind holds every mailbox you connect in one list, and replies from the address the message arrived at.
Free plan, two mailboxes, no card.
Page updated November 12, 2026