| Internet-Draft | MCEP | December 2026 |
| Matsuda | Expires 4 June 2027 | [Page] |
Traditional email infrastructure follows an open-by-default model in which any sender can transmit messages to any known recipient address without the recipient's prior consent. Domain-level authentication mechanisms such as SPF, DKIM, and DMARC establish which domain a message comes from, but not whether the recipient agreed to receive it. Attackers therefore exploit leaked addresses and lookalike domains, while probabilistic spam filters either deliver phishing messages or silently quarantine legitimate transactional notifications.¶
This document specifies the Mutual Consent Email Protocol (MCEP), a consent-bound email authentication framework built on 1-to-1 Pairwise Bindings established by explicit recipient approval. Each message to a protected address carries a signature that the receiving mail service provider verifies against that binding. For addresses of the "strict" class, a message without a valid signature is rejected during the SMTP transaction (SMTP 550) rather than quarantined; other classes follow recipient policy. MCEP complements SPF, DKIM, and DMARC, relies on existing mechanisms for keys and transport security without defining a new certificate format, and mitigates phishing and spoofing even when a recipient address has leaked.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 4 June 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Legacy email follows an opportunistic reachability model based on the Simple Mail Transfer Protocol (SMTP) [RFC5321]: once a recipient address is exposed - such as in a data breach - any sender can transmit to it. Existing authentication extensions - SPF [RFC7208], DKIM [RFC6376], and DMARC [RFC9989] - verify domain alignment but do not establish whether the recipient has consented to receive messages from a specific sender, nor do they bind a specific sender-recipient relationship to dedicated cryptographic keys. Consequently, attackers can still exploit leaked addresses and lookalike domains to evade detection, leaving recipients to rely on heuristic content filtering that may either pass crafted phishing messages or silently quarantine critical notifications.¶
MCEP shifts email security to an explicit-consent architecture over HTTPS and SMTP without requiring a central ledger. The protocol is symmetric: every MCEP-capable Mail Service Provider (MSP) publishes its configuration in the same manner whether acting as a sender or a receiver, establishing explicit cryptographic boundaries:¶
This version favors simplicity. Features beyond the minimum needed to bind messages to a consent relationship, to reject unverified messages, and to bound replay are intentionally left out and can be added in later versions. Internationalized email addresses are out of scope in this version. Throughout this document, "consent" is used as a specific technical term defined in Section 1.1.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
SPF [RFC7208], DKIM [RFC6376], and DMARC [RFC9989] authenticate the domain of a message. They do not allow a recipient to express which senders the recipient has agreed to receive mail from. A message from an attacker-controlled lookalike domain, or from a sender the recipient has never interacted with, passes all three if the attacker configures that domain correctly. MCEP additionally authenticates the consent relationship between a specific recipient address and a specific sender, and is intended to be used together with SPF, DKIM, and DMARC.¶
Table 1 compares outcomes. "Pass" means the message passes or is not stopped by the mechanism; "None" or "Fail" means the authentication check finds no valid signature or fails alignment (leaving rejection decisions to DMARC or local policy); and "Reject" means the message is rejected or detected. The MCEP column assumes Strict Reject (Section 4.6).¶
| # | Scenario | SPF | DKIM | DMARC | MCEP |
|---|---|---|---|---|---|
| 1 | Simple spoofing of a domain's From address | Fail | None / Fail | Reject (note 1) | Reject |
| 2 | Attacker-registered lookalike domain | Pass | Pass | Pass | Reject |
| 3 | Message to a leaked address from a third party | Pass | Pass | Pass | Reject |
| 4 | Non-MCEP sender to a protected address | Pass | Pass | Pass | Reject |
| 5 | Compromise of a registered sender's Operational Key | Pass | Pass | Pass | Pass (note 2) |
| 6 | Compromise of the recipient's MSP | - | - | - | Not mitigated (note 3) |
In monitoring mode (Section 4.5), "Reject" means "recorded and delivered". MCEP does not protect against compromise of a registered sender's signing infrastructure before revocation, against a recipient who approves a fraudulent registration, or against compromise of the recipient's MSP.¶
MCEP operates across two planes: an out-of-band HTTPS control plane for endpoint discovery, registration, key rotation, and revocation, and an in-band SMTP data plane carrying cryptographic headers verified by the inbound MTA (e.g., via Milter).¶
As an illustrative reference model, recipient enforcement policies can be represented internally as a 32-bit unsigned bitmask (uint32_t) composed of individual behavioral flags (implementations MAY use any equivalent internal representation):¶
The enforcement mode and handling of unverified messages are configured per recipient address by the mailbox owner (within the modes offered by their MSP).¶
Combining these flags defines the logical address classes and operational modes:¶
Each valid enforcement mode above (0x00, 0x01,
0x02, 0x03, 0x06, and
0x07) MAY additionally be combined with
0x10 (MCEP_FLAG_MONITOR_ONLY, yielding 0x10, 0x11,
0x12, 0x13, 0x16, or 0x17). Because 0x04 (MCEP_FLAG_ALLOWLIST_BYPASS)
has no additional effect unless 0x02 is set, implementations encountering redundant
combinations (0x04, 0x05, 0x14, or 0x15) MUST either reject them
as configuration errors or log a warning and treat them as equivalent to 0x00,
0x01, 0x10, and 0x11, respectively.¶
An MSP supporting MCEP MUST publish a JSON configuration document (media type "application/json") at the well-known HTTPS URI [RFC8615]:¶
https://example.com/.well-known/mcep-configuration¶
In addition, the domain SHOULD publish a DNS TXT record at "_mcep.<domain>" advertising the protocol version, the SHA-256 fingerprint of the configuration document, and (if configured) the SHA-256 fingerprint of its Root Identity Key. DNSSEC is RECOMMENDED. When a DNS TXT record is present, the retrieving client MUST verify that the retrieved configuration document matches the advertised fingerprints. If the computed SHA-256 digest of the retrieved JSON document or "root_public_key" does not match the advertised "cfg" or "rk" value (which can occur transiently due to DNS TTL caching skew during configuration updates), the client MUST reject the mismatched document, MUST treat the event as a transient retrieval failure (retaining any previously cached configuration until refreshed), and MUST NOT treat the domain as non-capable of MCEP.¶
When published, the "_mcep.<domain>" DNS TXT record consists of semicolon-separated "tag=value" pairs (whitespace around semicolons ignored):¶
The JSON configuration object defines the fields listed in Table 2:¶
| Field | Requirement | Type | Description |
|---|---|---|---|
version
|
REQUIRED | Integer | Protocol version number (1). |
issuer
|
REQUIRED | String (URI) | Authoritative HTTPS origin URI ("https://<domain>" with no trailing slash, query, or fragment). |
registration_uri
|
REQUIRED | String (URI) | HTTPS endpoint URI for binding registration (Section 3.2). |
key_rotate_uri
|
REQUIRED | String (URI) | HTTPS endpoint URI for out-of-band Operational Key rotation (Section 6.2). |
revocation_uri
|
REQUIRED | String (URI) | HTTPS endpoint URI for revocation requests and notifications (Section 8). |
supported_algorithms
|
REQUIRED | Array of Strings | Non-empty list of supported signature algorithm identifiers (e.g., ["ed25519", "es256"]). |
max_age
|
REQUIRED | Integer | Maximum cache lifetime in seconds for the configuration document. |
root_public_key
|
OPTIONAL | Object | Organizational Tier 1 Root Identity Key object (REQUIRED whenever "delegated_keys" is present). |
delegated_keys
|
OPTIONAL | Array of Objects | Tier 2 Delegated Key objects authorized under "root_public_key" (see rules below). |
delegated_keys_max_age
|
OPTIONAL | Integer | Maximum cache lifetime in seconds for "delegated_keys" (REQUIRED whenever "delegated_keys" is non-empty; MUST NOT exceed "max_age"; defaults to "max_age" if omitted when "delegated_keys" is absent or empty). |
classes
|
OPTIONAL | Array of Strings | Supported recipient address class names. |
migration_uri
|
OPTIONAL | String (URI) | HTTPS endpoint URI for domain and key migration requests (Section 3.5). |
declaration_uri
|
OPTIONAL | String (URI) | HTTPS URI for publishing signed domain migration declarations (Section 3.5). |
Whenever "delegated_keys" is present, every entry in the array
MUST satisfy all of the following rules:¶
"kid"
MUST NOT be the reserved identifier "root".¶
"exp - nb", e.g., at most
30 days) so compromised keys expire automatically even if all
revocation signals are lost.¶
"root_sig" field computed by the Root Identity Key
over that entry using the canonical JSON encoding defined in
Section 3.6 with domain-separation label
"MCEP-DelegateKey-v1".¶
Receivers MUST reject or ignore any Delegated Key lacking
a valid "root_sig" or using the reserved "kid" value
"root". Additionally, the "issuer" value
MUST exactly match the HTTPS origin from which the
configuration document was retrieved; otherwise, the client
MUST reject the configuration to prevent issuer mix-up
attacks.¶
Delegated Key (Tier 2) Caching, Asynchronous Refresh, and Revocation:
Receivers MUST NOT perform network retrieval while processing
an in-band MCEP header. In-band and out-of-band Tier 2 authorizations are
evaluated against a cached discovery configuration whose age - measured as
elapsed time since the configuration was successfully retrieved and
verified - does not exceed min(delegated_keys_max_age, 24 hours)
(86400 seconds), enforcing a strict receiver-local per-domain minimum
refresh interval (e.g., 60 seconds) and all transport security, timeout,
size, and SSRF IP re-validation protections specified below. To prevent
infinite SMTP 451 retry loops on unknown or removed keys across multi-minute
MTA queue intervals, receivers MUST maintain a per-(domain,
signer_kid) negative cache entry with a TTL of
min(delegated_keys_max_age, 1 hour) (3600 seconds, using
"max_age" when "delegated_keys_max_age" is omitted)
whenever a completed discovery refresh still omits the referenced
signer_kid (and MUST clear any matching negative
entry if a subsequent refresh observes that signer_kid). To
prevent memory exhaustion from random signer_kid floods,
receivers SHOULD enforce bounded per-domain and global
capacity limits on negative cache entries (e.g., at most 64 entries per
domain and a bounded total cache size with LRU eviction).
Table 3 summarizes the required behavior across
cache states:¶
| Cache State | In-Band (SMTP) | Out-of-Band (HTTPS API) |
|---|---|---|
Fresh cache, signer_kid present |
Proceed to signature, nb/exp, and permission checks |
Proceed to signature, nb/exp, and permission checks |
Negative cache hit for (domain, signer_kid) |
Reject immediately with uniform SMTP 550 (Section 4.4) | Reject request immediately (HTTP 400/403) |
Fresh cache, signer_kid absent (no negative cache entry) |
Enqueue async refresh (respecting the per-domain minimum refresh interval) and return SMTP 451 4.3.0; record negative cache entry if kid remains absent after refresh |
Perform live discovery retrieval (respecting the per-domain minimum refresh interval), record negative entry if still absent, and reject (HTTP 400/403) |
| No fresh cache (missing or age > effective max age) | Return SMTP 451 4.3.0 and enqueue async refresh | Perform live discovery retrieval and re-evaluate |
| Discovery retrieval fails or times out (async or live) | Keep existing cache and skip negative caching; continue returning SMTP 451 4.3.0 until refresh succeeds | Keep existing cache and skip negative caching; return HTTP 503 |
Receivers SHOULD also trigger a proactive asynchronous
refresh once half of the effective cache lifetime has elapsed, and senders
introducing a new Delegated Key SHOULD publish it at least
delegated_keys_max_age seconds (plus DNS TTL) prior to in-band use
when avoiding an initial SMTP 451 deferral is desired. When a successfully
retrieved and verified discovery document omits a previously cached "kid",
that key is immediately unauthorized for subsequent operations without
permanently blacklisting the "kid" unless an explicit Root-signed
POST /mcep/revoke with "target": "delegated_kid" is
received (Section 8).¶
In-band headers signed directly by the Tier 1 Root Identity Key
(signer_kid=root) are verified against the binding's locally
pinned "root_public_key" without consulting the discovery cache and are
therefore unaffected by discovery cache expiry or SMTP 451 deferrals.¶
Capability Pinning and Per-Binding Root Key Mismatch Handling: After successful retrieval and verification, an MSP MUST cache and consider the domain MCEP-capable for at least "max_age" seconds. A subsequent failure to retrieve the document - including an HTTP 404 response or a missing DNS record - MUST NOT be treated as evidence that the domain is non-capable, and MUST be handled as a transient failure. Root Identity Key pinning is maintained strictly per binding (keyed by "cid"): routine background refreshes of the discovery document MUST NOT overwrite any binding's locally pinned "root_public_key", and a change to a binding's pinned "root_public_key" takes effect only upon explicit confirmation via an authenticated domain migration (Section 3.5) or a dual-signed planned Root Identity Key rotation (Section 3.5) for that binding whose live discovery document matches the newly rotated key. Whenever a retrieved discovery document's "root_public_key" differs from a specific binding's locally pinned "root_public_key", receivers MUST continue to anchor trust for that binding exclusively on its own locally pinned "root_public_key": any Delegated Key entry in "delegated_keys" whose "root_sig" does not verify against that binding's locally pinned "root_public_key" MUST be treated as unauthorized for operations on that binding. Similarly, when evaluating a new registration request (Section 3.2), if any existing active or dormant binding for that sender domain holds a pinned "root_public_key" that differs from the "root_public_key" presented in the new request (or in the domain's discovery document), the receiver MUST NOT auto-approve the new registration, instead requiring explicit recipient confirmation or rejection per Section 8.¶
In multi-tenant or virtual-hosted environments serving multiple domains on shared infrastructure, the MSP SHOULD dynamically generate the "mcep-configuration" response based on the requested HTTP Host header, ensuring each hosted domain advertises its own tenant-isolated issuer and endpoints.¶
Transport Security and SSRF Protections: When retrieving the configuration document or making any out-of-band HTTPS control plane request, a client MUST enforce the following rules:¶
All binding registrations MUST be conducted over the out-of-band HTTPS control plane ("registration_uri"); senders MUST NOT initiate or negotiate a binding in-band over SMTP headers or message payloads. A sender that requires registration as a condition of a contract SHOULD request it within an authenticated session of the contracting party, and SHOULD NOT request it by email. In every case, the recipient MUST approve the registration explicitly through an authenticated operation under the control of the receiving MSP or the recipient's MUA. Approval MUST NOT be possible via a link in an email alone, and the MSP MUST NOT deliver approval prompts to the protected address itself; pending requests SHOULD be surfaced through an MSP-controlled management interface or authenticated client notification. Where automatic approval is permitted (such as via a public-facing address class, a pre-authorized Sender Allowlist entry, or a recipient-issued invitation token), such auto-approval MUST be treated normatively as the execution of explicit prior consent pre-configured by the recipient for that address or relationship, and MUST NOT bypass the cryptographic identity verification requirements of Section 3.1 and Section 8.¶
During registration, the Initiator sends an HTTPS POST to the Responder's "registration_uri" signed by one of the following three authorized key types:¶
The registration JSON payload carries the following fields:¶
"discovery" or "self-signed".¶
"exact" or
"domain" (see below).¶
"permissions", defaulting per
Section 6.1).¶
"general", "mandatory_transactional",
"optional_marketing", or "mailing_list"; defaults to
"general" if omitted).¶
If "auth_mode" is "discovery", the Responder MUST validate the Initiator's domain discovery configuration (Section 3.1). If "auth_mode" is "self-signed", the Responder MUST enforce "sender_scope": "exact" and MUST reject the request if the sender's domain is already known or pinned as MCEP-capable (preventing downgrade to unauthenticated self-signed registration).¶
Next, the Responder validates that the proposed "cid" has not been previously
used or revoked. If the proposed "cid" has already been used or revoked, the
Responder MUST NOT create a new binding or alter any existing
binding state, and MUST return a uniform response (such as
HTTP 202 Accepted with status "pending" and a synthetic "pending_expires_at"
computed as t + default_ttl, where default_ttl is the Responder's
configured pending-registration lifetime in seconds, e.g., 604800 seconds /
7 days) that is indistinguishable in status code, structure, and timing from a
newly queued pending registration, preventing state probing. Otherwise, for a
fresh "cid" requiring manual approval, the Responder creates an expiring
"pending" registration that MUST NOT accept any message until
approved. When presenting a pending request, the Responder's MSP or MUA
MUST clearly display the requested purpose scope and
MAY allow the recipient to downgrade the approved scope (for
example, from "mandatory_transactional" to "optional_marketing") prior to
approval, so that senders cannot unilaterally impose non-dormancy.
Upon explicit approval, the Responder activates the binding with the approved
scope and returns the "cid" alongside the Responder's public key - either
immediately in a 200 OK response when pre-authorized, or, after an initial 202
Accepted ("pending") response, by posting a symmetric registration payload
carrying the Responder's public key and signature back to the Initiator's
"registration_uri" (as well as exposing activation status via an authenticated
status URI for standalone clients).¶
Sender Scope ("sender_scope": "exact" vs. "domain"): During registration, the binding MUST include a "sender_scope" field set to either "exact" (consent applies strictly to a single normalized sender mailbox, e.g., "info@example.com") or "domain" (consent applies to an entire sender domain, e.g., "*@example.com"). Domain-wide bindings ("sender_scope": "domain") apply strictly to exact domain matches (excluding subdomains, which MUST bind separately) and allow a single organization to send from multiple operational addresses under one Consent ID without requiring separate handshakes per address. Domain-wide bindings MUST only be permitted for organizational domains publishing a "root_public_key"; MSPs and recipients MUST NOT create "domain" bindings for shared or multi-tenant email domains (such as public webmail providers), where "sender_scope": "exact" MUST be enforced. To prevent sequence inversion when multiple addresses or parallel workers share a domain-wide "cid", senders SHOULD assign distinct Operational Keys ("kid") per sending account or worker (tracking "last_seq" independently per ("cid", "kid")) or serialize "seq" allocation across shared keys.¶
Because "auth_mode" and "sender_scope" are orthogonal,
Table 4 summarizes the differences in
validity, trust guarantees, and use cases across the four combinations:¶
auth_mode + sender_scope
|
Eligibility & Key Differences | Primary Use Cases |
|---|---|---|
"discovery" + "domain"
|
Requires "root_public_key" (prohibited on shared webmail domains). Grants domain-wide sending under one "cid"; supports async callbacks. |
Organizations and automated systems sending from multiple addresses (*@example.com). |
"discovery" + "exact"
|
Allowed on all discovery domains (including shared/multi-tenant MSPs). MSP authority prevents squatting; supports async callbacks and immediate activation on "public"/Allowlist endpoints. |
Individual users on MCEP-capable MSPs, or specific departmental mailboxes. |
"self-signed" + "exact"
|
Allowed only when the sender's domain is not pinned as MCEP-capable. No domain discovery or async callback endpoints; requires Return-Routability check if auto-activated. | Peer-to-peer correspondence between standalone MUAs on non-MCEP domains. |
"self-signed" + "domain"
|
Prohibited (MUST be rejected). Unauthenticated keys cannot claim domain-wide scope. | Not applicable. |
Across all permitted combinations above, registrations on restricted
address classes ("basic", "strict", and
"guarded") require explicit recipient approval, a valid
invitation token, or a pre-authorized Sender Allowlist entry before
activation (Section 3.4).¶
When a sender onboarding a recipient (such as during account registration or notification signup) finds that the recipient's domain does not support MCEP, it cannot establish a binding (Section 3.2) or send messages protected by "MCEP-Signature" (Section 4.1), and instead falls back to a conventional out-of-band address verification flow followed by standard unsigned SMTP delivery (referred to here as a "legacy fallback"). A sender MAY use such a legacy fallback in place of MCEP registration and signed delivery only when the recipient domain is verified not to be MCEP-capable - specifically, when both hold: (a) retrieval of the configuration document yields HTTP 404 over a validated TLS connection, and (b) DNS returns a definitive negative answer (NXDOMAIN or NODATA) for "_mcep.<domain>". Any timeout, server error, TLS error, SERVFAIL, or other retrieval failure, as well as any failure on a domain previously pinned as MCEP-capable, MUST be treated as a transient failure rather than non-capability (Section 3.1).¶
Any legacy fallback MUST confirm address control using a single-use verification code expiring within a short period (default 10 minutes) with strict rate and attempt limits, preferably within an authenticated session. The sender MUST NOT represent fallback-verified addresses as protected by MCEP. When the recipient domain later becomes MCEP-capable, a sender MAY offer an upgrade within an authenticated session following Section 3.2; once an MCEP binding is established, unsigned messages MUST NOT be sent or accepted for that binding unless revoked.¶
For individual peer-to-peer relationships where the sender's domain does not publish an MCEP discovery configuration, registrations SHOULD be initiated via out-of-band invitation tokens (e.g., QR codes or direct links shared outside email) or through explicit recipient approval within the Mail User Agent (MUA) interface. Self-signed peer-to-peer registrations lacking a domain discovery configuration MUST be restricted strictly to "sender_scope": "exact".¶
Precedence Between First-Contact Policy and Address Class: To control unsolicited out-of-band registration requests to "registration_uri", a recipient address enforces a local first-contact registration policy that acts as the primary intake gate and MUST be evaluated prior to address-class auto-approval rules: "disabled" (highest restriction: unconditionally rejects or silently discards all new registration requests regardless of address class, including "public" (0x00), "public-strict" (0x02), and "public-guarded" (0x06), while preserving existing active bindings), "recipient-initiated" (restricts MCEP binding initiation - even on "public" class addresses - strictly to senders presenting a valid recipient-issued invitation token or matching an entry in the local Sender Allowlist, blocking all other registration requests), or "open-pending" (default: admits incoming HTTPS registration requests to the approval evaluation step below).¶
For requests admitted past the first-contact policy gate, the receiver MUST determine activation versus pending placement by evaluating the following rules in strict order (stopping at the first matching rule):¶
An unauthenticated self-signed request MUST NOT be auto-approved solely on the claimed sender address (preventing identity squatting), and MUST remain "pending" until confirmed via explicit recipient approval or Return-Routability Verification (described below). While a request remains in "pending" state, it MUST NOT block non-MCEP mail delivery that is otherwise permitted under the address's active policy (such as unbound delivery on "basic" 0x01 or allowlisted delivery on "guarded" 0x07).¶
Return-Routability Verification Procedure: To prevent unsolicited outbound challenge spam (backscatter or mail-bombing abuse), a receiving MSP MUST NOT transmit automated Return-Routability Verification emails for general unapproved pending requests, and MUST enforce both of the following restrictions:¶
"public"
0x00, "public-strict" 0x02, or "public-guarded" 0x06)
or senders explicitly pre-authorized in the recipient's local Sender
Allowlist (Section 10.4).¶
When permitted, Return-Routability Verification proceeds in four steps:¶
"cid",
a single-use cryptographic challenge nonce of at least 128 bits, and a
short expiration timestamp (default 10 minutes), without quoting any
unverified payload or attacker-supplied text.¶
"cid" matches an active local pending
registration initiated by that MUA toward the matching responder domain,
ignoring all unsolicited or unknown challenge messages.¶
"MCEP-Register-v1") strictly to the pinned
"registration_uri" discovered over HTTPS for that target domain.¶
"pending" to "active" and returns HTTP
200 OK with its public key ("recipient_pk").¶
All migration requests submitted to a peer's "migration_uri"
(Section 3.6) MUST include an explicit
"type" field identifying the migration operation - specifically
"sender_domain" (cross-domain sender migration),
"root_key_rotation" (same-domain planned Root Identity Key
rotation), or "recipient_address" (recipient MSP or address
migration) - so that receivers dispatch requests to the corresponding
verification rules and domain-separated signature labels without ambiguity.
Requests missing a valid "type" field MUST be
rejected.¶
Sender Domain Migration ("type": "sender_domain"):
Changes to a sender's domain MUST NOT trigger automatic,
unconfirmed re-binding, and are not permitted for "strict" addresses
(where the sender MUST register anew via
Section 3.2). For other classes, sender domain migrations
MUST require explicit recipient re-approval, or - where
pre-authorized administrative migration is supported - MUST
require dual signatures ("old_root_sig" and "new_root_sig")
from both the old and new Root Identity Keys over a domain-separated
payload ("MCEP-Migration-v1" covering type, cid, recipient,
old/new domains, new keys, validity period, and a monotonic migration
sequence number), reverse HTTPS and DNS verification of the new domain's
configuration, and a minimum 7-day pending hold window during which either
the recipient or the original sender can cancel the migration. Receivers
MAY enforce a maximum cumulative migration count per
Consent ID (for example, at most 2 or 3 cross-domain migrations) and
require a fresh registration (Section 3.2) once reached;
however, subdomain changes within the same organizational domain
authorized under the same Root Identity Key MAY be exempted
from this count limit. If the old Root Identity Key is lost or suspected
compromised, migration MUST NOT be used. Note that this
migration hold window applies exclusively to pending domain migrations of
established bindings and is distinct from the initial pending-registration
expiration lifetime (default_ttl in Section 3.2).¶
Planned Root Identity Key Rotation ("type": "root_key_rotation"):
To allow organizations to replace HSMs or upgrade cryptographic algorithms
without re-registering every binding, a sender whose Root Identity Key is
uncompromised MAY perform a planned, same-domain Root
Identity Key rotation via the receiver's "migration_uri"
(Section 3.6, domain-separation label
"MCEP-Migration-v1", with "type": "root_key_rotation"
and identical old and new domain identifiers) in four steps:¶
"root_public_key" in its HTTPS discovery document and updated
"_mcep.<domain>" DNS TXT record (Section 3.1)
and allow prior DNS TTLs to expire so live discovery reflects the new key.¶
"new_root_key") and dual signatures ("old_root_sig" and
"new_root_sig") computed by the receiver's currently pinned old
Root Identity Key and the proposed new Root Identity Key, respectively,
covering "type", Consent ID ("cid"), "recipient",
domain, "new_root_key", optional new Operational Key fields
("new_kid", "new_alg", "new_pk", "nb",
"exp"), monotonic migration sequence number ("mseq"),
and timestamp ("t").¶
"old_root_sig" against its locally pinned Root Identity Key and
"new_root_sig" against the proposed "new_root_key", and
then fetch and verify the sender's live discovery configuration and DNS
TXT record (Section 3.1) to confirm that the newly published
"root_public_key" matches "new_root_key" (returning a
retryable transient error such as HTTP 503 if DNS propagation is still in
progress).¶
"new_kid", "new_alg",
"new_pk", "nb", "exp") are included, the
receiver MUST install the new Operational Key as
"active" (initializing its "last_seq" to 0) and
transition the replaced prior Operational Key to the "retiring"
grace slot governed by the strict acceptance rules in
Section 6.2.¶
Planned Root Identity Key rotation is subject to the following scope and exception rules:¶
"strict" 0x03), does not count toward cross-domain migration
limits, and takes effect immediately without requiring the 7-day
cross-domain hold window.¶
Exceptional Automatic Migration: A receiver MAY complete a sender domain migration without explicit recipient approval only if all of the following conditions hold:¶
Recipient Address Migration ("type": "recipient_address"):
When a recipient moves from an old MSP to a new MSP, bindings are migrated
rather than transferring private keys. The user authenticates to both MSPs
and authorizes migration of selected Consent IDs. The old MSP signs a
Migration Attestation ("old_msp_sig", domain-separation label
"MCEP-RecipientMigration-v1") covering "type": "recipient_address",
the Consent ID ("cid"), the old and new recipient addresses, the new
recipient public key ("new_recipient_pk"), a monotonic migration sequence
number ("mseq"), and a short expiration timestamp. The new MSP counter-signs
the attestation ("new_msp_sig") and submits it via HTTPS POST to
the sender's "migration_uri". The sender verifies both signatures against
the old pinned recipient key (or old MSP key) and the new MSP's discovery
configuration, and atomically updates the recipient address and public key.
The old MSP SHOULD remain available to sign attestations for a
transition period after service termination and SHOULD then
purge the old key material.¶
For the purpose of subdomain exemptions, two domains are considered part of the same organization only if they share the same Organizational Domain boundary (as defined in [RFC9989], excluding multi-tenant or provider-allocated subdomains such as shared hosting subdomains) and are both cryptographically authorized under the same Root Identity Key.¶
To ensure interoperability while permitting optional fields and future extensions, all signed JSON payloads sent over the out-of-band HTTPS control plane endpoints (Appendix B) MUST compute their cryptographic signature over a canonical byte sequence constructed from a domain-separation label and all non-signature top-level JSON fields sorted in ascending ASCII lexicographical order by key name:¶
"MCEP-Register-v1".¶
"MCEP-Rotate-v1".¶
"MCEP-Revoke-v1" (covering all request fields including
"target" - such as "binding", "kid", or "delegated_kid" - and "kid" when
present).¶
"MCEP-RevokeNotify-v1" (computed over
asynchronous revocation notification payloads sent to a peer's
"revocation_uri").¶
"MCEP-Migration-v1" (when "type"
is "sender_domain" or "root_key_rotation").¶
"MCEP-RecipientMigration-v1" (when
"type" is "recipient_address").¶
"MCEP-Status-v1".¶
"MCEP-DelegateKey-v1" (computed over each
delegated key object in "delegated_keys", excluding "root_sig").¶
Canonical Encoding Rule: Starting with the length-prefixed
domain-separation label (<label_len>:<label>), remove
all signature fields ("sig", "rs", "old_root_sig", "new_root_sig",
"old_msp_sig", "new_msp_sig") from the top-level JSON object, sort the
remaining keys in ascending ASCII byte order, and append each entry as
<key_len>:<key>=<val_len>:<value>
with no delimiters between entries. String values are encoded as their raw
UTF-8 octets, integer values as base-10 ASCII digits, booleans as "true" or
"false", and arrays or nested objects as compact RFC-compliant JSON with no
insignificant whitespace (and nested object keys likewise sorted in ascending
ASCII byte order).¶
An inbound MTA enforcing MCEP MUST evaluate incoming messages in the following strict two-stage sequence - Stage 1 (substeps 1a and 1b) at End-of-Headers prior to message body reception, and Stage 2 (substeps 2a through 2d) at End-of-Message after complete message body reception - to prevent state-probing oracles and resource exhaustion. If an MSP exempts strictly internal mail submission or intra-organization routing paths from MCEP verification, such exemptions MUST be restricted to authenticated, network-isolated internal entry points that cannot be reached from external domains and MUST NOT rely on claimed header or envelope sender identities alone:¶
Stage 1a (End-of-Headers) - In-Band Revocation Header Evaluation ("MCEP-Revocation"): Prior to evaluating "MCEP-Signature" or address-class exemptions, inspect the message headers for any "MCEP-Revocation" header field. If one or more "MCEP-Revocation" headers are present, validate and process them strictly in accordance with Section 5.4 (enforcing single-header presence, timestamp bounds, binding lookup, and authority signature verification).¶
Proceed to Stage 1b only if no "MCEP-Revocation" header is present.¶
Stage 1b (End-of-Headers) - Header Integrity, Binding Lookup, and Pre-Body Checks: Execute the following pre-body checks in order. Any failure not explicitly routed to unverified recipient policy (Section 4.6) MUST be rejected immediately prior to body reception using the uniform response of Section 4.4:¶
Stage 2a (End-of-Message) - Cryptographic Signature Verification: Immediately after receiving the message body and prior to inspecting sequence numbers or deduplication caches, verify the cryptographic signature ("s") over the length-prefixed canonical input using the verified or provisional key from Stage 1b. If signature verification fails, the MTA MUST immediately reject the message without inspecting sequence numbers or deduplication caches.¶
Stage 2b (End-of-Message) - Sequence Monotonicity and Identical-Signature Deduplication: Compare the message sequence ("seq") against the stored "last_seq" for the active key ("kid") (or 0 for a newly provisional key):¶
Stage 2c (End-of-Message) - Re-Signed Retry Idempotency ("mid"): If "seq" > "last_seq", check a deduplication cache keyed by ("cid", "mid") - which receivers MUST retain for at least 5 days and SHOULD retain for 7 days (covering standard SMTP queue retry lifetimes per [RFC5321]) - comparing the tuple of ("envelope-to", "headers-hash", "body-hash"):¶
Stage 2d (End-of-Message) - Acceptance and Atomic State Update: The MTA MUST atomically commit any provisional key rotation, update "last_seq", store the last accepted signature, and update the ("cid", "mid") deduplication cache immediately prior to final acceptance, and then accept the message for delivery.¶
Retransmission Rules: Within 240 seconds of initial signing, a sender MAY retransmit the exact signed message unchanged. After 240 seconds, the sender MUST re-sign the message using the original "mid", a newly incremented "seq", and the current timestamp "t".¶
Multiple Recipients (To, Cc, and Bcc): Because MCEP binds keys and sequence numbers to 1-to-1 bindings, senders transmitting to multiple recipients MUST perform per-recipient delivery, computing a distinct "MCEP-Signature" for each envelope recipient while preserving visible "To" and "Cc" headers. Any SMTP transaction involving an MCEP-protected recipient MUST be limited to a single recipient: if the first accepted "RCPT TO" targets an MCEP-protected address, the inbound MTA MUST defer all subsequent "RCPT TO" commands with SMTP 452 (4.5.3); conversely, if the first accepted "RCPT TO" targets an unprotected address, the MTA MUST defer any subsequent "RCPT TO" targeting an MCEP-protected address with SMTP 452 (4.5.3) to prompt single-recipient retransmission. Transactions containing only unprotected recipients are unaffected.¶
Delivery Status Notifications (Bounces): To preserve
Strict Reject without introducing exceptions on protected addresses,
senders SHOULD use a dedicated, authenticated bounce return
path (such as BATV/VERP-style MAIL FROM addresses like
bounce+<mid>+<hmac>@<domain>) rather than
setting an MCEP-protected address as MAIL FROM. Under this
recommended configuration, inbound MTAs enforcing Strict Reject
SHOULD reject MAIL FROM:<> messages
targeting protected addresses with no special exemption. Where an
architecture or user configuration explicitly enables receiving DSNs
([RFC3464]) directly at a protected address, an inbound
MTA or MUA MAY accept a MAIL FROM:<>
message only if all of the following conditions hold:¶
multipart/report with
report-type=delivery-status.¶
s) equals one of the signature values recorded for that
("cid", "mid") in a short-term outbound transmission record
maintained by the sender's MSP or MUA (which also records the
"envelope-to" and any [RFC3461] ENVID, to
be matched against the DSN Final-Recipient and, where
present, the Original-Envelope-Id). Because the record
holds the emitted signature values, no body or hash recomputation
is needed, allowing DSNs that return only message headers.¶
Any MAIL FROM:<> message failing these checks (or arriving
when direct DSN acceptance is disabled) MUST be rejected
with the uniform response of Section 4.4.
Accepted DSNs MUST NOT be delivered directly into the
user's primary inbox as authenticated peer mail; instead, implementations
MUST isolate or sanitize them - for example, by generating a
new local system notice solely from the machine-readable delivery status
and original headers (discarding the external narrative body), routing
the DSN to a dedicated bounce folder, or rendering it in the MUA as an
unverified bounce notice with links and attachments disabled.
To support upstream DSN propagation across forwarders, a Forwarder
(Section 4.3) that relays a message carrying an
"MCEP-Signature" header to a downstream provider MUST
retain the original inbound "MCEP-Signature" header together with the
upstream envelope recipient and any [RFC3461] ENVID
for the duration of its bounce window (e.g., 5 to 7 days). When
propagating a DSN back toward the upstream sender, the Forwarder
MUST restore the retained inbound "MCEP-Signature" in
the attached headers (stripping its own downstream "MCEP-Signature")
and replace the delivery-status recipient fields (Final-Recipient
and, if present, Original-Recipient) and
Original-Envelope-Id (ENVID) with the values
originally supplied by the upstream sender, preventing private
forwarding destinations from leaking.¶
MCEP treats each SMTP hop that changes the envelope as a separate sender-recipient relationship:¶
A Forwarder MAY record the upstream MCEP result in an Authentication-Results header field [RFC8601] for use within its trust boundary. This document does not define how upstream results are carried across trust boundaries (see Appendix E). Organizations that delegate email delivery to external Email Service Providers (ESPs) SHOULD issue a distinct Operational Key per provider under their Root Identity Key so that an individual provider's key can be revoked independently.¶
To prevent enumeration of active, expired, or revoked bindings, an inbound MTA MUST return a uniform SMTP error response (e.g., "550 5.7.1 MCEP: Message rejected due to policy or verification failure") across all policy and cryptographic verification failures, recording specific failure reasons only in internal logs.¶
If the MTA encounters a database timeout, lock contention, storage failure, or an uncached or expired Tier 2 discovery configuration requiring asynchronous refresh (Section 3.1) during binding lookup or sequence update, it MUST return a transient error (SMTP 451 4.3.0) rather than SMTP 550 so that legitimate messages are queued and retried without losing mail or leaking verification state. Implementations SHOULD employ short-TTL positive key caches and negative caches (30-60 seconds) to mitigate database load and cache-penetration attacks.¶
A receiver operating in Monitoring Mode (e.g., with MCEP_FLAG_MONITOR_ONLY 0x10 combined with an enforcement mode, or policy dry-run) MUST execute the full verification pipeline (Section 4.1), including cryptographic signature verification, and differs only in delivering messages that would otherwise be rejected while logging the evaluation outcome and failure reason. Stored state ("last_seq" and deduplication records) is updated under the exact same conditions as in enforcement mode. A sender MUST NOT be able to distinguish Monitoring Mode from enforcement mode via SMTP replies. Receivers SHOULD operate newly onboarded addresses in Monitoring Mode prior to enabling Strict Reject.¶
Handling of unverified messages depends on the recipient address's active policy mode (Section 2):¶
MCEP_FLAG_PROTECT_REGISTERED ("basic" 0x01,
"strict" 0x03, or "guarded" 0x07), a receiver MUST NOT
quarantine or deliver an unsigned or invalidly signed message claiming a
sender with an active binding; such messages MUST be
rejected during the SMTP transaction. Once a binding has been revoked,
subsequent unsigned messages from that sender are governed by the
address's policy for unbound senders (Section 2).¶
A sender bears the operational responsibility for key expiry, key loss, or binding revocation. Once a binding is re-established, the sender SHOULD retransmit previously rejected messages with fresh signatures.¶
All MCEP header fields are defined using ABNF syntax [RFC5234]
and header folding rules (FWS) from [RFC5322]. Within any
MCEP header field, each tag MUST appear exactly once; duplicate,
unknown, missing, or malformed tags, or any tag value exceeding 1024 octets,
MUST cause immediate verification failure. All numeric integer
tags ("seq", "t", "nb", "exp", and "useq") MUST be encoded in
canonical base-10 ASCII form without leading zeros (except the single digit "0"),
MUST fit within an unsigned 64-bit integer (uint64,
0 through 18446744073709551615), and MUST be fed into signature
verification using the exact received ASCII decimal string rather than a
re-formatted value. Unless otherwise noted, cryptographic keys and signatures
are encoded using standard Base64 with padding as defined in Section 4 of
[RFC4648], and UUIDs follow lowercase hexadecimal representation
per [RFC9562]. The literal identifier "root" is reserved exclusively
to denote a binding's Tier 1 Root Identity Key in "signer_kid" tags and fields,
and MUST NOT be used as the "kid" of any Operational Key or Delegated
Key. Common value rules shared across MCEP headers are defined below:¶
v-tag = "v=1" cid-tag = "cid=" uuid kid-val = 1*64( ALPHA / DIGIT / "-" / "_" ) alg-tag = "alg=" ( "ed25519" / "es256" ) uint-val = "0" / ( %x31-39 *19DIGIT ) t-tag = "t=" uint-val rs-tag = "rs=" base64 uuid = 8lchex "-" 4lchex "-" 4lchex "-" 4lchex "-" 12lchex lchex = DIGIT / %x61-66 base64 = 1*( ALPHA / DIGIT / "+" / "/" ) 0*2"="¶
R || S). To prevent signature malleability,
receivers MUST strictly enforce [RFC8032]
canonical scalar validation and reject any signature whose 32-octet
little-endian integer S is not strictly less than the group order
L = 2^252 + 27742317777372353535851937790883648493.¶
Signature values ("s" and "rs") are standard Base64-encoded [RFC4648] and MUST decode to exactly 64 octets. The algorithm is bound to the stored verification key at registration; a message whose "alg" differs from the type of the registered verification key MUST be rejected.¶
An authenticated MCEP message MUST contain exactly one "MCEP-Signature" header field formatted as semicolon-separated "tag=value" pairs. All eight tags ("v", "cid", "kid", "mid", "seq", "alg", "t", "s") are REQUIRED.¶
MCEP-Signature = "MCEP-Signature:" 0*1FWS sig-tag-list
sig-tag-list = sig-tag *( ";" 0*1FWS sig-tag ) 0*1";"
sig-tag = v-tag / cid-tag / kid-tag / mid-tag / seq-tag /
alg-tag / t-tag / s-tag
kid-tag = "kid=" kid-val
mid-tag = "mid=" uuid
seq-tag = "seq=" uint-val
s-tag = "s=" base64
¶
Example:¶
MCEP-Signature: v=1; cid=550e8400-e29b-41d4-a716-446655440000; kid=2026-q4; mid=9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d; seq=1; alg=ed25519; t=1795262400; s=<base64_signature>¶
To eliminate delimiter ambiguity across multi-line or structured fields, the signature "s" is computed by concatenating thirteen fields in exact order, each encoded as its ASCII decimal octet length, a colon (":"), and the ASCII field value ("<len>:<value>"):¶
Core Headers Canonicalization ("headers-hash"): The "headers-hash" value is the lowercase hexadecimal SHA-256 digest of the concatenation of seven header fields in exact order: "From", "Reply-To", "To", "Cc", "Subject", "Date", and "Message-ID". Each field is encoded as its lowercase field name, a colon (":"), the header value with folding whitespace unfolded and leading/trailing whitespace stripped, followed by CRLF. If a field is absent, it is encoded as "<name>:\r\n". If any of these seven header fields appears more than once in the message, verification MUST fail.¶
Only the addr-spec portion of an email address is used; angle brackets and any display name are removed, and a display name is not subject to the ASCII restriction. The addr-spec MUST consist only of ASCII letters, digits, ".", "_", "-", "+", and "@", and MUST contain exactly one "@". Uppercase ASCII letters are converted to lowercase. Non-ASCII characters, whitespace, and control characters in the addr-spec MUST cause verification to fail. Internationalized email addresses are out of scope in this version.¶
Operational Keys SHOULD be rotated periodically (e.g., every 90 days)
or upon resuming communication after long dormancy. Rotation may occur out-of-band
via the recipient MSP's HTTPS "key_rotate_uri" or in-band via the "MCEP-Key-Update"
header field signed by the sender's Root Identity Key (signer_kid=root),
an authorized Delegated Key (identified by its delegated kid),
or the active Operational Key for peer-to-peer bindings without a Root Key.¶
The "MCEP-Key-Update" header field is formatted as semicolon-separated "tag=value" pairs containing all ten REQUIRED tags ("v", "cid", "signer_kid", "new_kid", "new_alg", "new_pk", "nb", "exp", "useq", "rs"):¶
MCEP-Key-Update = "MCEP-Key-Update:" 0*1FWS upd-tag-list
upd-tag-list = upd-tag *( ";" 0*1FWS upd-tag ) 0*1";"
upd-tag = v-tag / cid-tag / signer-kid-tag / new-kid-tag /
new-alg-tag / new-pk-tag / nb-tag / exp-tag /
useq-tag / rs-tag
signer-kid-tag = "signer_kid=" kid-val
new-kid-tag = "new_kid=" kid-val
new-alg-tag = "new_alg=" ( "ed25519" / "es256" )
new-pk-tag = "new_pk=" base64
nb-tag = "nb=" uint-val
exp-tag = "exp=" uint-val
useq-tag = "useq=" uint-val
¶
Example:¶
MCEP-Key-Update: v=1; cid=550e8400-e29b-41d4-a716-446655440000; signer_kid=root; new_kid=2027-q1; new_alg=ed25519; new_pk=<base64_pubkey>; nb=1795262000; exp=1803038400; useq=2; rs=<base64_authority_sig>¶
Signed Data: The cryptographic signature ("rs")
MUST be computed using the authority key identified by
"signer_kid" (where "root" denotes the binding's registered Root
Identity Key, a Delegated Key identifier denotes a Delegated Key holding
"rotate" permission in the sender's discovery configuration, and an active
Operational Key identifier denotes self-authorized rotation in "self-signed"
mode) over the "<len>:<value>" encoded concatenation of ten
fields in exact order:¶
Validation and State Transition: A message MUST carry at most one "MCEP-Key-Update" header field; messages with multiple or invalid "MCEP-Key-Update" headers MUST be immediately rejected with the uniform response of Section 4.4. The receiving MTA MUST verify that:¶
The receiver MUST NOT alter stored key state until both the key update and the message's "MCEP-Signature" verify successfully. Because the in-band "MCEP-Key-Update" header carries no explicit permissions tag, the newly installed Operational Key MUST be assigned the default least-privilege permissions specified in Section 6.1 (i.e., ["sign"] when associated with a Root Identity Key or Delegated Key, or ["sign", "rotate", "revoke"] under "self-signed" mode without a Root Identity Key). Upon valid key rotation, the MSP MUST transition the replaced prior key to the "retiring" grace slot governed by the strict acceptance rules in Section 6.2, install the new Operational Key as active, update "useq", and initialize "last_seq" to 0 for the new "kid".¶
The "MCEP-Revocation" header provides an in-band mechanism to immediately and permanently revoke an active binding. While revocation is primarily executed out-of-band via the recipient MSP's HTTPS "revocation_uri", a sender SHOULD transmit this header over SMTP as a resilient fallback whenever the HTTPS endpoint is unreachable, times out, or returns a transient error.¶
The "MCEP-Revocation" header field is formatted as semicolon-separated "tag=value" pairs containing all six REQUIRED tags ("v", "cid", "signer_kid", "alg", "t", "rs"):¶
MCEP-Revocation = "MCEP-Revocation:" 0*1FWS rev-tag-list
rev-tag-list = rev-tag *( ";" 0*1FWS rev-tag ) 0*1";"
rev-tag = v-tag / cid-tag / signer-kid-tag / alg-tag /
t-tag / rs-tag
¶
Example:¶
MCEP-Revocation: v=1; cid=550e8400-e29b-41d4-a716-446655440000; signer_kid=root; alg=ed25519; t=1795262400; rs=<base64_root_sig>¶
The receiving MTA MUST verify that "t" falls within the
asymmetric timestamp window defined in Section 4.1
(no more than 60 seconds in the future and no more than 300 seconds in the
past). The cryptographic signature ("rs") MUST be computed
using the authority key identified by "signer_kid" (where "root"
denotes the binding's registered Root Identity Key, a Delegated Key identifier
denotes a Delegated Key holding "revoke" permission in the sender's discovery
configuration, or the active Operational Key identifier for peer-to-peer
bindings registered without a Root Identity Key) over the
"<len>:<value>" encoded concatenation of six fields in exact order:¶
An inbound MTA MUST enforce the following processing rules when handling "MCEP-Revocation":¶
signer_kid=root, verification relies solely on the
binding's locally pinned Root Identity Key without requiring discovery cache
freshness, ensuring emergency root revocations execute immediately even if
discovery refresh is unavailable or deferred.¶
Each Delegated or Operational Key in MCEP is bound to an explicit set of allowed permissions (e.g., "sign" for message signing, "register" for creating bindings, "rotate" for Operational Key updates, and "revoke" for revocations) and an optional address scope. A sender communicates key permissions to the receiving MSP through either of two authenticated channels:¶
Default Least-Privilege Rule and Enforcement: If no explicit permissions are declared for an Operational Key, receivers MUST determine default permissions strictly from the explicit "auth_mode" established at registration (Section 3.2) rather than inferring mode from transient discovery failures: when "auth_mode" is "discovery" (or whenever a Root Identity Key or a Delegated Key is associated with the binding), the Operational Key MUST default to ["sign"] only; when "auth_mode" is "self-signed" with no separate Root Identity Key, the registered key defaults to ["sign", "rotate", "revoke"] so the peer can manage its own key lifecycle. Receivers MUST reject any protocol operation signed by a key that lacks the corresponding permission.¶
During key rotation, a receiver transitions a rotating Operational Key slot
between "active" and "retiring" states (while supporting distinct concurrent
"active" keys when a sender allocates separate keys per sending worker).
Upon acceptance of a key update under automatic approval, the receiver
records the commit timestamp (rotated_at), installs the new key as
"active" (initializing its last_seq to 0), and transitions the
replaced prior key to "retiring" until grace_until = min(rotated_at +
grace_seconds, prior_key.exp), where grace_seconds is
recommended to be 300 to 600 seconds (exceeding the 300-second inbound
signature past-timestamp window).¶
Strict Acceptance Conditions During the Grace Window: Once
a rotation is initiated or committed, a sender MUST NOT sign
any new messages (including re-signed retries after the 240-second
retransmission window of Section 4.2) with the
retiring key. A receiver MUST accept a message signed by a
key in the "retiring" state only if all of the following conditions hold:
(1) the MTA's reception time is at or before grace_until; (2) the
message's signature timestamp "t" satisfies t <= rotated_at
(confirming the message was signed prior to rotation commit) and remains
within the standard 300-second past-timestamp window of
Section 4.1; and (3) the message satisfies sequence
monotonicity (seq > last_seq, or identical-signature
deduplication) against the retiring key's own stored last_seq.
Any message signed by a "retiring" key that fails these conditions - including
messages carrying t > rotated_at or arriving after
grace_until - MUST be rejected with the uniform
response of Section 4.4. Where user approval is
required (such as resuming a "strict" binding from dormancy), the new key
remains "pending" and unusable until approved. Revoked or expired keys have
no grace period and are rejected immediately. A "kid" is never reused for a
Consent ID.¶
Registration Before Sending (Recommended): Senders SHOULD register new Operational Keys out-of-band by sending an HTTPS POST (signed per Section 3.6 with label "MCEP-Rotate-v1") to the receiving MSP's "key_rotate_uri" and begin signing with the new key only after receiving confirmation that the key state is "active". The in-band "MCEP-Key-Update" header serves as an alternative transport.¶
An MSP MAY transition a binding that has seen no verified traffic
for a configured inactivity period into a "dormant" state rather than revoking it.
A dormant binding retains its Consent ID, Root Identity Key, and "kid" history,
and rejects incoming mail until resumed via an authenticated key rotation
(Section 5.3) or, if the Root Key was lost, a new registration
(Section 3.2). Bindings approved with a "purpose_scope"
of "mandatory_transactional" (Section 3.2)
SHOULD NOT become dormant automatically.
Receivers SHOULD re-verify revocation status when a long-dormant
binding resumes. If a recipient mailbox is deleted or reassigned to a new user,
the MSP MUST permanently revoke all associated bindings.¶
Because bindings reflect a user's commercial and personal relationships, MSPs SHOULD store sender domains and identifiers using per-user keyed HMAC-SHA256 hashes rather than plaintext where feasible, minimize logs, and avoid retaining the content of rejected messages. Revocation notifications sent to a bound peer MUST NOT disclose the reason for revocation.¶
Unconditional Recipient Revocation Right: A recipient MUST retain the unilateral ability to revoke any binding at any time - including bindings approved as "mandatory_transactional" - to ensure immediate protection if a bound peer is compromised or becomes abusive.¶
Immediate Local Enforcement and Irreversibility: Regardless of the
channel through which a valid revocation is received, the receiving MSP
MUST immediately mark the binding permanently revoked in its local
database, invalidate cached key entries in the same operation, and asynchronously
notify the bound peer's "revocation_uri" using a signed revocation notification payload
(Section 3.6, domain-separation label "MCEP-RevokeNotify-v1"
covering "cid", "revoked_at", "nonce", and "t", signed by the recipient key
exchanged at registration - or the receiving domain's authorized key - without disclosing
any revocation reason). Failure or timeout of the outbound notification
MUST NOT revert local enforcement. Once revoked, a "cid" and its
associated keys MUST NOT be reactivated; restoring communication after
an accidental revocation MUST be performed by establishing a new
binding with a fresh "cid" and new key material.¶
Sender-Initiated Revocation Channels: A sender MAY revoke a binding via: (1) HTTPS POST to the receiving MSP's "revocation_uri" (primary channel, retried with bounded exponential backoff), (2) the in-band "MCEP-Revocation" header (Section 5.4) as a fallback when HTTPS is unreachable, or (3) expiration of short-lived Operational Keys. Urgent revocations SHOULD use multiple channels.¶
Re-Registration Rate Limiting: To prevent harassment via repeated registration requests after revocation, receiving MSPs and MUAs MUST enforce the following rules (summarized in Table 5):¶
"cid". Any request submitting an already-used or revoked
"cid" MUST be silently discarded without
modifying state while returning the uniform pending response.¶
| Condition | Recommended Limit | Local Handling & UI Behavior | HTTP Response |
|---|---|---|---|
Reused or previously revoked "cid"
|
0 allowed | Silently discard without state change or user notification | 202 Accepted ("pending") |
| Valid new request within rate limit | Max 3 per 30 days per sender | Queue as "pending" (no auto-approval); indicate prior revocation history in MUA |
202 Accepted ("pending") |
| Rate limit exceeded, abuse-revoked, or block-listed | 0 surfaced | Silently discard locally without notifying the recipient | 202 Accepted ("pending") |
| Post-revocation invitation token or Allowlist entry | Explicit re-authorization | Auto-approve and activate new binding (Section 3.4) | 200 OK ("active") |
Auto-Registration Rate Limiting and Abuse Prevention: Endpoints permitting automatic binding approval (such as "public" or "public-strict" addresses) MUST enforce rate limits per source IP, sender domain, and target recipient address, and MAY require additional checks (such as organizational Root Identity Key verification or reputation filtering) to prevent automated registration floods from exhausting binding storage. Automatic activation on such endpoints MUST be restricted to senders verified via their domain discovery configuration (Section 3.1) or a valid pre-issued invitation token; any self-signed registration lacking both domain discovery and an invitation token MUST be restricted to "sender_scope": "exact", held in "pending" state rather than immediately activated, and promoted to "active" only after explicit recipient approval or Return-Routability Verification (Section 3.4, confirming mailbox reachability via an SMTP challenge nonce and key possession via a signed HTTPS confirmation to "registration_uri").¶
Compromise of the Root Identity Key: A sender that knows or suspects compromise of its Root Identity Key SHOULD revoke affected bindings, notify recipients out-of-band, generate a new Root Identity Key, and re-establish bindings via Section 3.2. Receivers detecting conflicting requests signed by the same Root Key MUST suspend automatic migrations and key updates and require explicit recipient approval. Revocation MUST take precedence over any conflicting migration.¶
+---------------------------------------------------------------+
| Tier 1: Domain Root Key (Offline / HSM) |
| - Ultimate Trust Anchor for the Domain |
| - Authorizes/Revokes Tier 2 Keys |
+---------------------------------------------------------------+
| (Signs / Revokes)
v
+---------------------------------------------------------------+
| Tier 2: Delegated Key (Admin / CSIRT) |
| - Approves Operational Key Registration & Updates |
| - Executes Unilateral Forced Revocation of Tier 3 Keys |
+---------------------------------------------------------------+
| | |
v v v
+-------------------+ +-------------------+ +-------------------+
| Tier 3: Op Key A | | Tier 3: Op Key B | | Tier 3: Op Key C |
| (MTA Worker 1) | | (Billing System) | | (User / Device) |
| - Signs ONLY | | - Signs ONLY | | - Signs ONLY |
| - NO Admin/Revoke | | - NO Admin/Revoke | | - NO Admin/Revoke |
+-------------------+ +-------------------+ +-------------------+
¶
signer_kid=root), and revokes Operational Keys without requiring
DNS updates. In a single-key deployment, only one key pair is maintained:
peers operating without domain discovery ("self-signed" mode) use
a single Operational Key holding ["sign", "rotate", "revoke"]
permissions and rotate it via MCEP-Key-Update or
POST /mcep/rotate, whereas domains publishing discovery
("discovery" mode) may publish that single key as
"root_public_key" (with no "delegated_keys"), register
it as the Operational Key (using a non-reserved "kid"), and
rotate it via POST /mcep/migrate
("type": "root_key_rotation", setting both "new_root_key"
and "new_pk" to the new key). Because discovery-based
single-key rotation requires updating DNS TXT records and waiting for
TTL expiration, operators that rotate Operational Keys frequently (e.g.,
every 90 days) SHOULD prefer at least a two-key deployment.¶
This section is informative. The deployment patterns, transition mechanisms, and user-experience workflows described below represent initial operational guidance and remain subject to refinement based on early implementation and coexistence experience.¶
signer_kid=root. Conversely, when removing
a Delegated Key from "delegated_keys", operators should note that revocation
propagation to receivers that do not receive an explicit Root-signed push
revocation (POST /mcep/revoke with "target": "delegated_kid")
is delayed by up to "delegated_keys_max_age" seconds (plus DNS TTL);
urgent revocations of compromised Delegated Keys should therefore actively push
revocations to peers alongside keeping Delegated Key lifetimes short.¶
As specified in Section 3.2, all binding registrations occur over the out-of-band HTTPS control plane ("registration_uri") rather than over the in-band SMTP channel. Depending on which party initiates the communication intent, deployments support three primary onboarding patterns:¶
During an extended ecosystem transition where most external correspondents still operate non-MCEP (legacy) mail servers, the "basic" (0x01) class and allowlist-assisted "guarded" (0x07) mode serve as the primary operational modes for general-purpose addresses:¶
A receiving MSP or MUA implementing a local Sender Allowlist stores recipient-scoped entries containing:¶
"recipient", the pre-authorized "allowed_sender",
and "sender_scope" ("exact" or "domain",
with "domain" disallowed for shared webmail providers).¶
"expires_at") and a single-use consumption flag.¶
Depending on the sender's MCEP deployment state, the allowlist entry governs message delivery and onboarding across three state transitions:¶
"basic" (0x01) or "guarded" (0x07) addresses,
pre-registered allowlist entries permit ongoing delivery without
requiring repeated per-message approval, subject to aligned SPF or
DKIM verification - or, for legacy senders lacking SPF/DKIM alignment,
via an explicit per-address ("exact") recipient override
acknowledged at registration time (Section 10.3).¶
"pending" state (continuing
to deliver legacy DMARC-aligned email uninterrupted) and auto-promotes
the binding only after Return-Routability Verification
(Section 3.4, delivering an SMTP challenge nonce
to the claimed mailbox and verifying the Initiator's signed HTTPS
confirmation at "registration_uri").¶
This document requests IANA to register the following header fields in the "Permanent Message Header Field Names" registry [RFC3864]:¶
This document requests IANA to register the node name "_mcep" for the TXT resource record type in the "Underscored and Globally Scoped DNS Node Names" registry [RFC8552], with this document (Section 3.1) as the specification reference.¶
This document requests IANA to register the following Well-Known URI suffix in the "Well-Known URIs" registry [RFC8615]:¶
The following non-normative example illustrates a JSON configuration document published at "https://example.com/.well-known/mcep-configuration":¶
{
"version": 1,
"issuer": "https://example.com",
"registration_uri": "https://example.com/mcep/register",
"key_rotate_uri": "https://example.com/mcep/rotate",
"revocation_uri": "https://example.com/mcep/revoke",
"migration_uri": "https://example.com/mcep/migrate",
"supported_algorithms": ["ed25519", "es256"],
"max_age": 86400,
"delegated_keys_max_age": 3600,
"root_public_key": {
"alg": "ed25519",
"pk": "<base64_root_public_key>"
},
"delegated_keys": [
{
"kid": "policy-2026-01",
"alg": "ed25519",
"pk": "<base64_policy_public_key>",
"permissions": ["register", "rotate", "revoke"],
"key_scope": "*@example.com",
"nb": 1767225600,
"exp": 1769817600,
"root_sig": "<base64_root_signature>"
}
],
"classes": ["public", "basic", "public-strict", "strict",
"public-guarded", "guarded"]
}
¶
_mcep.example.com. IN TXT ( "v=MCEP1; " "cfg=" "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08; " "rk=" "4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a" )¶
The following non-normative examples illustrate JSON request and response payloads for the four out-of-band HTTPS control plane endpoints defined in Appendix A.¶
Registration uses a single symmetric JSON payload on "registration_uri" in both directions. If the request is pre-authorized (e.g., via the recipient's local Sender Allowlist or an invitation token), the receiving MSP activates the binding immediately and returns 200 OK. If manual recipient approval is required, the receiving MSP returns 202 Accepted ("pending"); once the recipient approves the request, the receiving MSP posts the same symmetric payload (carrying the recipient's public key and signature for the same "cid") back to the sender's "registration_uri". Senders without a public "registration_uri" (such as standalone MUAs) may alternatively poll the authenticated status URI.¶
1. POST /mcep/register (Symmetric: Initiator -> Responder, and Responder -> Initiator upon approval; Initiator records the pending cid in its local allowlist to auto-accept reply):¶
{
"auth_mode": "discovery",
"sender": "*@sender.example",
"recipient": "alice@receiver.example",
"sender_scope": "domain",
"purpose_scope": "general",
"cid": "550e8400-e29b-41d4-a716-446655440000",
"kid": "op-2026-q4",
"alg": "ed25519",
"pk": "<base64_public_key>",
"permissions": ["sign"],
"nb": 1767225600,
"exp": 1798761600,
"nonce": "<base64_128bit_nonce>",
"t": 1767225605,
"sig": "<base64_authorization_signature>"
}
¶
2a. 200 OK (Immediate approval via Allowlist or token):¶
{
"status": "active",
"cid": "550e8400-e29b-41d4-a716-446655440000",
"recipient_pk": "<base64_recipient_public_key>",
"expires_at": 1798761600
}
¶
2b. 202 Accepted (Held for explicit recipient approval; pending_expires_at is uniformly computed as t + default_ttl regardless of internal state to prevent state leakage):¶
{
"status": "pending",
"cid": "550e8400-e29b-41d4-a716-446655440000",
"status_uri": "https://receiver.example/mcep/register",
"retry_after": 60,
"pending_expires_at": 1767830405
}
¶
3. GET /mcep/register/{cid} (Fallback status poll - requires fresh timestamp t within +/- 60s and signature from the Initiator's key. Returns 200 OK once approved; all other valid requests uniformly return 202 Accepted without leaking state):¶
{
"status": "active",
"cid": "550e8400-e29b-41d4-a716-446655440000",
"recipient_pk": "<base64_recipient_public_key>",
"expires_at": 1798761600
}
¶
1. POST /mcep/rotate (Initiator rotates an Operational Key using a key holding "rotate" permission, signed with label "MCEP-Rotate-v1"):¶
{
"cid": "550e8400-e29b-41d4-a716-446655440000",
"signer_kid": "policy-2026-01",
"useq": 2,
"new_kid": "op-2027-q1",
"new_alg": "ed25519",
"new_pk": "<base64_new_public_key>",
"permissions": ["sign"],
"nb": 1767225600,
"exp": 1798761600,
"retire_kid": "op-2026-q4",
"grace_seconds": 600,
"nonce": "<base64_128bit_nonce>",
"t": 1767225605,
"rs": "<base64_rotate_signature>"
}
¶
2. 200 OK (Responder activates the new key and transitions the prior key to "retiring" for the grace window):¶
{
"status": "rotated",
"cid": "550e8400-e29b-41d4-a716-446655440000",
"useq": 2,
"active_kid": "op-2027-q1",
"retiring_kid": "op-2026-q4",
"grace_until": 1767226205
}
¶
1a. POST /mcep/revoke (Sender revokes the entire binding, signed with label "MCEP-Revoke-v1"):¶
{
"cid": "550e8400-e29b-41d4-a716-446655440000",
"target": "binding",
"signer_kid": "policy-2026-01",
"nonce": "<base64_128bit_nonce>",
"t": 1767225700,
"rs": "<base64_revoke_signature>"
}
¶
1b. POST /mcep/revoke (Sender revokes a single compromised Operational Key while keeping the binding active):¶
{
"cid": "550e8400-e29b-41d4-a716-446655440000",
"target": "kid",
"kid": "op-2026-q4",
"signer_kid": "policy-2026-01",
"nonce": "<base64_128bit_nonce>",
"t": 1767225705,
"rs": "<base64_revoke_signature>"
}
¶
1c. POST /mcep/revoke (Sender pushes emergency revocation of a compromised Delegated Key, signed by the domain's Root Identity Key):¶
{
"cid": "550e8400-e29b-41d4-a716-446655440000",
"target": "delegated_kid",
"kid": "policy-2026-01",
"nonce": "<base64_128bit_nonce>",
"t": 1767225710,
"rs": "<base64_root_revoke_signature>"
}
¶
2. 200 OK (Immediate local revocation confirmed):¶
{
"status": "revoked",
"cid": "550e8400-e29b-41d4-a716-446655440000",
"target": "binding",
"revoked_at": 1767225700
}
¶
3. POST /mcep/revoke (Asynchronous outbound notification from Receiver to Sender upon recipient-initiated revocation, signed with label "MCEP-RevokeNotify-v1" without disclosing reason):¶
{
"cid": "550e8400-e29b-41d4-a716-446655440000",
"revoked_at": 1767225800,
"nonce": "<base64_128bit_nonce>",
"t": 1767225800,
"rs": "<base64_recipient_notify_signature>"
}
¶
1a. POST /mcep/migrate (Sender updates binding from old-sender.example to new-sender.example, dual-signed with label "MCEP-Migration-v1"):¶
{
"type": "sender_domain",
"cid": "550e8400-e29b-41d4-a716-446655440000",
"old_sender": "*@old-sender.example",
"new_sender": "*@new-sender.example",
"sender_scope": "domain",
"mseq": 1,
"new_kid": "op-2027-q1",
"new_alg": "ed25519",
"new_pk": "<base64_new_public_key>",
"permissions": ["sign"],
"nb": 1767225600,
"exp": 1798761600,
"nonce": "<base64_128bit_nonce>",
"t": 1767225610,
"old_root_sig": "<base64_old_root_key_signature>",
"new_root_sig": "<base64_new_root_key_signature>"
}
¶
1b. POST /mcep/migrate (New MSP submits counter-signed recipient address migration to Sender, dual-signed with label "MCEP-RecipientMigration-v1"):¶
{
"type": "recipient_address",
"cid": "550e8400-e29b-41d4-a716-446655440000",
"old_recipient": "alice@old-msp.example",
"new_recipient": "alice@new-msp.example",
"new_recipient_pk": "<base64_new_recipient_public_key>",
"mseq": 2,
"expires_at": 1767229210,
"nonce": "<base64_128bit_nonce>",
"t": 1767225610,
"old_msp_sig": "<base64_old_msp_signature>",
"new_msp_sig": "<base64_new_msp_signature>"
}
¶
2. 200 OK (Peer accepts migration and updates binding state):¶
{
"status": "migrated",
"type": "sender_domain",
"cid": "550e8400-e29b-41d4-a716-446655440000",
"sender": "*@new-sender.example",
"mseq": 1,
"active_kid": "op-2027-q1"
}
¶
The following non-normative example illustrates the exact length-prefixed ASCII canonical byte sequence ("<len>:<value>") signed by the sender's Operational Key to produce the "s" tag in "MCEP-Signature". In this example, the CRLF-canonicalized body is the UTF-8 string "hello" (SHA-256: "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824") and the canonicalized 7-header block - in exact Section 5.2.3 order ("From", "Reply-To", "To", "Cc", "Subject", "Date", "Message-ID"), with absent headers encoded as "<name>:\r\n" and each line terminated with CRLF - is:¶
from:bob@example.com reply-to: to:alice@example.jp cc: subject:Greeting date:Sat, 21 Nov 2026 12:00:00 +0000 message-id:<20261121120000.001@example.com>¶
Hashing that CRLF-delimited header block yields the SHA-256 digest
"0c023f51063117147783d21cf093375fdb27da18e4cf5ab08aab28612e03a1cb", producing
the following 13 canonical fields (with t=1795262400 matching
Sat, 21 Nov 2026 12:00:00 +0000):¶
17:MCEP-Signature-v1 1:1 36:550e8400-e29b-41d4-a716-446655440000 7:2026-q4 36:9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d 7:ed25519 1:1 10:1795262400 15:bob@example.com 16:alice@example.jp 15:bob@example.com 64:0c023f51063117147783d21cf093375fdb27da18e4cf5ab08aab28612e03a1cb 64:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824¶
Note: Line breaks in the 13-field example above are shown solely for readability. In actual wire computation, the 13 length-prefixed fields are concatenated directly with no separator bytes between them.¶
To assist implementers in verifying interoperability of length-prefixed input construction, Ed25519 signing, and ES256 low-S normalization, reference test vectors derived from Appendix C are provided below.¶
Uses the canonical 13-field byte sequence from Appendix C (with field 6 set to "7:ed25519" and field 8 set to "10:1795262400") and the [RFC8032] Section 7.1 test seed:¶
Private Seed (32 octets): 9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60 Public Key (32 octets): d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a Canonical Input SHA-256: 94a76fc545ee00e86337d2dd300c3d65e5922082a0bcc3cc3179b1d2ff3d98a0 Ed25519 Signature (64 octets): 2d864fb03b64c7e2f342dc363ec677e6a36d0e23338fa07c570b0cdedb5020bb e90099e3276711d0c1e0804d753f1ac8d83c01b850ba98bee1a889d5eb9e110d¶
Uses the canonical 13-field byte sequence from Appendix C with field 6 replaced by "5:es256" and the [RFC6979] Appendix A.2.5 P-256 test private scalar d:¶
Private Scalar d (32 octets): c9afa9d845ba75166b5c215767b1d6934e50c3db36e89b127b8a622b120f6721 Public Key SEC1 Uncompressed (65 octets): 0460fed4ba255a9d31c961eb74c6356d68c049b8923b61fa6ce669622e60f29f b67903fe1008b8bc99a41ae9e95628bc64f2f1b20c2d7e9f5177a3c294d44622 99 Canonical Input SHA-256 (with "5:es256"): 2d67cac431ce20d6cd0df79a799d830730d68cb493928596f80ba366b8d98400 Valid Low-S P1363 Signature (64 octets, s <= n/2, MUST PASS): 13b9fa89e0833ef1cd63592c313428e7abda5ab818486868d4c5835864ac3ee1 040e90ab027e346c46ec1f9911549e23d7287c98fd0e117e27f709a449339b37 Rejected High-S P1363 Signature (64 octets, s' = n - s > n/2, MUST FAIL): 13b9fa89e0833ef1cd63592c313428e7abda5ab818486868d4c5835864ac3ee1 fbf16f53fd81cb94b913e066eeab61dbe5be7e14aa098d06cbc2c11eb32f8a1a¶
The following items are intentionally left open for feedback during early implementation and interoperability testing:¶
/.well-known/mcep-configuration
document directly when DNS TXT records are unavailable or unsigned
(Section 3.1, Section 3.6).¶
"next_root_public_key" field (signed by the current
"root_public_key") in /.well-known/mcep-configuration
so large-scale organizational senders can pre-publish and roll over
Root Identity Keys passively during routine discovery cache refreshes
without sending per-binding POST /mcep/migrate requests
(Section 3.1, Section 3.5).¶
"purpose_scope" identifiers (Section 3.2,
Section 6.3).¶