Imap explained

Internet Message Access Protocol
he Internet Message Access Protocol (commonly known as IMAP or IMAP4, and previously called Internet Mail Access Protocol, Interactive Mail Access Protocol (RFC 1064), and Interim Mail Access Protocol) is an application layer Internet protocol operating on port 143 that allows a local client to access e-mail on a remote server. The current version, IMAP version 4 revision 1 (IMAP4rev1), is defined by RFC 3501. IMAP4 and POP3 (Post Office Protocol version 3) are the two most prevalent Internet standard protocols for e-mail retrieval. Virtually all modern e-mail clients and servers support both.

E-mail protocols
IMAP supports both connected and disconnected modes of operation. E-mail clients using IMAP generally leave messages on the server until the user explicitly deletes them. This and other facets of IMAP operation allow multiple clients to access the same mailbox. Most e-mail clients support either POP3 or IMAP to retrieve messages; however, fewer Internet Service Providers (ISPs) support IMAP. IMAP4 offers access to the mail store; the client may store local copies of the messages, but these are considered to be a temporary cache; the server's store is authoritative.

E-mail messages are generally sent to an e-mail server that stores received messages in the recipient's e-mail mailbox, see email hosting companies. The user later retrieves these messages with either a web browser or an e-mail client that uses one of a number of e-mail retrieval protocols. While some clients and servers preferentially use vendor specific, typically proprietary protocols, most support the Internet standard protocols SMTP for sending e-mail and POP3 and IMAP4 for retrieving e-mail, allowing interoperability with other servers and clients. For example, Microsoft's Outlook client typically uses a proprietary protocol to communicate with an Exchange server as does IBM's Notes client when communicating with a Domino server, but all of these products also support SMTP, POP3, and IMAP4. Support for the Internet standard protocols allows many other e-mail clients such as Qualcomm's Eudora or Mozilla Thunderbird (see comparison of e-mail clients) to access these servers and similarly allows the clients to be used with other servers (see list of mail servers).

E-mail clients can generally be configured to use either POP3 or IMAP4 to retrieve e-mail and in both cases use SMTP for sending. Most e-mail programs can also use Lightweight Directory Access Protocol (LDAP) for directory services.

Nearly all subscribers to individual Internet service provider e-mail accounts access their e-mail with client software that uses POP3.

IMAP is often used in large networks; for example, a college campus mail system. IMAP allows users to access new messages instantly on their computers, since the mail is stored on the network. With POP3, users either download the e-mail to their computer or access it via the web. Both methods take longer than IMAP, and the user must either download any new mail or "refresh" the page to see the new messages.

IMAP was designed by Mark Crispin in 1986 [2] as a remote Mailbox protocol, in contrast to the widely used POP, a protocol for retrieving the contents of a Mailbox.

Original IMAP
The original Interim Mail Access Protocol was implemented as a Xerox Lisp Machine client and a TOPS-20 server.
No copies of the original interim protocol or its software exist; all known installations of the original protocol were updated to IMAP2. Although some of its commands and responses were similar to IMAP2, the interim protocol lacked command/response tagging and thus its syntax was incompatible with all other versions of IMAP.

The interim protocol was quickly replaced by the Interactive Mail Access Protocol (IMAP2), defined in RFC 1064 and later updated by RFC 1176. IMAP2 introduced command/response tagging and was the first publicly distributed version.

With the advent of MIME, IMAP2 was extended to support MIME body structures and add mailbox management functionality (create, delete, rename, message upload) that was absent in IMAP2. This experimental revision was called IMAP2bis; its specification was never published in non-draft form. Early versions of Pine were widely distributed with IMAP2bis support (Pine 4.00 and later supports IMAP4rev1).

An IMAP Working Group formed in the IETF in the early 1990s and took over responsibility for the IMAP2bis design. The IMAP WG decided to rename IMAP2bis to IMAP4 to avoid confusion with a competing IMAP3 proposal from another group that never got off the ground. The expansion of the IMAP acronym also changed to the Internet Message Access Protocol.

Some design flaws in the original IMAP4 (defined by RFC 1730) that came out in implementation experience led to its revision and replacement by IMAP4rev1 two years later. There were very few IMAP4 client or server implementations due to its short lifetime.

The current version of IMAP since 1996, IMAP version 4 revision 1 (IMAP4rev1), is defined by RFC 3501 which revised the earlier RFC 2060.

IMAP4rev1 is upwards compatible with IMAP2 and IMAP2bis; and is largely upwards-compatible with IMAP4. However, the older versions are either extinct or nearly so.

Unlike many older Internet protocols, IMAP4 natively supports encrypted login mechanisms. Plain-text transmission of passwords in IMAP4 is also possible. Because the encryption mechanism to be used must be agreed between the server and client, plain-text passwords are used in some combinations of clients and servers (typically Microsoft Windows clients and non-Windows servers). It is also possible to encrypt IMAP4 traffic using SSL, either by tunneling IMAP4 communications over SSL on port 993, or by issuing STARTTLS within an established IMAP4 session (see RFC 2595).

IMAP4 works over a TCP/IP connection using network port 143.

Advantages over POP3
Connected and disconnected modes of operation
When using POP3, clients typically connect to the e-mail server briefly, only as long as it takes to download new messages. When using IMAP4, clients often stay connected as long as the user interface is active and download message content on demand. For users with many or large messages, this IMAP4 usage pattern can result in faster response times.

Multiple clients simultaneously connected to the same mailbox
The POP3 protocol requires the currently connected client to be the only client connected to the mailbox. In contrast, the IMAP protocol specifically allows simultaneous access by multiple clients and provides mechanisms for clients to detect changes made to the mailbox by other, concurrently connected, clients.

Access to MIME message parts and partial fetch
Nearly all internet e-mail is transmitted in MIME format, allowing messages to have a tree structure where the leaf nodes are any of a variety of single part content types and the non-leaf nodes are any of a variety of multipart types. The IMAP4 protocol allows clients to separately retrieve any of the individual MIME parts and also to retrieve portions of either individual parts or the entire message. These mechanisms allow clients to retrieve the text portion of a message without retrieving attached files or to stream content as it is being fetched.

Message state information
Through the use of flags defined in the IMAP4 protocol clients can keep track of message state, for example whether or not the message has been read, replied to, or deleted. These flags are stored on the server, so different clients accessing the same mailbox at different times can detect state changes made by other clients. POP3 provides no mechanism for clients to store such state information on the server so if a single user accesses a mailbox with two different POP3 clients state information, such as whether a message has been accessed, cannot be synchronized between the clients. The IMAP4 protocol supports both pre-defined system flags and client defined keywords, System flags indicate state information such as whether a message has been read. Keywords, which are not supported by all IMAP servers, allow messages to be given one or more tags whose meaning is up to the client. Adding user created tags to messages is an operation supported by some Webmail services, such as Gmail, although generally not using IMAP.

Multiple mailboxes on the server
IMAP4 clients can create, rename, and/or delete mailboxes (usually presented to the user as folders) on the server, and move messages between mailboxes. Multiple mailbox support also allows servers to provide access to shared and public folders.

Server-side searches
IMAP4 provides a mechanism for a client to ask the server to search for messages meeting a variety of criteria. This mechanism avoids requiring clients to download every message in the mailbox in order to perform these searches.

Built-in extension mechanism
Reflecting the experience of earlier Internet protocols, IMAP4 defines an explicit mechanism by which it may be extended. Many extensions to the base protocol have been proposed and are in common use. IMAP2bis did not have an extension mechanism, and POP3 now has one defined by RFC 2449.

Disadvantages of IMAP
Compared to POP3, IMAP4 is a very complicated protocol. Implementing IMAP is more difficult and error-prone than implementing POP3 for both client and server implementations at least in part because IMAP allows multiple clients to be connected to the same mailbox simultaneously. Despite this complexity, many modern email servers and clients use IMAP as their default access method.

Unless the mail store and searching algorithms on the server are carefully implemented, a client can potentially consume large amounts of server resources when searching massive mailboxes.

IMAP4 clients need to explicitly request new email message content potentially causing additional delays on slow connections such as those commonly used by mobile devices. A private proposal, push IMAP, would extend IMAP to implement push e-mail by sending the entire message instead of just a notification. However, push IMAP has not been generally accepted and current IETF work has addressed the problem in other ways (see the Lemonade Profile for more information).

Unlike some proprietary protocols which combine sending and retrieval operations, sending a message and saving a copy in a server-side folder with a base-level IMAP client requires transmitting the message content twice, once to SMTP for delivery and a second time to IMAP to store in a sent mail folder. This is remedied by a set of extensions defined by the IETF LEMONADE Working Group for mobile devices: URLAUTH (RFC 4467) and CATENATE (RFC 4469) in IMAP and BURL (RFC 4468) in SMTP-SUBMISSION. POP3 servers don't support server-side folders so clients have no choice but to store sent items on the client. IMAP clients can be configured to store sent mail in a client-side folder. In addition to the LEMONADE "trio", Courier Mail Server offers a non-standard method of sending using IMAP by copying an outgoing message to a dedicated outbox folder.

Common Server implementations
The following IMAP-servers are common:
- Binc IMAP - uses Maildir format, designed to be familiar for users of qmail and qmail-pop3d
- Citadel
- CommuniGate Pro
- Courier Mail Server - uses Maildir format.
- Cyrus IMAP server - a "black box" server that provides access through POP3 and IMAP
- DBMail - includes an IMAP server that stores mail in an SQL database
- Dovecot - Secure IMAP server
- FirstClass Server - FirstClass Server
- hMailServer - Free email server for Microsoft Windows
- IBM Lotus Domino Server
- Kerio MailServer
- MailEnable
- Mailtraq
- Merak Mail Server
- MDaemon
- Mirapoint Email Appliance
- Microsoft Exchange Server
- Openwave Email MX
- Novell GroupWise
- UW IMAP - supports multiple formats including mbox, mbx, MMDF, tenex, mtx, MH, mx, and Usenet news spools.

Common Client implementations
The following IMAP-clients are common (see also Comparison of e-mail clients):
=> text-based clients:
- UW PINE - one of the first IMAP clients
- Mutt - e-mail client found in many Linux distributions
=> GUI clients:
- Apple Mail
- The Bat!
- Novell Evolution
- Novell GroupWise Windows Client
- Forte Agent
- KMail
- Eudora (e-mail client)
- Microsoft Outlook Express
- Microsoft Outlook
- Mozilla Thunderbird
- Mulberry
- Pegasus Mail
- Opera Mail
- SeaMonkey Mail
- Becky
=> Web-based clients:
- Squirrelmail
- RoundCube

The following Web-based e-mail services support IMAP access:
- AOL Mail
- AOL Instant Messenger
- Apple's .Mac
- FastMail
- FuseMail
- Runbox

The following clients support IMAP on a Treo
- ChatterEmail
- Snappermail
- PaPi-Mail E

<-- Previous | Home Glossary | Next -->

📣 Latest tweets mentioning Imap

📖 Latest blogs mentioning Imap

🏆 Alexa 7,700,826 - 📅 - POP VS IMAP - 1. Email Storage 2. Synchronization 3. Internet Connection 4. Use Case 5. Backup and Security In summary, the choice between POP and IMAP depends on how you need to access your emails and from which devices. IMAP is generally better […] The post ... Icon 🏆 Alexa 728,311 - 📅 - Outlook for Windows (2022) - Outlook for Windows is a free email client for Windows 10 and later. It is made to quickly connect with Microsoft’s own email services, but can be used with any IMAP mail server like those used at LMi. Outlook for Windows is installed by default on ... Icon 🏆 Alexa 495,542 - 📅 - Install RoundCube Webmail OpenLiteSpeed Ubuntu Postfix Server - In this article, we are going to learn how to install Roundcube on our OpenLiteSpeed Ubuntu Postfix server. This is Part Five of our Postfix series. In part one we installed Postfix to an Ubuntu VPS Server. For Part Two, we installed Dovecot to ... Icon 🏆 Alexa 495,542 - 📅 - Install Dovecot IMAP/POP3 Server on Postfix With TLS - In the first article, we learnt how to install Postfix on our Ubuntu NVMe VPS Server. We configured Postfix to send a simple email. We’ve completed the basic SMTP configuration but currently, there is no encryption or IMAP server to use. In this ... Icon 🏆 Alexa 30,441 - 📅 - IMAP vs POP3: Key Differences and Ideal Uses - IMAP and POP3 both dictate how email clients like Gmail and Outlook retrieve, store and organize emails. Why then are there two options? Icon 🏆 Alexa 919,762 - 📅 - Fix common IMAP errors when adding email to your device - You may encounter IMAP errors when adding your email address to email application on your devices. Normally IMAP errors can be fixed by adjusting settings on the email application on your device. Cannot connect using SSL The cannot connect using … ... Icon 🏆 Alexa 919,762 - 📅 - Add your email address to Apple Mail - You can add your Skystra hosted email to the Apple Mail email application on your devices using IMAP. Mac Computer To connect your email address to Apple Mail using IMAP on a Mac computer, follow these steps: 1. Open Apple … Read More The post Add ...

📋 Latest news about Imap

Secure Email via IMAPs, SMTPs, and POP3s now supported by SiteGround - 📅 - SiteGround ( web hosting company has recently announced the upgrade of their IMAP, POP3 and SMTP services. As part of its main goal to ensure the most secure and reliable web hosting environment, the company has dedicated time and resources into upgrading its email service by implementing an encrypted ...