Access Management in E-Mail Systems

Access management in email systems is the practice of controlling who may connect to a mail server, who may send through it, and who may read which mailbox. It covers three separate questions that are often treated as one:

  1. Who may deliver mail to us? Inbound access, controlled at the SMTP connection by ACLs and blocklists.
  2. Who may send mail through us? Outbound access, controlled by SMTP authentication on the submission service.
  3. Who may read this mailbox? Mailbox access, controlled by IMAP/POP authentication and per-folder permissions.

Getting the second one wrong is what turns a mail server into a source of abuse. Getting the third one wrong exposes mail; getting the first wrong mostly means more spam in the inbox.

Who may send mail through the server?

The dividing line is the port. Port 25 is for server-to-server transfer and accepts mail for local recipients from anyone; ports 587 and 465 are the submission service, and there authentication is mandatory.

Conflating them is the classic open relay: a server that accepts mail for arbitrary destinations on port 25 without authentication. The relevant controls are:

How is inbound access controlled?

Inbound access management is decided during the SMTP conversation, before the message body is accepted:

Allow lists and deny lists: when to use which

A deny list is the default posture for a public mail server: accept from everyone, reject known-bad. It scales to the open internet, and it is what DNSBLs are built for.

An allow list inverts the default and only makes sense where the set of legitimate senders is closed and known:

The failure modes differ. A stale deny list lets spam through, which is annoying. A stale allow list silently bypasses every check beneath it, which is how an entry added years ago for a since-decommissioned partner becomes a hole. Allow list entries should therefore be as narrow as possible, dated, and reviewed.

What about mailbox access?

Mailbox access is a different system with different failure modes. It is governed by IMAP or POP authentication and, for shared and delegated mailboxes, by per-folder ACLs.

Two practices matter more than the rest. First, shared mailboxes such as info@, sales@ or abuse@ should have their access grants reviewed when people change roles, since delegation is added far more often than it is removed. Second, legacy IMAP and SMTP clients that cannot do modern authentication force the use of app passwords — those are full-strength credentials with no second factor, and they are what credential-stuffing attacks target.

What should be monitored?

Access management is not a configuration you finish. The things worth alerting on are: