IETF email setup draft adds checks for which account OAuth authorizes
News

Revision 05 of the IETF email setup draft proposes an HTTPS username endpoint that tells a client which account its OAuth access token belongs to. As of December 5, 2026 in Australia, the proposal is not final or production guidance, and it has no adoption or migration deadline.
The change addresses a familiar setup mistake: the browser is already signed into another account, or the user selects an unexpected account during authorization. I see the practical value in making the authorized account visible at first setup and checking it again when an existing account needs new authorization.
What changes in revision 05
The Mail Maintenance working group's PACC revision 05 is titled Automatic Configuration of Email, Calendar, and Contact Server Settings. Its new account check connects configuration data in section 4.3, the client flow in section 5.7 and the username endpoint in section 6.1. Sections 7.6 and 7.7 explain the different risks involved.
The official Datatracker event records the new version as available on December 3, 2026 at 03:05:52 UTC. The document date and rendered history date show December 2. These fields describe the same revision; the event timestamp records its availability in Datatracker.
For client developers, the material change is an identity check after OAuth authorization. For provider teams, it is an endpoint contract that clients can use consistently. Neither the date nor the revision number requires administrators to change deployed email settings.
First setup and reauthorization need different checks
At first setup, the proposed flow retrieves the canonical username associated with the access token and records it with the account configuration. The client should display that username before saving, giving the user a chance to notice that the browser authorized a different account.
On reauthorization, section 5.7 requires a comparison with the stored username. A mismatch blocks use of the new token for that account unless the user explicitly confirms that both usernames identify the same account. A provider changing an account's username is one reason for that exception.
New account
Retrieve the canonical username, show it to the user and record it. The visible identity lets the user cancel an unintended account setup.
Existing account
Compare the returned username with the saved value. A different value requires explicit same-account confirmation before the new token is used.
An entered email address is not the comparison baseline. An alias legitimately differs from the canonical username. Rejecting every difference would turn a supported account arrangement into a setup failure. The proposal instead establishes the returned username as the identity recorded during setup.
I would pay particular attention to the confirmation wording in a staging build. Asking whether this is the same account is more precise than asking whether to continue. A generic confirmation gives the user little reason to inspect the identity that changed.
What the proposed username endpoint returns
Section 4.3 adds usernameEndpoint inside the OAuth configuration object. Section 6.1 describes an HTTPS GET using the access token. A successful response has status 200, the application/json media type and a JSON object containing a valid username string.
A provider with JMAP can use its existing Session resource in supported configurations, provided it satisfies the relevant response and resource-permission requirements. JMAP support alone does not remove those checks. Client teams should test the Session path they actually intend to use.
Illustrative response body, without credentialsjson
{ "username": "canonical-account-id" }
The username must be nonempty, contain no whitespace or control characters and use Unicode NFC. Reauthorization compares the stored and returned values exactly as UTF-8 bytes, without case folding or client-side normalization. These details appear in sections 5.7 and 6.1.
My implementation concern is consistency across setup paths. If an application has separate mail and calendar onboarding screens, the same account-checking logic needs equivalent test coverage. A successful identity lookup on one path should not hide an unchecked path elsewhere.
Permit the destination before sending the token
The proposed endpoint receives an access token, so its destination needs validation before the token is sent. Under sections 6.1 and 7.7, the client must establish that it is a permitted resource server. This applies to the actual requested URL, including a destination reached through a redirect.
When authorization-server metadata contains protected_resources, the endpoint needs a matching entry. Without that metadata property, its host must share the issuer host's registrable domain. The draft also requires a token-free probe before server confirmation to establish the endpoint reached through redirects.
Identity lookup failure stops this authorization
Under the proposal, a failed lookup means the client must not save a new account configuration or use the new access token for an existing account. A destination that is not permitted cannot be bypassed with an account-mismatch confirmation.
That distinction matters when designing error handling. An unavailable endpoint, an invalid response and a resource-permission failure need a clear failure state. Treating identity retrieval as optional would undermine the proposed check, even when the browser authorization itself completed successfully.
Section 7.6 describes the account comparison as protection against mistakes. It is not broad attack prevention: the returned username depends on the endpoint that supplies it. Section 7.7 addresses the separate risk of disclosing a token to an inappropriate destination. Neither safeguard makes every account setup trustworthy.
Four staging tests for client and provider teams
I would evaluate revision 05 in a staging environment with controlled accounts and synthetic account state. The useful evidence is the client's behavior at each decision point, including what it displays and whether it stops before accepting a configuration or new authorization.
These four cases exercise different parts of the proposal. Keep their results separate so a passing alias test does not obscure a failed reauthorization comparison.
- Wrong browser account. Begin setup while the browser has a session for a different test account. Check that the returned canonical username is displayed before saving and that the user can cancel.
- Legitimate alias. Enter an alias that maps to the intended account. Check that a different canonical username is accepted and stored rather than rejected solely because it differs from the entered address.
- Mismatched reauthorization. Authorize a different test account for an existing configuration. Check that the new token is not used unless the user explicitly confirms that the usernames identify the same account.
- Unpermitted redirect. Use a controlled redirect to a resource that is not permitted. Check that the client withholds the token and stops the new setup or authorization.
For reauthorization, include synthetic queued work in the test fixture. The review question is whether accepting a different identity would attach existing local state to another account. Record that outcome without putting access tokens or other credentials in test reports.
Where this fits alongside email authentication
This revision concerns account setup and credentials. It does not change DMARC, SPF, DKIM, MTA-STS or sender policy. Correctly identifying an authorized mailbox and checking the authentication of a delivered message are separate tasks with separate evidence.
Suped is our DMARC and email authentication platform. For the separate sender-side workflow, our email tester examines a real message, while our domain health checker audits DMARC, SPF and DKIM DNS configuration. Those results do not establish which account an OAuth token authorizes.
Suped's October revision 04 coverage addressed DNS/HTTPS delegation and branding, a separate change. Other Mail AutoConfig and OAuth drafts, along with software releases implementing related ideas, are distinct work. Their changes should not be attributed to PACC revision 05 without checking the specific document.
Review the draft in a staging branch
For teams evaluating the proposal, the next useful artifact is a test report covering the displayed identity, stored username and reauthorization decision. Pair client observations with provider-side endpoint results, and identify any path that accepts a configuration after identity retrieval fails.
Keep that work attached to revision 05 so later draft changes can be assessed explicitly. There is no adoption or migration deadline, and this work-in-progress document is not a reason to schedule production changes.
Frequency asked questions
No. It is an Internet-Draft under development in the Mail Maintenance working group. Its proposed requirements are not final or production guidance, and it sets no adoption or migration deadline.
No. The entered address legitimately differs when it is an alias. The proposal records the returned username at setup and compares later authorizations with that stored value.
Yes, in supported configurations that meet the draft's username-response and permitted-resource requirements. Providers should verify those conditions rather than assuming any JMAP Session endpoint qualifies.
The proposed flow stops. It must not save a new account configuration or use the new access token for an existing account. Explicit same-account confirmation applies to a username mismatch, not a failed lookup.
No. The account comparison addresses accidental wrong-account authorization. Token-destination checks address a separate disclosure risk. The revision does not change DMARC or other sender-authentication policies.

