LLMpediaThe first transparent, open encyclopedia generated by LLMs

IMAP

Generated by DeepSeek V3.2
Note: This article was automatically generated by a large language model (LLM) from purely parametric knowledge (no retrieval). It may contain inaccuracies or hallucinations. This encyclopedia is part of a research project currently under review.
Article Genealogy
Expansion Funnel Raw 47 → Dedup 0 → NER 0 → Enqueued 0
1. Extracted47
2. After dedup0 (None)
3. After NER0 ()
4. Enqueued0 ()
IMAP
NameInternet Message Access Protocol
DeveloperMark Crispin
Introduced0 1986
Osi layerApplication layer
Port143, 993 (TLS)
RfcsRFC 3501, RFC 9051

IMAP. The Internet Message Access Protocol is a standard Internet protocol used by email clients to retrieve messages from a mail server. Developed in 1986 by Mark Crispin as an alternative to the older POP, it allows users to view and manipulate messages as if they were stored locally, while they remain on the server. This client-server model enables access from multiple devices, forming a cornerstone of modern, synchronized email communication.

Overview

The protocol was conceived at the Stanford University by Mark Crispin during his work on the TOPS-20 operating system. Unlike simpler protocols, it provides extensive functionality for managing a remote mailbox, allowing operations like creating, deleting, and renaming mailboxes directly on the server. This design is fundamental to the way modern webmail services like Gmail and Outlook.com operate, keeping all messages and folder states synchronized across devices. Its development and standardization have been managed by the Internet Engineering Task Force, with key documents published as Request for Comments. The protocol has evolved through several versions, with IMAP4 being the most widely deployed revision.

Technical details

By default, the protocol operates on TCP port 143, with a secure variant using Transport Layer Security on port 993. Communication consists of a series of commands and responses between the client and server; for example, the `SELECT` command opens a mailbox, while `FETCH` retrieves specific message data. It supports several authentication mechanisms, including the simple `LOGIN` command and more secure methods like CRAM-MD5 and OAuth. A key feature is its ability to fetch parts of a message, such as just the headers or a specific MIME attachment, without downloading the entire body, which conserves bandwidth. The current specification is defined in RFC 9051.

Comparison with POP3

The primary difference from the POP3 protocol is the treatment of the mail server. While POP3 is generally designed to download messages to a local device and then delete them from the server, this protocol maintains messages centrally. This allows a user on an iPhone to see the same read/unread message states and folder organization as on a Microsoft Windows laptop. POP3 is often considered a "store-and-forward" service, whereas this protocol provides continuous, interactive access to a remote mailbox. Consequently, it is the preferred protocol for multi-device access and is universally supported by major providers like Apple, Google, and Microsoft.

Security considerations

Early implementations used plaintext passwords, making sessions vulnerable to packet sniffing on networks. The use of Transport Layer Security to create an encrypted tunnel is now considered essential for secure access. The protocol supports the Simple Authentication and Security Layer framework for integrating stronger authentication methods. Vulnerabilities, such as those allowing buffer overflow attacks, have been discovered in various server software over the years, including in the University of Washington's Cyrus IMAP server. Administrators must ensure proper configuration of TLS certificates and keep server software like Dovecot or Cyrus IMAP server updated to mitigate risks.

Implementations and support

Numerous server implementations exist, with open-source options like Dovecot and the Cyrus IMAP server being highly popular. Commercial Unix systems often feature servers based on the original work from the University of Washington. On the client side, support is ubiquitous across software including Mozilla Thunderbird, Microsoft Outlook, and the default mail applications on iOS and Android. Major cloud email platforms from AWS, Google Workspace, and Microsoft 365 provide full support. The protocol's extensions, such as IMAP IDLE for push notifications, are widely implemented to enhance functionality. Category:Internet mail protocols Category:Application layer protocols Category:Internet standards