IMAP Explained

A technical explanation of IMAP (Internet Message Access Protocol) — how email clients retrieve and manage email from servers.

IMAP (Internet Message Access Protocol) is the standard protocol for email clients to retrieve and manage email from mail servers. Understanding IMAP helps you understand how your email client syncs with your mail server.

What is IMAP?

IMAP is a client-server protocol that allows email clients to access email stored on a mail server. Unlike POP, which downloads messages to the client, IMAP keeps messages on the server and synchronizes state between multiple clients. This is why you can access the same email from your phone, computer, and webmail and see consistent state.

How IMAP works

  1. Connection establishment. The client connects to the IMAP server on port 143 (standard) or 993 (IMAPS).
  2. Authentication. The client authenticates using username and password (or OAuth tokens).
  3. Mailbox selection. The client selects a mailbox (typically INBOX).
  4. State synchronization. The client fetches message flags, headers, or content as needed.
  5. Operations. The client can read, delete, move, flag, or copy messages. These operations are synchronized with the server.
  6. IDLE mode. Many clients use IMAP IDLE to receive push notifications of new messages.

IMAP versus POP

FeatureIMAPPOP
Message storageKept on serverDownloaded to client
Multi-device syncYesNo
Server-side searchYesNo
Folder managementYesLimited
Bandwidth usageHigher (headers only)Lower (full download)
Offline accessLimitedFull

Key IMAP features

Server-side search: IMAP allows searching messages on the server, useful for large mailboxes.

Folder hierarchy: IMAP supports nested folders for organizing email.

Flags and keywords: Messages can be flagged (read, deleted, flagged) and have custom keywords.

Partial fetching: Clients can fetch just headers or message bodies, reducing bandwidth usage.

Concurrent access: Multiple clients can access the same mailbox simultaneously with state synchronization.

IMAP ports

Port 143: Standard IMAP port. STARTTLS can be used for encryption.

Port 993: IMAPS (IMAP over SSL/TLS). Encrypted from the start.

Temporary email and IMAP

Temporary email services do not expose IMAP access. The inbox is accessed through a web interface that polls for new messages via HTTP. This is a deliberate design choice — IMAP would require account credentials and persistent state, which contradicts the disposable nature of the service. For permanent email, IMAP is the standard for client access.

Questions

Why does IMAP use more bandwidth than POP?
IMAP typically syncs headers first, then bodies on demand, which can result in more network traffic overall. POP downloads everything in one session, which is more bandwidth-efficient for a single device but less flexible for multi-device use.
Can I use IMAP with temporary email?
No. Temporary email services do not provide IMAP access. The service is designed for web-based access only, with automatic expiration. For IMAP access, you need a permanent email account.

Keep reading

Need a throwaway address right now?

Open the generator and a fresh inbox is waiting before the page finishes settling.

Generate a temporary email