Summary

  • An IMAP mailbox ACL is a list of identifier-and-rights pairs. A logged-in user can match a personal identifier, one or more groups, and anyone at once — so any single entry is only one input to the authorization decision.
  • GETACL shows the rules, LISTRIGHTS shows what a server can grant to an identifier, and MYRIGHTS shows the server's effective answer for the current user. Three different questions, deliberately kept apart.
  • DELETEACL removes an entry; a negative-right identifier subtracts authority during the calculation. RFC 4314 sharpened that distinction while leaving identity combination and negative-right support partly local.

The clean edit that settled nothing

Fred was pulled from the support mailbox on a Tuesday afternoon. By Wednesday morning he could still file messages into it. No server had crashed, no cache had betrayed anyone, and nobody had forgotten to press save. Fred simply belonged to a group that also held write access. The administrator had deleted a row, not a right.

That gap — between the edit on screen and the outcome in the running system — is the whole story of IMAP's access-control extension. Access-control panels tell a comforting story: find the row with the user's name, delete it, save, and the user is gone. The story holds only if that row was the user's sole path to authority, and only if the server has already recomputed the decision.

Shared mailboxes exposed the weakness early. A support queue belongs to a team. A person might hold a direct grant, inherit a second through a group, and receive a third through a public or organisation-wide identity. The rule list described several reasons for access. It was never the final answer.

From remote mailbox to remote permission

RFC 1730 had already turned the remote mailbox into a manipulable network object: clients could select folders, read messages, set flags and alter mailbox state on a server. Once more than one person could work on the same object, access control had to travel through the protocol too. A local filesystem permission visible only to the server operator was no use to a remote mail client that needed to discover what its own user could do.

RFC 2086, published on the Standards Track in January 1997, added that surface. A server announced ACL in its capability list. The extension defined a mailbox ACL as a set of pairs — an identifier and a string of rights — that a client could read and modify without ever learning the server's entire account database.

One session, several names

The apparent simplicity of a pair concealed the real design problem. RFC 2086 reserved anyone for the universal identity, anonymous access included. User names accepted by LOGIN or AUTHENTICATE stood for their corresponding users. Other identifiers could mean groups or any locally defined principal.

Several of those identifiers could apply to the same session at once. Fred might match fred, support-team and anyone simultaneously. The RFC deliberately refused to impose a single universal combination algorithm. One server might take the union of every applicable grant; another might honour only the most specific matching identifier. That choice belonged to the implementation and its local security model.

No client could safely fill the gap. A graphical editor could draw rows, but it could not infer the running server's group membership, forced owner rights or precedence rule. The same visible list could therefore produce different effective outcomes on two perfectly conforming systems.

The protocol's answer was not to centralise identity. It was to expose the final calculation. MYRIGHTS mailbox asked the server which rights the logged-in user actually held for that mailbox — executable-state evidence from the component that would enforce the next command.

Three queries, three layers of truth

The extension separated questions that administration tools love to collapse into one grid.

GETACL returned the identifier-and-rights entries stored for a mailbox. It answered: what rules are declared here? It said nothing about which entries applied to the current user, or how the server combined them.

LISTRIGHTS took a mailbox and an identifier and reported what rights could be granted. Some rights were mandatory; others came in tied sets because the underlying implementation could not separate them. It answered: what changes can this server represent for this principal?

MYRIGHTS returned the current user's effective rights. It answered: after identity matching and local combination, what does the enforcing server say this session may do?

The distinction matters because a control panel can succeed at changing its own model and still fail to change authority. A rule readback proves persistence. A MYRIGHTS readback proves the server's current calculation for one session. Only the attempted mailbox operation establishes whether the action was actually accepted — and even that does not identify the human behind the credentials.

Deleting a reason is not deleting the result

DELETEACL mailbox fred removes the pair for fred. If Fred still holds w through support-team or anyone, the deletion has done exactly what its name says while leaving effective write authority untouched.

RFC 2086 also reserved identifiers beginning with a dash for negative rights, and RFC 4314 sharpened their purpose. An entry such as -fred carrying w subtracts write authority associated with Fred even when another matching identity would otherwise supply it. A negative entry participates in the calculation; DELETEACL merely removes one positive or negative pair.

Negative-right support stayed optional, and that matters. A client could not promise a universal "deny overrides allow" button just because the protocol had a notation for subtraction. It first had to discover what the server supported, then verify the effective result.

Two uses of the minus sign had to stay separate, too. In the rights argument of SETACL, -w means remove w from the selected entry. In the identifier position, -fred denotes a negative-right entry. The first edits a row; the second changes how the calculation may subtract authority. Similar punctuation, entirely different operations.

Narrower rights without abandoning old clients

The first extension used compact letters: lookup, read, seen-state, other flag writes, insert, post, create, delete and administer. Some boundaries were too broad. Implementations disagreed, for instance, about whether c or d controlled deletion of an entire mailbox.

RFC 4314 replaced RFC 2086 in December 2005 and split the ambiguous operations. k governed creation of a child mailbox; x governed deleting or moving a mailbox; t governed setting the message's deleted flag; e governed expunging messages. The old c and d survived as virtual compatibility rights, so an older client received an intelligible projection while a newer server enforced finer distinctions.

That migration is a small history of protocol restraint. The revision did not pretend deployed software could be swapped out overnight. It narrowed authority in the new model, advertised the extra rights through RIGHTS=, and maintained a lossy but defined view for old implementations.

It also imposed a rule on new editors: preserve rights you do not understand if you let a user edit the rest. Otherwise a client built before a new permission existed could read an entry, write back only the letters it recognised, and silently destroy the unknown grant. Extensibility required ignorance to be conservative.

Revocation has a clock, too

Even a correct effective-rights change might not govern an already selected mailbox immediately. RFC 4314 allowed a server to cache rights when a mailbox was selected. After SETACL or DELETEACL, operations such as STORE or EXPUNGE might keep running under the cached decision until the mailbox was selected again.

A server that checked every command could send updated flags, refuse selected-state operations, or close the connection once read access vanished. But the specification did not manufacture one instantaneous distributed revocation point. It identified the session boundary that operators had to test.

Ordering mattered as well. If a client pipelined SETACL and MYRIGHTS, the server had to complete the modification before calculating the reply. The protocol could make one connection's evidence ordered; it could not prove what another session had cached, or what a human client would display.

The list itself is a secret

An ACL was sensitive even when it contained no message text. It could reveal that a mailbox existed, which users or groups existed, and who administered them. RFC 2086 already warned that an unauthorised GETACL must not expose a restricted mailbox. RFC 4314 required the response to look exactly like the response for a nonexistent mailbox when the requester lacked listing authority.

The later RFC also rejected treating read access as enough to inspect the ACL: the identifiers in the list were security information in their own right. And the extension did not encrypt that information. Without STARTTLS, negotiated privacy in authentication or another protection mechanism, ACL data travelled in the clear.

Authorization and confidentiality therefore stayed separate. A correct answer about who may read a mailbox was never a guarantee that the answer itself was private in transit.

A standard honest about its local remainder

RFC 4314 listed its own deficiencies. The method for combining identities stayed implementation-defined. Users, groups and special identifiers inhabited one namespace. A friendly interface could not always explain a server's local model. It lacked the general ownership-changing operations familiar from filesystems.

The document still called the backward-compatible revision worthwhile, because RFC 2086 had already been deployed across multiple implementations. RFC 9051 later defined IMAP4rev2 and kept registered IMAP4rev1 extensions generally usable unless a specification said otherwise. That is continuity of a protocol surface — not evidence that every current mail service implements ACL or negative rights.

The durable result is narrower, and more useful. IMAP never made one rule list sovereign over every mail server. It standardised just enough questions for a client to distinguish declared entries, grantable operations and effective authority — while leaving the executing system responsible for its identity graph and its final decision.

Deletion is an edit. Revocation is a verdict. The protocol's quiet genius was to insist the two never be confused.

Sources