The server-name field that should not exist

There is a box in your mail client that has no business being there. It asks for a server name — a fully qualified domain name, if you want the full indignity — and it is still there because a 2011 standards memo could not bring itself to delete the alternative.

That memo is RFC 6186, “Use of SRV Records for Locating Email Submission/Access Services,” published in March 2011 and edited by Cyrus Daboo of Apple. It defines the DNS SRV labels — _submission._tcp, _imap._tcp, _imaps._tcp, _pop3._tcp, _pop3s._tcp — that let a mail client derive an entire configuration from the domain half of an email address. Its stated goal was “minimal information to be entered by a user that would result in automatic configuration,” and “the minimal information entered would be the user’s email address.”

Fifteen years on, the form survives. Not because the SRV mechanism failed, but because RFC 6186 wrote its own fallback into Section 4 and the fallback turned out to be the only part everyone implemented. The standard described the good path, declared it optional, and left the guess standing beside it.

The setup screen DNS was supposed to delete

Every mail client carries the same archaeology: a server name, a port, an encryption choice, and the small question of whether the username is the whole address or just the part before the @. The form exists because for most of the Internet’s life the protocol never told the client where to look.

RFC 6186 opens by describing the damage in plain language. Mail clients “have required users to enter a fully qualified domain name (FQDN) and port information,” and “the way in which server configuration information is specified can differ from MUA to MUA,” which is “confusing to users, leading to errors when inputting the details.”

It also names its rival. Some clients had already gone the other way, adopting “a complex ‘auto-discovery’ process involving probing a domain” — the try-autoconfig., try-autodiscover., try-mail., read whatever XML comes back school of engineering. RFC 6186 proposed something tidier: ask the domain once, in DNS, and be done.

What RFC 6186 actually puts in the zone

The mechanism is deliberately small. A domain publishes an SRV record under a service label, and the record carries a priority, a weight, a port and a target host. The submission example is _submission._tcp SRV 0 1 587 mail.example.com.; IMAP gets _imap for the STARTTLS flavour and _imaps for TLS from the first byte, and POP3 gets the matching pair.

Two details show the design thinking. Priority can “indicate a preference for one message store access protocol over another,” so a provider that would rather you used IMAP than POP3 can say so in DNS instead of in a help page nobody reads. And the TLS rules are not left to chance: when an SRV target is used, the client should send the server name in the handshake and must verify the certificate against that name — which quietly settles the mismatch that made SRV-based TLS awkward in the first place.

Section 4: the sentence that kept the old world

Section 4 is where the memo admits how much it can actually change. A client using these records “need initially only to prompt the user for their email address” — split the address, take the domain, run the lookup, and the configuration falls out of the answer.

Then the fallback: “If an SRV record is not found, the MUA will need to prompt the user to enter the FQDN and port information directly, or use some other heuristic.”

That is the whole history of mail configuration in one sentence. The standard describes the good path, declares the good path optional, and leaves the heuristic standing beside it. A client author reading Section 4 in 2011 learns two things: implement the lookup if you like, and keep the form regardless.

Why a correct standard lost to a form

An SRV record has to be published by the domain, which means somebody at the provider has to decide to publish it. A client has to look it up before it can use it, which means waiting on a query that will usually fail on the Internet as actually configured. And the client’s fallback has to work anyway, for the domain that never published anything.

So the incentives point the wrong way on both sides. The provider that publishes spends effort and saves support calls only from customers whose clients honour the lookup — a population it cannot see. The client that honours the lookup spends a query and still ships the old code path, because the old code path is the one that works everywhere. The user notices nothing until both sides move, and neither side moves first.

There is a name for this in Internet coordination: voluntary adoption. A specification becomes real only when implementations pick it up and counterparties accept them. Lu Heng put the rule bluntly in his Note on minimum specification and voluntary adoption: “A proposal is not reality. A recommendation is not reality. A document is not reality.” RFC 6186 is a document. The form is reality.

Non-adoption, notably, is not a violation. A domain that publishes no SRV records has broken nothing; a client that never queries has broken nothing either. The standard is optional in both directions, which is precisely why it changed so little.

Daboo appears to have learned the lesson. Two years later he edited RFC 6764, the discovery rules for CalDAV and CardDAV, and gave it two routes instead of one: SRV records for the DNS-minded, and a well-known URI for every client that would rather fetch a path. Belt and braces — because by then he knew the belt alone would not hold.

Two authorities for one fact

The deeper argument is about who gets to say where a domain’s mail lives. Without these records, the answer belongs to a vendor’s default: try mail. plus the domain, guess a port, hope. With them, the domain answers and the client only has to ask.

That is a real transfer of authority, and it is small enough to be missed. The record does not create the mailbox; it describes where the mailbox can be reached. But a description everyone consults becomes the map, and a map everyone ignores becomes a rumour — which is roughly the status RFC 6186 has held since 2011.

The setup form is not proof that DNS had no answer. It is proof that an answer nobody is obliged to give looks, from the user’s chair, exactly like silence.