Internet-Draft MCEP December 2026
Matsuda Expires 4 June 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-matsuda-mcep-00
Published:
Intended Status:
Experimental
Expires:
Author:
M. Matsuda
Independent

Mutual Consent Email Protocol (MCEP): Sender Authentication and Strict Rejection

Abstract

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.

Status of This Memo

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.

▲

Table of Contents

1. Introduction

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.

1.1. Terminology and Requirements Language

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.

Mail Service Provider (MSP):
The inbound or outbound email provider or MTA operating on behalf of a domain.
Forwarder:
An MTA or MSP that receives a message for a recipient address and, instead of delivering it to a local mailbox, automatically re-sends it to a different address in a new SMTP transaction. The term is used as in DKIM2 [I-D.ietf-dkim-dkim2-spec]. Mailing list managers are treated separately (see Section 4.3).
Initiator:
The party (typically the requesting peer or its MSP/MUA) that initiates a Pairwise Binding registration handshake or an out-of-band key rotation, migration, or revocation request.
Responder:
The party (typically the receiving peer or its MSP/MUA) that receives, validates, and approves or processes a registration handshake or out-of-band control-plane request.
Consent:
In the context of MCEP, an explicit technical authorization by a recipient (or by its MSP or MUA on the recipient's behalf) that enables a Pairwise Binding with a specific sender. MCEP consent determines whether mail is accepted or rejected at the transport layer. It is not a record of legal or regulatory consent (for example, opt-in evidence for marketing communications), and MCEP does not provide such evidence.
Consent ID ("cid"):
A lowercase UUID [RFC9562] identifying a single 1-to-1 relationship between one recipient address and one sender. It is fixed at registration and never changes.
Pairwise Binding:
A cryptographically bound 1-to-1 relationship between a specific sender and a specific recipient, identified by a Consent ID ("cid"). Referred to simply as a "binding" throughout the remainder of this document.
Root Identity Key (Tier 1):
A long-term asymmetric key pair held by an organizational sender (typically in an HSM) used solely to authorize Delegated or Operational Keys, sign key updates, and issue revocations.
Delegated Key (Tier 2, optional):
An optional intermediate key pair delegated by the Root Identity Key in the domain's discovery configuration, authorized to perform delegated administrative operations such as binding registration ("register"), Operational Key rotation ("rotate"), and revocation ("revoke").
Operational Key (Tier 3):
A short-term asymmetric key pair, identified by "kid", used by a sender to sign individual outbound messages.
Message ID (mid):
A lowercase UUID generated once per message and unchanged across all retransmissions of that message.
Dormant:
The state of a binding that has seen no verified traffic for a configured inactivity period. It is not a revocation (Section 6.3).
Strict Reject:
The inbound enforcement behavior (governed by flag 0x02) that rejects messages lacking a valid binding during the SMTP transaction (SMTP 550) rather than accepting or quarantining them.
Selective Reject:
The inbound enforcement behavior (governed by flag 0x01) that rejects unsigned or invalidly signed messages claiming to originate from a sender with an active binding during the SMTP transaction (SMTP 550).

1.2. Problem Statement

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).

Table 1: Outcome of Attack Scenarios
# 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)
Note 1:
Only if the sender's domain publishes a policy of "reject" or "quarantine".
Note 2:
Scoped keys, short validity periods, and revocation (Section 8) limit the impact, but messages signed with the key are accepted until it is revoked or expires.
Note 3:
An MSP that holds keys for a recipient can use them.

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.

2. Protocol Architecture, Policy Model, and Address Classes

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.

3. Discovery, Onboarding, Fallback, and Migration

3.1. Endpoint Discovery

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):

  • v=MCEP1 (REQUIRED): Protocol version identifier (MUST appear first).
  • cfg=<sha256_hex> (REQUIRED): Lowercase hexadecimal SHA-256 digest of the exact UTF-8 byte sequence of the published JSON configuration document.
  • rk=<sha256_hex> (OPTIONAL): Lowercase hexadecimal SHA-256 digest of the raw public key bytes of "root_public_key" (present when "root_public_key" is configured).

The JSON configuration object defines the fields listed in Table 2:

Table 2: MCEP Discovery Configuration JSON Fields
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:

  • Reserved Identifier Exclusion: Its "kid" MUST NOT be the reserved identifier "root".
  • Bounded Validity Period: It SHOULD carry a bounded validity period ("exp - nb", e.g., at most 30 days) so compromised keys expire automatically even if all revocation signals are lost.
  • Root Signature Verification: It MUST include a "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:

Table 3: Tier 2 Delegated Key Cache Evaluation Rules
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:

  • TLS Version and Certificate Validation: Use HTTPS over TLS 1.3 or higher [RFC9846] with strict X.509 certificate chain and hostname validation; plaintext HTTP MUST NOT be used.
  • No HTTP Redirects: HTTP redirects (3xx responses) MUST NOT be followed; any redirect response MUST be rejected as a fetch failure.
  • Strict Timeout and Response Size Limits: Enforce bounded connection and read timeouts (e.g., 5 to 10 seconds) and reject response bodies exceeding a strict maximum size limit (e.g., 64 KiB) to prevent resource exhaustion.
  • Loopback, Link-Local, and Private IP Rejection (SSRF Prevention): Resolve target hostnames prior to connection and MUST reject any connection resolving to loopback, link-local, multicast, reserved, or private IPv4/IPv6 address ranges (including [RFC1918] and [RFC4193] ranges), re-validating the connected peer IP address to prevent DNS rebinding attacks.

3.2. Authenticated Registration Handshake

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:

  • Tier 2 Delegated Key: A Delegated Key listed in the Initiator's discovery document ("delegated_keys") explicitly holding "register" permission directly under the Initiator's "root_public_key" (multi-hop delegation chains are not permitted).
  • Tier 1 Root Identity Key: The Initiator's top-level "root_public_key" itself, when no Delegated Key is used.
  • Initial Operational Key (Self-Signed Mode): The initial Operational Key itself, strictly for self-signed peer-to-peer relationships without a Root Identity Key ("auth_mode": "self-signed").

The registration JSON payload carries the following fields:

  • "cid" (REQUIRED): A newly generated lowercase UUIDv4 Consent ID.
  • "auth_mode" (REQUIRED): Explicit authentication mode, either "discovery" or "self-signed".
  • "sender" and "recipient" (REQUIRED): Normalized sender and recipient identifiers.
  • "sender_scope" (REQUIRED): Either "exact" or "domain" (see below).
  • "kid", "alg", "pk", "nb", and "exp" (REQUIRED): Initial Operational Key identifier, algorithm, public key material, and validity bounds (plus optional "permissions", defaulting per Section 6.1).
  • "nonce", "t", and "sig" (REQUIRED): Fresh 128-bit nonce, UNIX timestamp, and canonical request signature (Section 3.6).
  • "purpose_scope" (OPTIONAL): Requested purpose scope ("general", "mandatory_transactional", "optional_marketing", or "mailing_list"; defaults to "general" if omitted).
  • "root_public_key" (OPTIONAL): Organizational Tier 1 Root Identity Key object (when applicable).

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:

Table 4: Combinations of Authentication Mode and Sender Scope
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).

3.3. Fallback for Domains Not Capable of MCEP

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.

3.4. Peer-to-Peer Onboarding and First-Contact Policies

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):

  1. Prior Revocation or Block-List Match: If the sender has a prior revocation history for that recipient (Section 8) or matches a recipient block list - and has not been explicitly re-authorized after that revocation via a newly issued invitation token or post-revocation Sender Allowlist entry - the receiver MUST NOT auto-approve the request on any address class (including "public" 0x00, "public-strict" 0x02, and "public-guarded" 0x06), and MUST instead hold it in "pending" state or silently discard it locally per Section 8.
  2. Invitation Token or Allowlisted Discovery Sender: If the request presents a valid recipient-issued invitation token, or matches the local Sender Allowlist (Section 10.4) with a verified domain discovery configuration (Section 3.1), the receiver MUST auto-approve and activate the binding immediately across all address classes.
  3. Public-Class Discovery Sender: If the target address uses a public-facing class ("public" 0x00, "public-strict" 0x02, or "public-guarded" 0x06) and the sender is authenticated via its domain discovery configuration (Section 3.1), the receiver MUST auto-approve and activate the binding immediately subject to the rate limits in Section 8.
  4. All Remaining Requests (Default Pending): For all other requests - including unauthenticated self-signed requests lacking both domain discovery and an invitation token, as well as discovery-verified senders on "basic" (0x01), "strict" (0x03), or "guarded" (0x07) not matched above - the receiver MUST place the registration in "pending" state rather than auto-approving it.

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:

  • Eligible Targets Only: Automated challenge transmission MUST be restricted strictly to target addresses configured for public auto-registration ("public" 0x00, "public-strict" 0x02, or "public-guarded" 0x06) or senders explicitly pre-authorized in the recipient's local Sender Allowlist (Section 10.4).
  • Strict Rate Limits: The receiving MSP MUST enforce strict per-target-mailbox rate limits (e.g., at most one challenge per 24 hours) as well as per-source-IP rate limits.

When permitted, Return-Routability Verification proceeds in four steps:

  1. Challenge Transmission (Responder): The receiving MSP sends a verification email containing only the pending "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.
  2. Local Pending Match (Initiator): Upon receiving a challenge email, the Initiator's MUA MUST process it only if the referenced "cid" matches an active local pending registration initiated by that MUA toward the matching responder domain, ignoring all unsolicited or unknown challenge messages.
  3. Signed HTTPS Confirmation (Initiator): The Initiator's MUA MUST submit the signed confirmation payload (signed by the Initiator's registered key under domain-separation label "MCEP-Register-v1") strictly to the pinned "registration_uri" discovered over HTTPS for that target domain.
  4. Binding Activation (Responder): Once the Responder verifies the unexpired nonce and signature, it immediately promotes the binding from "pending" to "active" and returns HTTP 200 OK with its public key ("recipient_pk").

3.5. Domain and Key Migration

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:

  1. Publish New Discovery Record (Sender): Before submitting the rotation request, the sender MUST publish the new "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.
  2. Submit Dual-Signed Rotation Request (Sender): The request MUST carry the proposed new Root Identity 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").
  3. Verify Signatures and Live Discovery (Receiver): Upon receiving the request, the receiver MUST first verify "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).
  4. Atomic Key Update (Receiver): Once live discovery matches, the receiver MUST atomically update the binding's pinned Root Identity Key immediately upon verification. If accompanying Operational Key fields ("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:

  • All Address Classes Permitted (No 7-Day Hold): Because the sender's domain identity does not change, same-domain Root Identity Key rotation is permitted across all address classes (including "strict" 0x03), does not count toward cross-domain migration limits, and takes effect immediately without requiring the 7-day cross-domain hold window.
  • Compromised or Lost Key Prohibition: If the old Root Identity Key is lost or suspected compromised, planned rotation MUST NOT be used; affected bindings MUST instead be revoked and re-established via Section 3.2.

Exceptional Automatic Migration: A receiver MAY complete a sender domain migration without explicit recipient approval only if all of the following conditions hold:

  • Non-Strict Address Class: The target recipient address is not configured in "strict" (0x03) mode.
  • Explicit Recipient Opt-In: The recipient has explicitly opted into automatic migration (default: disabled).
  • Single Cross-Domain Automatic Migration Limit: The binding has not previously undergone a cross-domain automatic migration (maximum of one cross-domain automatic migration per Consent ID, excluding same-organization subdomain changes authorized under the same Root Identity Key).
  • Uncontested 7-Day Hold Window: The minimum 7-day pending hold window has elapsed without cancellation by either the recipient or the original sender.
  • Unrevoked Old Root Identity Key: The old Root Identity Key remains unrevoked and valid throughout the hold window.
  • Continuous Pre-Migration Declaration Observation: The old domain continuously published a signed migration declaration via both DNS and HTTPS (at its advertised "declaration_uri") for at least 14 days prior to the migration notice as verified from the receiver's own observation records (receivers MUST NOT rely on timestamps asserted inside the declaration itself, and any content change resets the observation period).
  • Multi-Channel Notification and Revert Window: The recipient has been notified via at least two independent channels and provided with a post-migration revert window.

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.

3.6. Out-of-Band Control Plane Request Signing

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:

  • POST /mcep/register ("sig"): Domain-separation label "MCEP-Register-v1".
  • POST /mcep/rotate ("rs"): Domain-separation label "MCEP-Rotate-v1".
  • POST /mcep/revoke ("rs"): Domain-separation label "MCEP-Revoke-v1" (covering all request fields including "target" - such as "binding", "kid", or "delegated_kid" - and "kid" when present).
  • Outbound Revocation Callback Notification ("rs"): Domain-separation label "MCEP-RevokeNotify-v1" (computed over asynchronous revocation notification payloads sent to a peer's "revocation_uri").
  • POST /mcep/migrate - Sender Domain / Root Key ("old_root_sig" and "new_root_sig"): Domain-separation label "MCEP-Migration-v1" (when "type" is "sender_domain" or "root_key_rotation").
  • POST /mcep/migrate - Recipient Address ("old_msp_sig" and "new_msp_sig"): Domain-separation label "MCEP-RecipientMigration-v1" (when "type" is "recipient_address").
  • Status Poll Request ("sig"): Domain-separation label "MCEP-Status-v1".
  • Discovery Document Delegated Keys ("root_sig"): Domain-separation label "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).

4. Message Transmission, Verification Pipeline, and Error Handling

4.1. Inbound Verification 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:

  1. 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).

    • If validation succeeds, the MTA MUST immediately mark the binding as permanently revoked, invalidate cached keys, and reject the control message with the uniform response of Section 4.4 so it is never delivered.
    • If validation fails, the MTA MUST immediately reject the message with the same uniform response without altering any binding state.

    Proceed to Stage 1b only if no "MCEP-Revocation" header is present.

  2. 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:

    1. Applicability Gate: Determine whether the message is subject to MCEP signature verification (under Strict Reject modes 0x02, 0x03, 0x06, or 0x07; when claiming a registered sender under Basic mode 0x01; or when an "MCEP-Signature" header is present). Messages not subject to MCEP signature verification bypass MCEP header enforcement and follow standard recipient policy (Section 4.6).
    2. Single Header & Timestamp Window: The MTA MUST verify that the message contains exactly one "From" header (containing a single mailbox address) and exactly one "MCEP-Signature" header, strictly parse all required tags, and verify that the signature timestamp ("t") falls within an asymmetric window relative to the MTA's reception time: no more than 60 seconds in the future and no more than 300 seconds in the past.
    3. Binding Lookup & Policy Routing: Retrieve the binding for ("cid", envelope recipient) prior to body reception. If no binding exists for "cid" under "public" (0x00) or "basic" (0x01) mode and the normalized "From" header does not match any active or dormant binding for that recipient, the MTA MAY either reject the message immediately or classify it as an unverified message with a failed signature governed by recipient policy (Section 4.6). In all other cases (including modes 0x02, 0x03, 0x06, and 0x07, or whenever "From" matches an existing binding), an unknown, missing, or permanently revoked binding MUST be rejected immediately.
    4. Sender Alignment: Where a valid binding exists, the MTA MUST verify that it is not permanently revoked and matches the normalized "From" header address (either by exact mailbox match or by domain match for a domain-wide binding).
    5. Key Resolution (Update vs. Active Key): If an "MCEP-Key-Update" header is present, the MTA MUST validate and cryptographically verify the key update first (Section 5.3) to obtain a provisional verification key for this transaction without committing state yet. Otherwise, the MTA MUST verify that the binding is active (not dormant), the key ("kid") is valid and within its validity period, and the header's "alg" matches the registered key algorithm.
  3. 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.

  4. 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):

    • If "seq == last_seq" and the signature ("s") is octet-for-octet identical to the last accepted signature, the MTA MUST accept the SMTP transaction (250 OK) while silently discarding duplicate delivery.
    • Any other message with "seq <= last_seq" MUST be rejected using the uniform response of Section 4.4 (regardless of whether caused by a replay attempt or out-of-order transmission).
  5. 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"):

    • If ("cid", "mid") was already processed with identical values, the MTA MUST accept at SMTP level (250 OK), update "last_seq", and discard duplicate delivery.
    • If ("cid", "mid") exists with different values, the MTA MUST reject the message without updating state.
  6. 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.

4.2. Retries, Multiple Recipients, and Bounces

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:

  • Valid DSN Report Structure: The message is formatted as a valid [RFC3464] multipart/report with report-type=delivery-status.
  • Outbound Record Correlation: The attached original headers carry an "MCEP-Signature" whose ("cid", "mid") matches an active, unrevoked outbound binding and whose signature value (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.
  • Bounded Bounce Window: The recorded outbound transmission timestamp is within a bounded bounce window (e.g., at most 5 to 7 days prior to DSN reception).
  • Single-Consumption Replay Protection: The referenced ("cid", "mid") has not already been consumed by a prior DSN (accepting at most one DSN per ("cid", "mid")).

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.

4.3. Intermediaries, Forwarding, and Delegated Senders

MCEP treats each SMTP hop that changes the envelope as a separate sender-recipient relationship:

  1. Redirection inside the receiving MSP (no new SMTP hop): the MCEP check applies at the first MX and no re-signing is needed.
  2. Forwarding to another provider: the Forwarder is the sender toward the downstream MSP. It MUST verify the inbound "MCEP-Signature" where the address it received mail for is protected, MUST strip it before relaying, and MUST re-sign using its own binding with the downstream recipient. Addresses using a Strict Reject mode accept forwarded mail only from a Forwarder with an active binding.
  3. Mailing lists: the list manager is the sender toward each subscriber, using the "mailing_list" purpose scope.

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.

4.4. Response Uniformity and Transient Failures

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.

4.5. Monitoring Mode

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.

4.6. Handling of Unverified Messages

Handling of unverified messages depends on the recipient address's active policy mode (Section 2):

  • "strict" (0x03) and "public-strict" (0x02): A receiver MUST reject during the SMTP transaction any message that lacks a valid "MCEP-Signature" or fails verification, and MUST NOT quarantine or deliver it.
  • "guarded" (0x07) and "public-guarded" (0x06): A receiver MUST reject during the SMTP transaction any message lacking a valid binding unless the sender is explicitly pre-authorized as a non-MCEP sender in the recipient's local Sender Allowlist (Section 10.4). Messages delivered via the Sender Allowlist MUST be clearly surfaced to the recipient as lacking MCEP cryptographic protection.
  • "basic" (0x01) and "public" (0x00): The handling of unverified messages from unregistered senders (reject, quarantine, or mark as unverified) is governed by recipient policy and MUST be clearly surfaced to the recipient. Quarantined messages MUST be marked as unverified, distinguishing failed signatures from absent ones, and links or attachments SHOULD NOT be presented as actionable.
  • Protection of Existing Bindings Across Restricted Modes: Under any mode enforcing 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.

5. Header Field Definitions and Cryptographic Algorithms

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"="

5.1. Supported Cryptographic Algorithms

ed25519 (RECOMMENDED for servers):
EdDSA over Curve25519 [RFC8032] with 32-octet public keys and 64-octet signatures (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.
es256 (RECOMMENDED for mobile hardware keystores):
ECDSA using NIST P-256 and SHA-256. Public keys are encoded as 65-octet SEC1 uncompressed points. Signatures MUST be encoded in fixed 64-octet IEEE P1363 raw format (R || S), matching Section 3.4 of [RFC7518], prior to Base64 encoding; DER encoding MUST NOT be used. In addition, a sender MUST normalize the signature to low-S (s not greater than n/2, where n is the order of the curve), and a receiver MUST reject a signature whose r or s is zero or not less than n, or whose s is greater than n/2.

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.

5.2. MCEP-Signature

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.

5.2.1. Syntax

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>

5.2.2. Identifiers

cid:
The fixed Consent ID identifying the binding.
kid:
Identifies the Operational Key used to sign the message.
mid:
A lowercase UUID generated once when the message is first signed. It MUST remain unchanged across all retransmissions, including those re-signed with a new "seq" and "t", and MUST NOT be reused for another message.
seq:
A monotonically increasing counter assigned by the sender per Consent ID and "kid". Gaps are permitted. A new "kid" starts an independent series and MAY begin at 1. A sender MUST persist the counter before using a value.
t:
Signing time in seconds since the UNIX epoch (UTC).

5.2.3. Signed Data

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>"):

  1. "MCEP-Signature-v1" (domain separation label)
  2. "v" (protocol version integer string, "1")
  3. "cid" (lowercase UUID string)
  4. "kid" (key identifier string)
  5. "mid" (lowercase message UUID string)
  6. "alg" (lowercase algorithm identifier: "ed25519" or "es256")
  7. "seq" (base-10 unsigned 64-bit integer string)
  8. "t" (base-10 UNIX timestamp in seconds)
  9. "envelope-from" (ASCII-only normalized lowercase single mailbox address from SMTP MAIL FROM, or empty string for the null reverse-path "<>")
  10. "envelope-to" (ASCII-only normalized lowercase single envelope recipient from SMTP RCPT TO)
  11. "header-from" (ASCII-only normalized lowercase single mailbox address from the From header)
  12. "headers-hash" (lowercase hex SHA-256 digest of core headers, defined below)
  13. "body-hash" (lowercase hex SHA-256 digest of the CRLF-canonicalized body)

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.

5.2.4. Address Normalization

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.

5.3. MCEP-Key-Update

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:

  1. "MCEP-KeyUpdate-v1" (domain separation label)
  2. "v" (protocol version integer string, "1")
  3. "cid" (lowercase UUID string)
  4. "signer_kid" (authority signing key identifier string, or "root")
  5. "new_kid" (new key identifier string)
  6. "new_alg" (lowercase algorithm identifier for the new key: "ed25519" or "es256")
  7. "new_pk" (Base64-encoded public key material)
  8. "nb" (not-before UNIX timestamp in seconds)
  9. "exp" (expiration UNIX timestamp in seconds)
  10. "useq" (monotonically increasing update sequence number)

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:

  • "cid" matches the "cid" of the accompanying "MCEP-Signature" header field;
  • "signer_kid" resolves to an unrevoked authority key holding "rotate" permission for the binding, and "rs" verifies against that key;
  • "nb" is not later than current reception time plus 60 seconds, "exp" is greater than current reception time, and the validity interval ("exp - nb") is within the MSP's configured maximum;
  • "useq" is strictly greater than the highest accepted "useq" for the binding;
  • "new_kid" is not the reserved identifier "root", has never been previously registered for the binding (including expired or revoked keys), and "new_alg" is supported.

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".

5.4. MCEP-Revocation

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:

  1. "MCEP-Revocation-v1" (domain separation label)
  2. "v" (protocol version integer string, "1")
  3. "cid" (lowercase UUID string)
  4. "signer_kid" (authority signing key identifier string, or "root")
  5. "alg" (lowercase algorithm identifier: "ed25519" or "es256")
  6. "t" (base-10 UNIX timestamp in seconds)

An inbound MTA MUST enforce the following processing rules when handling "MCEP-Revocation":

  • Evaluation Order: The MTA MUST evaluate "MCEP-Revocation" before enforcing the presence of an "MCEP-Signature" header, ensuring that a revocation-only emergency message is neither prematurely rejected for lacking a signature nor accepted without processing the revocation.
  • Single Header and Fail-Closed Rejection: A message MUST carry at most one "MCEP-Revocation" header. If the header is malformed, repeated, outside the timestamp window, fails signature verification, or specifies a "signer_kid" that lacks "revoke" permission (such as an Operational Key when a Root Identity Key is registered for the binding), the MTA MUST immediately reject the message with the uniform response of Section 4.4 (regardless of whether a valid "MCEP-Signature" is present) and MUST NOT alter any binding state.
  • Revocation Execution and Termination: Upon successful verification, the MTA MUST immediately mark the binding as permanently revoked, invalidate cached key entries, and reject the control message carrying the header so it is not delivered to the user's mailbox. When signed with 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.
  • Idempotence: A revocation already applied is not an error; the message is rejected as above.

6. Keys, Lifecycle States

6.1. Key Permissions Advertisement and Enforcement

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:

  • Discovery Document Advertisement ("/.well-known/mcep-configuration"): Organization-wide or Delegated Keys MAY be published in the sender's discovery JSON document with explicit "permissions", validity bounds ("nb", "exp"), and address scope ("key_scope"), authenticated by an embedded "root_sig" signature computed by the domain's "root_public_key" as specified in Section 3.1. Receivers MUST verify each Delegated Key's "root_sig" against the pinned or validated "root_public_key" when fetching or refreshing the sender's discovery configuration, and MUST reject any Delegated Key whose signature fails verification.
  • Per-Binding Registration or Rotation ("registration_uri" / Key Update): Per-binding Operational Keys ("kid") declare their permissions during the initial registration handshake (Section 3.2) or during a signed key rotation (Section 5.3), authorized by a key holding "register" or "rotate" permission. The receiving MSP stores the permitted operations alongside ("cid", "kid").

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.

6.2. Key States and Pre-Registration Rollover

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.

6.3. Binding Dormancy and Resumption

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.

7. Privacy Considerations

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.

9. Security Considerations

+---------------------------------------------------------------+
| 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 |
+-------------------+ +-------------------+ +-------------------+

10. Operational Considerations

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.

10.1. Deployment and Fail-Safe Configuration

  • Phased Rollout and Fail-Safe Milter Configuration: Operators should run newly protected addresses in Monitoring Mode (Section 4.5) prior to enabling Strict Reject to identify legitimate senders without causing unintended delivery failures. Inbound Milter integrations should default to a temporary failure (SMTP 4xx) if the filter process becomes unavailable so mail is queued rather than lost.
  • MSP Entry Points and Per-Recipient Transport: Consistent with Section 4.1 and Section 9, an MSP can apply MCEP to entry points receiving mail from external domains while leaving internal entry points outside scope, provided those internal entry points are isolated from external access rather than exempted based on claimed client identity. Outbound mail to external protected addresses is signed and transmitted one recipient per transaction (e.g., via a recipient limit of one on the outbound transport). For "public" class addresses, signature verification results may be passed downstream in an authentication results header field.
  • Approval Presentation, Decision History, and Rejected Message Handling: How a pending registration is presented is an implementation matter; matching a short code shown by the sender on the approval screen resists phishing. For registration requests surfaced to the user (excluding silently discarded requests), receiving MSPs and MUAs may retain a user-accessible decision history (recording sender identity, decision outcome, and timestamp) in the recipient's management interface so users can review active consents or recover from an accidental rejection by adding the sender to their local Sender Allowlist (Section 10.4). Senders should keep rejected messages in their queue, contact the recipient via another channel, and re-send after re-registration, while receivers may display a summary of rejected messages (sender domain, time, and count). To mitigate distributed registration spam from numerous distinct sources without causing approval fatigue, receiving MSPs and MUAs may cap per-recipient pending queue sizes, suppress real-time notifications for unverified self-signed requests (surfacing them silently in a secondary queue), or temporarily tighten first-contact policy during burst spikes.
  • Sender Self-Verification: Because receiving MTAs return uniform error responses across all failures, senders should self-verify their generated "MCEP-Signature" and "MCEP-Revocation" headers prior to transmission.
  • Key Custody and Physical Backup by Scale: Large organizations typically store Root Identity Keys in HSMs with multi-person approval; smaller senders may use KMS or hardware tokens; individual users may rely on MSP custody, device secure hardware, or encrypted offline paper backups (e.g., Argon2id + AEAD).
  • Out-of-Band Pairing Tokens: Registration tokens or long-lived identity fingerprints may be exchanged face-to-face via QR codes (as an entry to an approval step rather than direct evidence of trust); short-lived Operational Keys should not be embedded in static QR codes.
  • Pre-Flight Key Rollover for Bulk Senders: High-volume senders and Email Service Providers (ESPs) resuming mailings after extended inactivity should perform out-of-band key rotation via "key_rotate_uri" (Section 6.2) prior to SMTP submission to distinguish active or auto-resumed bindings from "pending" or revoked entries, preventing outbound SMTP queue congestion.
  • Distributed Sender Sequencing: Because sequence numbers ("seq") are tracked monotonically per ("cid", "kid") pair, senders do not need to restrict standard MTA domain-level concurrency. Instead, the MCEP signing module (e.g., Milter or outbound gateway) should either serialize signing and transmission per individual "cid" using a lightweight lock (preserving full parallel throughput across distinct recipients at the same destination domain), or allocate distinct Operational Keys ("kid") per sending worker so parallel deliveries cannot cause out-of-order sequence rejections.
  • Tier 2 Delegated Key Pre-Publication Warm-Up and Revocation Latency: When adding a new Delegated Key to "delegated_keys" in the discovery document, administrators should wait at least "delegated_keys_max_age" seconds (plus DNS TTL) before signing in-band SMTP headers ("MCEP-Key-Update" or "MCEP-Revocation") with that new key so peer caches naturally expire and refresh without triggering initial SMTP 451 deferrals; if immediate use is required prior to cache expiry, operators can use out-of-band HTTPS endpoints or sign with 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.

10.3. Long-Term Coexistence and Transition Strategy

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:

  • Strict-Equivalent Protection for Bound Peers on "basic" and "guarded": While "basic" (0x01) accepts unverified mail from unbound senders (e.g., via quarantine or unverified marking) and "guarded" (0x07) rejects unbound senders except for pre-authorized non-MCEP senders on the local Sender Allowlist, once a pairwise binding ("cid") is established with an MCEP-capable sender, both modes enforce the exact same cryptographic verification and rejection rules as "strict" (0x03) for all traffic from that peer. Consequently, "strict" (0x03) requires no legacy bypass exceptions and remains reserved for dedicated MCEP-only aliases or post-transition environments.
  • Unified Sender Allowlist (Seamless MCEP and Legacy Handling): To avoid maintaining separate lists during transition periods, users may manage a single local Sender Allowlist. When a listed sender's domain supports MCEP, their on-send HTTPS registration request is automatically approved into a cryptographic "cid" binding, and unauthenticated bypasses are strictly disallowed to prevent downgrade attacks. When a listed sender operates a non-MCEP server, a "basic" (0x01) or "guarded" (0x07) address delivers their mail to the primary inbox provided it passes aligned SPF or DKIM authentication (DMARC pass), while clearly indicating in the user interface that MCEP cryptographic protection is absent. Once that sender's domain later deploys MCEP, the entry seamlessly transitions to MCEP binding enforcement without user reconfiguration. For rare legacy endpoints lacking valid SPF or DKIM alignment, implementations may optionally permit an explicit, user-acknowledged per-address override (never domain-wide wildcards) with a prominent spoofing-risk warning, though such legacy overrides are transitional and expected to be phased out as domain authentication becomes universal.
  • Role Separation for Public-Facing Addresses: Because a single address cannot simultaneously accept arbitrary unauthenticated first contacts and enforce strict pre-authorized consent, users should separate public-facing intake addresses ("public" or "basic") from high-assurance personal addresses ("guarded" or "strict") using distinct aliases (preferred), per-tag policies on "+" subaddresses where supported by the MSP, or separate accounts.

10.4. Local Sender Allowlist Management

A receiving MSP or MUA implementing a local Sender Allowlist stores recipient-scoped entries containing:

  • Target and Allowed Identity: The target "recipient", the pre-authorized "allowed_sender", and "sender_scope" ("exact" or "domain", with "domain" disallowed for shared webmail providers).
  • Lifecycle Attributes: An optional expiration timestamp ("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:

  1. State 1 - Non-MCEP Sender (Legacy Delivery): On "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).
  2. State 2 - Transition to Self-Signed MCEP (MUA Only): If only the sender's individual MUA adopts self-signed MCEP without publishing domain discovery, the receiving MSP/MUA holds the incoming registration request in "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").
  3. State 3 - Transition to Discovery-Verified MCEP (Full Domain Deployment): When the sender's domain publishes a valid discovery configuration (Section 3.1), the incoming registration request is auto-approved immediately into an active cryptographic binding after full discovery, key, signature, and replay verification. Single-use allowlist entries should be consumed (removed) upon successful binding activation.

11. IANA Considerations

11.1. Message Header Field Registrations

This document requests IANA to register the following header fields in the "Permanent Message Header Field Names" registry [RFC3864]:

  • Header field name: MCEP-Signature
    Applicable protocol: mail
    Status: experimental
    Author/Change controller: IETF
    Specification document: This document (Section 5.2)
  • Header field name: MCEP-Key-Update
    Applicable protocol: mail
    Status: experimental
    Author/Change controller: IETF
    Specification document: This document (Section 5.3)
  • Header field name: MCEP-Revocation
    Applicable protocol: mail
    Status: experimental
    Author/Change controller: IETF
    Specification document: This document (Section 5.4)

11.2. Underscored DNS Node Name Registration

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.

11.3. Well-Known URI Registration

This document requests IANA to register the following Well-Known URI suffix in the "Well-Known URIs" registry [RFC8615]:

  • URI suffix: mcep-configuration
  • Change controller: IETF
  • Specification document: This document (Section 3.1)
  • Status: provisional

12. References

12.1. Normative References

[RFC1918]
Rekhter, Y., Moskowitz, B., Karrenberg, D., de Groot, G. J., and E. Lear, "Address Allocation for Private Internets", BCP 5, RFC 1918, DOI 10.17487/RFC1918, , <https://www.rfc-editor.org/info/rfc1918>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC3864]
Klyne, G., Nottingham, M., and J. Mogul, "Registration Procedures for Message Header Fields", BCP 90, RFC 3864, DOI 10.17487/RFC3864, , <https://www.rfc-editor.org/info/rfc3864>.
[RFC4193]
Hinden, R. and B. Haberman, "Unique Local IPv6 Unicast Addresses", RFC 4193, DOI 10.17487/RFC4193, , <https://www.rfc-editor.org/info/rfc4193>.
[RFC4648]
Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, , <https://www.rfc-editor.org/info/rfc4648>.
[RFC5234]
Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, DOI 10.17487/RFC5234, , <https://www.rfc-editor.org/info/rfc5234>.
[RFC5321]
Klensin, J., "Simple Mail Transfer Protocol", RFC 5321, DOI 10.17487/RFC5321, , <https://www.rfc-editor.org/info/rfc5321>.
[RFC5322]
Resnick, P., Ed., "Internet Message Format", RFC 5322, DOI 10.17487/RFC5322, , <https://www.rfc-editor.org/info/rfc5322>.
[RFC7518]
Jones, M., "JSON Web Algorithms (JWA)", RFC 7518, DOI 10.17487/RFC7518, , <https://www.rfc-editor.org/info/rfc7518>.
[RFC8032]
Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, DOI 10.17487/RFC8032, , <https://www.rfc-editor.org/info/rfc8032>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC8552]
Crocker, D., "Scoped Interpretation of DNS Resource Records through "Underscored" Naming of Attribute Leaves", BCP 222, RFC 8552, DOI 10.17487/RFC8552, , <https://www.rfc-editor.org/info/rfc8552>.
[RFC8615]
Nottingham, M., "Well-Known Uniform Resource Identifiers (URIs)", RFC 8615, DOI 10.17487/RFC8615, , <https://www.rfc-editor.org/info/rfc8615>.
[RFC9562]
Davis, K., Peabody, B., and P. Leach, "Universally Unique IDentifiers (UUIDs)", RFC 9562, DOI 10.17487/RFC9562, , <https://www.rfc-editor.org/info/rfc9562>.
[RFC9846]
Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 9846, DOI 10.17487/RFC9846, , <https://www.rfc-editor.org/info/rfc9846>.
[RFC9989]
Herr, T., Ed. and J. Levine, Ed., "Domain-Based Message Authentication, Reporting, and Conformance (DMARC)", RFC 9989, DOI 10.17487/RFC9989, , <https://www.rfc-editor.org/info/rfc9989>.

12.2. Informative References

[RFC3207]
Hoffman, P., "SMTP Service Extension for Secure SMTP over Transport Layer Security", RFC 3207, DOI 10.17487/RFC3207, , <https://www.rfc-editor.org/info/rfc3207>.
[RFC3461]
Moore, K., "Simple Mail Transfer Protocol (SMTP) Service Extension for Delivery Status Notifications (DSNs)", RFC 3461, DOI 10.17487/RFC3461, , <https://www.rfc-editor.org/info/rfc3461>.
[RFC3464]
Moore, K. and G. Vaudreuil, "An Extensible Message Format for Delivery Status Notifications", RFC 3464, DOI 10.17487/RFC3464, , <https://www.rfc-editor.org/info/rfc3464>.
[RFC4303]
Kent, S., "IP Encapsulating Security Payload (ESP)", RFC 4303, DOI 10.17487/RFC4303, , <https://www.rfc-editor.org/info/rfc4303>.
[RFC5905]
Mills, D., Martin, J., Ed., Burbank, J., and W. Kasch, "Network Time Protocol Version 4: Protocol and Algorithms Specification", RFC 5905, DOI 10.17487/RFC5905, , <https://www.rfc-editor.org/info/rfc5905>.
[RFC6376]
Crocker, D., Ed., Hansen, T., Ed., and M. Kucherawy, Ed., "DomainKeys Identified Mail (DKIM) Signatures", STD 76, RFC 6376, DOI 10.17487/RFC6376, , <https://www.rfc-editor.org/info/rfc6376>.
[RFC6979]
Pornin, T., "Deterministic Usage of the Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA)", RFC 6979, DOI 10.17487/RFC6979, , <https://www.rfc-editor.org/info/rfc6979>.
[RFC7208]
Kitterman, S., "Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1", RFC 7208, DOI 10.17487/RFC7208, , <https://www.rfc-editor.org/info/rfc7208>.
[RFC7672]
Dukhovni, V. and W. Hardaker, "SMTP Security via Opportunistic DNS-Based Authentication of Named Entities (DANE) Transport Layer Security (TLS)", RFC 7672, DOI 10.17487/RFC7672, , <https://www.rfc-editor.org/info/rfc7672>.
[RFC8461]
Margolis, D., Risher, M., Ramakrishnan, B., Brotman, A., and J. Jones, "SMTP MTA Strict Transport Security (MTA-STS)", RFC 8461, DOI 10.17487/RFC8461, , <https://www.rfc-editor.org/info/rfc8461>.
[RFC8601]
Kucherawy, M., "Message Header Field for Indicating Message Authentication Status", RFC 8601, DOI 10.17487/RFC8601, , <https://www.rfc-editor.org/info/rfc8601>.
[RFC8617]
Andersen, K., Long, B., Ed., Blank, S., Ed., and M. Kucherawy, Ed., "The Authenticated Received Chain (ARC) Protocol", RFC 8617, DOI 10.17487/RFC8617, , <https://www.rfc-editor.org/info/rfc8617>.
[I-D.ietf-dkim-dkim2-spec]
Clayton, R., Chuang, W., and B. Gondwana, "DomainKeys Identified Mail Signatures v2 (DKIM2)", Work in Progress, Internet-Draft, draft-ietf-dkim-dkim2-spec-09, , <https://datatracker.ietf.org/doc/html/draft-ietf-dkim-dkim2-spec-09>.
[I-D.saez-xcim]
Saez, D., "eXplicit Consent-Identified Mail (XCIM)", Work in Progress, Internet-Draft, draft-saez-xcim-04, , <https://datatracker.ietf.org/doc/html/draft-saez-xcim-04>.
[I-D.uimonen-veif]
Uimonen, S., "Verified Email Identity Framework (VEIF)", Work in Progress, Internet-Draft, draft-uimonen-veif-02, , <https://datatracker.ietf.org/doc/html/draft-uimonen-veif-02>.
[I-D.hardt-email-verification]
Hardt, D. and S. Goto, "Email Verification Protocol", Work in Progress, Internet-Draft, draft-hardt-email-verification-02, , <https://datatracker.ietf.org/doc/html/draft-hardt-email-verification-02>.
[I-D.cure-core]
Balakrishna, M., "CURE: Consent Upon Recipient Engagement", Work in Progress, Internet-Draft, draft-cure-core-00, , <https://datatracker.ietf.org/doc/html/draft-cure-core-00>.

Appendix A. Example Discovery Configuration Document

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"
)

Appendix B. Example Out-of-Band HTTPS Control Plane Payloads

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.

B.1. Registration Request and Response (registration_uri)

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
}

B.2. Key Rotation Request and Response (key_rotate_uri)

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
}

B.3. Revocation Request, Response, and Callback Notification (revocation_uri)

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>"
}

B.4. Domain and Address Migration Requests and Responses (migration_uri)

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"
}

Appendix C. Canonical Input String Construction Example

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.

Appendix D. Verification Test Vectors

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.

D.1. Vector 1: Ed25519 Standard Message

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

D.2. Vector 2: ES256 (P-256) IEEE P1363 Low-S Normalization

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

Appendix E. Open Issues (to be removed before publication)

The following items are intentionally left open for feedback during early implementation and interoperability testing:

Author's Address

M. Matsuda
Independent
Japan