<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
  <!ENTITY domain "example.com">
]>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" consensus="true" ipr="trust200902" docName="draft-matsuda-mcep-00" category="exp" submissionType="IETF" version="3">
  <front>
    <title abbrev="MCEP">Mutual Consent Email Protocol (MCEP): Sender Authentication and Strict Rejection</title>
    <seriesInfo name="Internet-Draft" value="draft-matsuda-mcep-00"/>
    <author fullname="M. Matsuda" initials="M." surname="Matsuda">
      <organization>Independent</organization>
      <address>
        <postal>
          <country>JP</country>
        </postal>
        <email>matsu.ietf@gmail.com</email>
      </address>
    </author>
    <area>Applications and Real-Time</area>
    <workgroup></workgroup>
    <keyword>Email</keyword>
    <keyword>SMTP</keyword>
    <keyword>Authentication</keyword>
    <keyword>Phishing</keyword>

    <abstract>
      <t>
        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.
      </t>
      <t>
        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.
      </t>
    </abstract>

  </front>

  <middle>

    <section anchor="introduction">
      <name>Introduction</name>
      <t>
        Legacy email follows an opportunistic reachability model based on the Simple Mail
        Transfer Protocol (SMTP) <xref target="RFC5321"/>: once a recipient address is
        exposed - such as in a data breach - any sender can transmit to it. Existing
        authentication extensions - SPF <xref target="RFC7208"/>, DKIM <xref target="RFC6376"/>,
        and DMARC <xref target="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.
      </t>
      <t>
        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:
      </t>
      <ul>
        <li>
          <strong>1-to-1 Pairwise Bindings:</strong> A sender and a recipient establish a
          unique, per-relationship set of keys and a Consent ID ("cid") through a registration
		  handshake that the recipient approves explicitly.
        </li>
          <li>
            <strong>Deterministic SMTP Rejection:</strong> Where required by
            recipient policy (such as Strict Reject mode or messages claiming a
            registered sender identity), inbound Mail Transfer Agents (MTAs)
            verify per-message cryptographic signatures and reject unverified
            messages at the SMTP protocol layer (SMTP 550) rather than accepting
            and quarantining them.
          </li>
        <li>
          <strong>Explicit Scope and Scope Separation:</strong> MCEP focuses strictly on
          sender authentication, explicit recipient consent, replay protection, and
          deterministic rejection. End-to-end payload encryption is out of scope for this
          specification; transport confidentiality is delegated to TLS 1.3
          <xref target="RFC9846"/>, SMTP STARTTLS <xref target="RFC3207"/>, and MTA-STS
          <xref target="RFC8461"/>.
        </li>
      </ul>
      <t>
        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 <xref target="terminology"/>.
      </t>

      <section anchor="terminology">
        <name>Terminology and Requirements Language</name>
        <t>
          The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>",
          "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>",
          "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
          "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted
          as described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only
          when, they appear in all capitals, as shown here.
        </t>
        <dl>
          <dt>Mail Service Provider (MSP):</dt>
          <dd>The inbound or outbound email provider or MTA operating on behalf of a domain.</dd>
          <dt>Forwarder:</dt>
          <dd>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 <xref target="I-D.ietf-dkim-dkim2-spec"/>. Mailing list managers are treated separately (see <xref target="intermediaries"/>).</dd>
          <dt>Initiator:</dt>
          <dd>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.</dd>
          <dt>Responder:</dt>
          <dd>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.</dd>
          <dt>Consent:</dt>
          <dd>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.</dd>
          <dt>Consent ID ("cid"):</dt>
          <dd>A lowercase UUID <xref target="RFC9562"/> identifying a single 1-to-1 relationship between one recipient address and one sender. It is fixed at registration and never changes.</dd>
          <dt>Pairwise Binding:</dt>
          <dd>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.</dd>
          <dt>Root Identity Key (Tier 1):</dt>
          <dd>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.</dd>
          <dt>Delegated Key (Tier 2, optional):</dt>
          <dd>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").</dd>
          <dt>Operational Key (Tier 3):</dt>
          <dd>A short-term asymmetric key pair, identified by "kid", used by a sender to sign individual outbound messages.</dd>
          <dt>Message ID (mid):</dt>
          <dd>A lowercase UUID generated once per message and unchanged across all retransmissions of that message.</dd>
          <dt>Dormant:</dt>
          <dd>The state of a binding that has seen no verified traffic for a configured inactivity period. It is not a revocation (<xref target="dormancy"/>).</dd>
          <dt>Strict Reject:</dt>
          <dd>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.</dd>
          <dt>Selective Reject:</dt>
          <dd>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).</dd>
        </dl>

      </section>

      <section anchor="problem" numbered="true">
        <name>Problem Statement</name>
        <t>
          SPF <xref target="RFC7208"/>, DKIM <xref target="RFC6376"/>, and
          DMARC <xref target="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.
        </t>
        <t>
          <xref target="tbl-outcomes"/> 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 (<xref target="unverified"/>).
        </t>
        <table anchor="tbl-outcomes">
          <name>Outcome of Attack Scenarios</name>
          <thead>
            <tr><th>#</th><th>Scenario</th><th>SPF</th><th>DKIM</th><th>DMARC</th><th>MCEP</th></tr>
          </thead>
          <tbody>
            <tr><td>1</td><td>Simple spoofing of a domain's From address</td><td>Fail</td><td>None / Fail</td><td>Reject (note 1)</td><td>Reject</td></tr>
            <tr><td>2</td><td>Attacker-registered lookalike domain</td><td>Pass</td><td>Pass</td><td>Pass</td><td>Reject</td></tr>
            <tr><td>3</td><td>Message to a leaked address from a third party</td><td>Pass</td><td>Pass</td><td>Pass</td><td>Reject</td></tr>
            <tr><td>4</td><td>Non-MCEP sender to a protected address</td><td>Pass</td><td>Pass</td><td>Pass</td><td>Reject</td></tr>
            <tr><td>5</td><td>Compromise of a registered sender's Operational Key</td><td>Pass</td><td>Pass</td><td>Pass</td><td>Pass (note 2)</td></tr>
            <tr><td>6</td><td>Compromise of the recipient's MSP</td><td>-</td><td>-</td><td>-</td><td>Not mitigated (note 3)</td></tr>
          </tbody>
        </table>

        <dl newline="false" spacing="compact">
          <dt>Note 1:</dt>
          <dd>Only if the sender's domain publishes a policy of "reject" or "quarantine".</dd>
          <dt>Note 2:</dt>
          <dd>Scoped keys, short validity periods, and revocation (<xref target="consent-revocation"/>) limit the impact, but messages signed with the key are accepted until it is revoked or expires.</dd>
          <dt>Note 3:</dt>
          <dd>An MSP that holds keys for a recipient can use them.</dd>
        </dl>
        <t>
          In monitoring mode (<xref target="monitoring-mode"/>), "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.
        </t>
      </section>

      <section anchor="related-work">
        <name>Relationship to Other Work</name>
        <t>This section positions MCEP relative to related work known to the
        author at the time of writing. The Internet-Drafts cited here are works
        in progress and may change or expire.</t>
        <dl newline="true">
          <dt>DKIM2 and ARC</dt>
          <dd>DKIM2 <xref target="I-D.ietf-dkim-dkim2-spec"/> extends domain-based
          signatures to record how intermediaries handle and modify a message, to
          detect replay, and to limit Delivery Status Notifications to entities
          involved in the transmission of a message. ARC <xref target="RFC8617"/>
          is an experimental protocol that preserves authentication results across
          forwarding and whose operational experience informed DKIM2. Both address
          properties of the domain and the message path. MCEP instead
          authenticates a recipient-approved relationship between a sender and a
          recipient and rejects non-conforming mail during the SMTP transaction.
          The mechanisms are complementary; MCEP's handling of forwarding and
          bounces (see <xref target="retries-and-multi-rcpt"/>,
          <xref target="intermediaries"/>, and <xref target="appendix-e"/>)
          can build on them as they stabilize.</dd>
          <dt>XCIM</dt>
          <dd>XCIM <xref target="I-D.saez-xcim"/> defines portable evidence,
          attested by a trusted third party and anchored on a blockchain, that a
          recipient consented to receive defined types of communication from an
          identified sender, independently of individual messages. Consent in
          MCEP is narrower (see <xref target="terminology"/>): a bilateral
          technical authorization between providers, enforced for every message,
          that requires no third party and provides no legal evidence. An XCIM
          result could serve as one input to a recipient's decision to approve an
          MCEP registration; this document does not define such an
          integration.</dd>
          <dt>VEIF and EVP</dt>
          <dd>VEIF <xref target="I-D.uimonen-veif"/> binds messages to a sender
          identity verified by an identity provider, for accountability. It does
          not require binding a message to a particular recipient and leaves
          replay detection optional. EVP <xref target="I-D.hardt-email-verification"/>
          lets a browser prove control of an email address to a web application
          and can issue per-site private addresses, which address leaked
          addresses at the address level. MCEP leaves the recipient's address
          unchanged and restricts which senders may use it. Neither VEIF nor EVP
          establishes a recipient-approved relationship.</dd>
          <dt>CURE</dt>
          <dd>CURE <xref target="I-D.cure-core"/> describes a way for a recipient
          domain to issue an opaque HMAC-based token after a recipient action such as
          a reply; senders present the token in a header field, and SMTP responses
          are designed not to reveal the recipient's consent state. It focuses on
          recipient-side acceptance signaling. MCEP addresses a related but different
          aspect: it ties each message to an explicitly approved 1-to-1 relationship
          through per-message asymmetric signatures and replay protection and, for
          addresses in a Strict Reject mode, rejects non-conforming mail during the
          SMTP transaction. These approaches are not necessarily mutually
          exclusive.</dd>
        </dl>
      </section>

    </section>

    <section anchor="architecture">
      <name>Protocol Architecture, Policy Model, and Address Classes</name>
      <t>
        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).
      </t>
      <t>
        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 <bcp14>MAY</bcp14> use any equivalent
        internal representation):
      </t>
      <t>
        The enforcement mode and handling of unverified messages are configured
        per recipient address by the mailbox owner (within the modes offered by
        their MSP).
      </t>
      <ul>
        <li>
          <strong>0x01 (MCEP_FLAG_PROTECT_REGISTERED):</strong> Requires explicit recipient
          approval for new bindings (unless pre-authorized in the local Sender Allowlist)
          and rejects unsigned or invalidly signed messages claiming to originate from a
          sender that already holds an active binding with the recipient
          (Selective Reject).
        </li>
        <li>
          <strong>0x02 (MCEP_FLAG_REJECT_UNREGISTERED):</strong> Rejects messages from any
          sender lacking a valid binding.
        </li>
        <li>
          <strong>0x04 (MCEP_FLAG_ALLOWLIST_BYPASS):</strong> Permits delivery from non-MCEP
          senders explicitly pre-authorized in the recipient's local Sender Allowlist
          (<xref target="ops-sender-allowlist"/>), including aligned SPF/DKIM senders and
          single-address legacy overrides, when 0x02 is active.
        </li>
        <li>
          <strong>0x08 (Reserved for Future Extension):</strong> Reserved for future
          protocol extensions. Implementations of this version <bcp14>MUST</bcp14> treat
          this bit as unset (0).
        </li>
        <li>
          <strong>0x10 (MCEP_FLAG_MONITOR_ONLY - OPTIONAL):</strong> Dry-run / debug modifier
          flag. When combined with an enforcement mode, the MTA evaluates all policy rules
          and logs would-be rejections for operational debugging without issuing SMTP 550
          rejections.
        </li>
      </ul>
      <t>
        Combining these flags defines the logical address classes and operational modes:
      </t>
      <ul>
        <li>
          <strong>0x00 (MCEP_MODE_PUBLIC / "public" class):</strong> Open public-facing
          addresses (e.g., general support desks) with no restriction flags set.
          MCEP-capable senders may be auto-registered subject to rate limits, signature
          checks are executed if an "MCEP-Signature" header is present, and unverified
          messages from non-MCEP senders are accepted.
        </li>
        <li>
          <strong>0x01 (MCEP_MODE_BASIC / "basic" class - Default):</strong> Protects bound
          senders via Selective Reject and requires explicit recipient approval for new
          bindings, while accepting and marking unverified messages from unregistered
          senders (<xref target="unverified"/>).
        </li>
        <li>
          <strong>0x02 (MCEP_MODE_PUBLIC_STRICT / "public-strict" mode):</strong> MCEP-only
          open gateway mode. Like "public" (0x00), MCEP-capable senders may be
          auto-registered subject to rate limits, but messages from unregistered or
          non-MCEP senders are rejected (SMTP 550).
        </li>
        <li>
          <strong>0x03 (0x01 | 0x02 / MCEP_MODE_STRICT / "strict" class):</strong> The target
          strict enforcement mode for high-security addresses, requiring explicit approval
          for new bindings and rejecting all messages lacking a valid binding with
          no fallback to unprotected delivery, no non-MCEP allowlist bypass, and no
          automatic sender domain migration.
        </li>
        <li>
          <strong>0x06 (0x02 | 0x04 / MCEP_MODE_PUBLIC_GUARDED / "public-guarded" mode):</strong>
          Allowlist-assisted MCEP-only public mode, allowing auto-registration for
          MCEP-capable senders while restricting non-MCEP delivery strictly to senders in
          the local Sender Allowlist.
        </li>
        <li>
          <strong>0x07 (0x01 | 0x02 | 0x04 / MCEP_MODE_GUARDED / "guarded" mode):</strong>
          Long-term practical protection mode for individual and organizational addresses,
          requiring explicit approval for new bindings and rejecting unregistered senders by
          default while permitting non-MCEP senders pre-authorized in the local Sender
          Allowlist.
        </li>
      </ul>
      <t>
        Each valid enforcement mode above (<strong>0x00</strong>, <strong>0x01</strong>,
        <strong>0x02</strong>, <strong>0x03</strong>, <strong>0x06</strong>, and
        <strong>0x07</strong>) <bcp14>MAY</bcp14> additionally be combined with
        <strong>0x10</strong> (<tt>MCEP_FLAG_MONITOR_ONLY</tt>, yielding 0x10, 0x11,
        0x12, 0x13, 0x16, or 0x17). Because 0x04 (<tt>MCEP_FLAG_ALLOWLIST_BYPASS</tt>)
        has no additional effect unless 0x02 is set, implementations encountering redundant
        combinations (0x04, 0x05, 0x14, or 0x15) <bcp14>MUST</bcp14> either reject them
        as configuration errors or log a warning and treat them as equivalent to 0x00,
        0x01, 0x10, and 0x11, respectively.
      </t>
    </section>

    <section anchor="onboarding">
      <name>Discovery, Onboarding, Fallback, and Migration</name>

      <section anchor="discovery">
        <name>Endpoint Discovery</name>
        <t>
          An MSP supporting MCEP <bcp14>MUST</bcp14> publish a JSON configuration document
          (media type "application/json") at the well-known HTTPS URI <xref target="RFC8615"/>:
        </t>
        <artwork>
https://&domain;/.well-known/mcep-configuration
</artwork>
        <t>
          In addition, the domain <bcp14>SHOULD</bcp14> publish a DNS TXT record at
          "_mcep.&lt;domain&gt;" 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 <bcp14>RECOMMENDED</bcp14>. When a DNS TXT
          record is present, the retrieving client <bcp14>MUST</bcp14> 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
          <bcp14>MUST</bcp14> reject the mismatched document, <bcp14>MUST</bcp14> treat
          the event as a transient retrieval failure (retaining any previously cached
          configuration until refreshed), and <bcp14>MUST NOT</bcp14> treat the domain
          as non-capable of MCEP.
        </t>
        <t>
          When published, the "_mcep.&lt;domain&gt;" DNS TXT record consists of
          semicolon-separated "tag=value" pairs (whitespace around semicolons ignored):
        </t>
        <ul>
          <li>
            <strong>v=MCEP1</strong> (<bcp14>REQUIRED</bcp14>): Protocol version identifier (<bcp14>MUST</bcp14> appear first).
          </li>
          <li>
            <strong>cfg=&lt;sha256_hex&gt;</strong> (<bcp14>REQUIRED</bcp14>): Lowercase hexadecimal SHA-256
            digest of the exact UTF-8 byte sequence of the published JSON configuration document.
          </li>
          <li>
            <strong>rk=&lt;sha256_hex&gt;</strong> (<bcp14>OPTIONAL</bcp14>): Lowercase hexadecimal SHA-256
            digest of the raw public key bytes of "root_public_key" (present when
            "root_public_key" is configured).
          </li>
        </ul>

        <t>
          The JSON configuration object defines the fields listed in
          <xref target="tbl-discovery-fields"/>:
        </t>
        <table anchor="tbl-discovery-fields">
          <name>MCEP Discovery Configuration JSON Fields</name>
          <thead>
            <tr>
              <th>Field</th>
              <th>Requirement</th>
              <th>Type</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td><tt>version</tt></td>
              <td><bcp14>REQUIRED</bcp14></td>
              <td>Integer</td>
              <td>Protocol version number (<tt>1</tt>).</td>
            </tr>
            <tr>
              <td><tt>issuer</tt></td>
              <td><bcp14>REQUIRED</bcp14></td>
              <td>String (URI)</td>
              <td>Authoritative HTTPS origin URI (<tt>"https://&lt;domain&gt;"</tt> with no trailing slash, query, or fragment).</td>
            </tr>
            <tr>
              <td><tt>registration_uri</tt></td>
              <td><bcp14>REQUIRED</bcp14></td>
              <td>String (URI)</td>
              <td>HTTPS endpoint URI for binding registration (<xref target="registration"/>).</td>
            </tr>
            <tr>
              <td><tt>key_rotate_uri</tt></td>
              <td><bcp14>REQUIRED</bcp14></td>
              <td>String (URI)</td>
              <td>HTTPS endpoint URI for out-of-band Operational Key rotation (<xref target="key-rollover"/>).</td>
            </tr>
            <tr>
              <td><tt>revocation_uri</tt></td>
              <td><bcp14>REQUIRED</bcp14></td>
              <td>String (URI)</td>
              <td>HTTPS endpoint URI for revocation requests and notifications (<xref target="consent-revocation"/>).</td>
            </tr>
            <tr>
              <td><tt>supported_algorithms</tt></td>
              <td><bcp14>REQUIRED</bcp14></td>
              <td>Array of Strings</td>
              <td>Non-empty list of supported signature algorithm identifiers (e.g., <tt>["ed25519", "es256"]</tt>).</td>
            </tr>
            <tr>
              <td><tt>max_age</tt></td>
              <td><bcp14>REQUIRED</bcp14></td>
              <td>Integer</td>
              <td>Maximum cache lifetime in seconds for the configuration document.</td>
            </tr>
            <tr>
              <td><tt>root_public_key</tt></td>
              <td><bcp14>OPTIONAL</bcp14></td>
              <td>Object</td>
              <td>Organizational Tier 1 Root Identity Key object (<bcp14>REQUIRED</bcp14> whenever <tt>"delegated_keys"</tt> is present).</td>
            </tr>
            <tr>
              <td><tt>delegated_keys</tt></td>
              <td><bcp14>OPTIONAL</bcp14></td>
              <td>Array of Objects</td>
              <td>Tier 2 Delegated Key objects authorized under <tt>"root_public_key"</tt> (see rules below).</td>
            </tr>
            <tr>
              <td><tt>delegated_keys_max_age</tt></td>
              <td><bcp14>OPTIONAL</bcp14></td>
              <td>Integer</td>
              <td>Maximum cache lifetime in seconds for <tt>"delegated_keys"</tt> (<bcp14>REQUIRED</bcp14> whenever <tt>"delegated_keys"</tt> is non-empty; <bcp14>MUST NOT</bcp14> exceed <tt>"max_age"</tt>; defaults to <tt>"max_age"</tt> if omitted when <tt>"delegated_keys"</tt> is absent or empty).</td>
            </tr>
            <tr>
              <td><tt>classes</tt></td>
              <td><bcp14>OPTIONAL</bcp14></td>
              <td>Array of Strings</td>
              <td>Supported recipient address class names.</td>
            </tr>
            <tr>
              <td><tt>migration_uri</tt></td>
              <td><bcp14>OPTIONAL</bcp14></td>
              <td>String (URI)</td>
              <td>HTTPS endpoint URI for domain and key migration requests (<xref target="migration"/>).</td>
            </tr>
            <tr>
              <td><tt>declaration_uri</tt></td>
              <td><bcp14>OPTIONAL</bcp14></td>
              <td>String (URI)</td>
              <td>HTTPS URI for publishing signed domain migration declarations (<xref target="migration"/>).</td>
            </tr>
          </tbody>
        </table>

        <t>
          Whenever <tt>"delegated_keys"</tt> is present, every entry in the array
          <bcp14>MUST</bcp14> satisfy all of the following rules:
        </t>
        <ul>
          <li>
            <strong>Reserved Identifier Exclusion:</strong> Its <tt>"kid"</tt>
            <bcp14>MUST NOT</bcp14> be the reserved identifier <tt>"root"</tt>.
          </li>
          <li>
            <strong>Bounded Validity Period:</strong> It <bcp14>SHOULD</bcp14>
            carry a bounded validity period (<tt>"exp - nb"</tt>, e.g., at most
            30 days) so compromised keys expire automatically even if all
            revocation signals are lost.
          </li>
          <li>
            <strong>Root Signature Verification:</strong> It <bcp14>MUST</bcp14>
            include a <tt>"root_sig"</tt> field computed by the Root Identity Key
            over that entry using the canonical JSON encoding defined in
            <xref target="oob-signing"/> with domain-separation label
            <tt>"MCEP-DelegateKey-v1"</tt>.
          </li>
        </ul>
        <t>
          Receivers <bcp14>MUST</bcp14> reject or ignore any Delegated Key lacking
          a valid <tt>"root_sig"</tt> or using the reserved <tt>"kid"</tt> value
          <tt>"root"</tt>. Additionally, the <tt>"issuer"</tt> value
          <bcp14>MUST</bcp14> exactly match the HTTPS origin from which the
          configuration document was retrieved; otherwise, the client
          <bcp14>MUST</bcp14> reject the configuration to prevent issuer mix-up
          attacks.
        </t>

        <t>
          <strong>Delegated Key (Tier 2) Caching, Asynchronous Refresh, and Revocation:</strong>
          Receivers <bcp14>MUST NOT</bcp14> 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 <tt>min(delegated_keys_max_age, 24 hours)</tt>
          (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 <bcp14>MUST</bcp14> maintain a per-(domain,
          <tt>signer_kid</tt>) negative cache entry with a TTL of
          <tt>min(delegated_keys_max_age, 1 hour)</tt> (3600 seconds, using
          <tt>"max_age"</tt> when <tt>"delegated_keys_max_age"</tt> is omitted)
          whenever a completed discovery refresh still omits the referenced
          <tt>signer_kid</tt> (and <bcp14>MUST</bcp14> clear any matching negative
          entry if a subsequent refresh observes that <tt>signer_kid</tt>). To
          prevent memory exhaustion from random <tt>signer_kid</tt> floods,
          receivers <bcp14>SHOULD</bcp14> 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).
          <xref target="tbl-tier2-cache"/> summarizes the required behavior across
          cache states:
        </t>

        <table anchor="tbl-tier2-cache">
          <name>Tier 2 Delegated Key Cache Evaluation Rules</name>
          <thead>
            <tr>
              <th>Cache State</th>
              <th>In-Band (SMTP)</th>
              <th>Out-of-Band (HTTPS API)</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>Fresh cache, <tt>signer_kid</tt> present</td>
              <td>Proceed to signature, <tt>nb</tt>/<tt>exp</tt>, and permission checks</td>
              <td>Proceed to signature, <tt>nb</tt>/<tt>exp</tt>, and permission checks</td>
            </tr>
            <tr>
              <td>Negative cache hit for (domain, <tt>signer_kid</tt>)</td>
              <td>Reject immediately with uniform SMTP 550 (<xref target="response-uniformity"/>)</td>
              <td>Reject request immediately (HTTP 400/403)</td>
            </tr>
            <tr>
              <td>Fresh cache, <tt>signer_kid</tt> absent (no negative cache entry)</td>
              <td>Enqueue async refresh (respecting the per-domain minimum refresh interval) and return SMTP 451 4.3.0; record negative cache entry if <tt>kid</tt> remains absent after refresh</td>
              <td>Perform live discovery retrieval (respecting the per-domain minimum refresh interval), record negative entry if still absent, and reject (HTTP 400/403)</td>
            </tr>
            <tr>
              <td>No fresh cache (missing or age &gt; effective max age)</td>
              <td>Return SMTP 451 4.3.0 and enqueue async refresh</td>
              <td>Perform live discovery retrieval and re-evaluate</td>
            </tr>
            <tr>
              <td>Discovery retrieval fails or times out (async or live)</td>
              <td>Keep existing cache and skip negative caching; continue returning SMTP 451 4.3.0 until refresh succeeds</td>
              <td>Keep existing cache and skip negative caching; return HTTP 503</td>
            </tr>
          </tbody>
        </table>

        <t>
          Receivers <bcp14>SHOULD</bcp14> also trigger a proactive asynchronous
          refresh once half of the effective cache lifetime has elapsed, and senders
          introducing a new Delegated Key <bcp14>SHOULD</bcp14> publish it at least
          <tt>delegated_keys_max_age</tt> 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
          <tt>POST /mcep/revoke</tt> with <tt>"target": "delegated_kid"</tt> is
          received (<xref target="consent-revocation"/>).
        </t>		
        <t>
          In-band headers signed directly by the Tier 1 Root Identity Key
          (<tt>signer_kid=root</tt>) 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.
        </t>
        <t>
          <strong>Capability Pinning and Per-Binding Root Key Mismatch Handling:</strong>
          After successful retrieval and verification, an MSP <bcp14>MUST</bcp14> 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 - <bcp14>MUST NOT</bcp14> be treated as evidence that
          the domain is non-capable, and <bcp14>MUST</bcp14> 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
          <bcp14>MUST NOT</bcp14> 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
          (<xref target="migration"/>) or a dual-signed planned Root Identity Key
          rotation (<xref target="migration"/>) 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 <bcp14>MUST</bcp14> 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" <bcp14>MUST</bcp14> be
          treated as unauthorized for operations on that binding. Similarly, when
          evaluating a new registration request (<xref target="registration"/>), 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
          <bcp14>MUST NOT</bcp14> auto-approve the new registration, instead requiring
          explicit recipient confirmation or rejection per
          <xref target="consent-revocation"/>.
        </t>

        <t>
          In multi-tenant or virtual-hosted environments serving multiple domains on shared
          infrastructure, the MSP <bcp14>SHOULD</bcp14> 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.
        </t>
        <t>
          <strong>Transport Security and SSRF Protections:</strong> When retrieving
          the configuration document or making any out-of-band HTTPS control plane
          request, a client <bcp14>MUST</bcp14> enforce the following rules:
        </t>
        <ul>
          <li>
            <strong>TLS Version and Certificate Validation:</strong> Use HTTPS over
            TLS 1.3 or higher <xref target="RFC9846"/> with strict X.509 certificate
            chain and hostname validation; plaintext HTTP <bcp14>MUST NOT</bcp14> be used.
          </li>
          <li>
            <strong>No HTTP Redirects:</strong> HTTP redirects (3xx responses)
            <bcp14>MUST NOT</bcp14> be followed; any redirect response
            <bcp14>MUST</bcp14> be rejected as a fetch failure.
          </li>
          <li>
            <strong>Strict Timeout and Response Size Limits:</strong> 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.
          </li>
          <li>
            <strong>Loopback, Link-Local, and Private IP Rejection (SSRF Prevention):</strong>
            Resolve target hostnames prior to connection and <bcp14>MUST</bcp14>
            reject any connection resolving to loopback, link-local, multicast,
            reserved, or private IPv4/IPv6 address ranges (including <xref target="RFC1918"/>
            and <xref target="RFC4193"/> ranges), re-validating the connected peer IP
            address to prevent DNS rebinding attacks.
          </li>
        </ul>
      </section>

      <section anchor="registration">
        <name>Authenticated Registration Handshake</name>
        <t>
          All binding registrations <bcp14>MUST</bcp14> be conducted over
          the out-of-band HTTPS control plane ("registration_uri"); senders
          <bcp14>MUST NOT</bcp14> initiate or negotiate a binding in-band over SMTP
          headers or message payloads. A sender that requires registration as a
          condition of a contract <bcp14>SHOULD</bcp14> request it within an
          authenticated session of the contracting party, and <bcp14>SHOULD NOT</bcp14>
          request it by email. In every case, the recipient <bcp14>MUST</bcp14> approve
          the registration explicitly through an authenticated operation under the
          control of the receiving MSP or the recipient's MUA. Approval
          <bcp14>MUST NOT</bcp14> be possible via a link in an email alone, and the
          MSP <bcp14>MUST NOT</bcp14> deliver approval prompts to the protected address
          itself; pending requests <bcp14>SHOULD</bcp14> 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 <bcp14>MUST</bcp14> be treated
          normatively as the execution of explicit prior consent pre-configured by
          the recipient for that address or relationship, and <bcp14>MUST NOT</bcp14>
          bypass the cryptographic identity verification requirements of
          <xref target="discovery"/> and <xref target="consent-revocation"/>.
        </t>
        <t>
          During registration, the Initiator sends an HTTPS POST to the Responder's
          "registration_uri" signed by one of the following three authorized key types:
        </t>
        <ul>
          <li>
            <strong>Tier 2 Delegated Key:</strong> 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).
          </li>
          <li>
            <strong>Tier 1 Root Identity Key:</strong> The Initiator's top-level
            "root_public_key" itself, when no Delegated Key is used.
          </li>
          <li>
            <strong>Initial Operational Key (Self-Signed Mode):</strong> The initial
            Operational Key itself, strictly for self-signed peer-to-peer relationships
            without a Root Identity Key ("auth_mode": "self-signed").
          </li>
        </ul>
        <t>
          The registration JSON payload carries the following fields:
        </t>
        <ul>
          <li>
            <strong>"cid" (<bcp14>REQUIRED</bcp14>):</strong> A newly generated lowercase UUIDv4
            Consent ID.
          </li>
          <li>
            <strong>"auth_mode" (<bcp14>REQUIRED</bcp14>):</strong> Explicit authentication mode,
            either <tt>"discovery"</tt> or <tt>"self-signed"</tt>.
          </li>
          <li>
            <strong>"sender" and "recipient" (<bcp14>REQUIRED</bcp14>):</strong> Normalized sender
            and recipient identifiers.
          </li>
          <li>
            <strong>"sender_scope" (<bcp14>REQUIRED</bcp14>):</strong> Either <tt>"exact"</tt> or
            <tt>"domain"</tt> (see below).
          </li>
          <li>
            <strong>"kid", "alg", "pk", "nb", and "exp" (<bcp14>REQUIRED</bcp14>):</strong> Initial
            Operational Key identifier, algorithm, public key material, and validity
            bounds (plus optional <tt>"permissions"</tt>, defaulting per
            <xref target="key-permissions"/>).
          </li>
          <li>
            <strong>"nonce", "t", and "sig" (<bcp14>REQUIRED</bcp14>):</strong> Fresh 128-bit
            nonce, UNIX timestamp, and canonical request signature (<xref target="oob-signing"/>).
          </li>
          <li>
            <strong>"purpose_scope" (<bcp14>OPTIONAL</bcp14>):</strong> Requested purpose scope
            (<tt>"general"</tt>, <tt>"mandatory_transactional"</tt>,
            <tt>"optional_marketing"</tt>, or <tt>"mailing_list"</tt>; defaults to
            <tt>"general"</tt> if omitted).
          </li>
          <li>
            <strong>"root_public_key" (<bcp14>OPTIONAL</bcp14>):</strong> Organizational Tier 1
            Root Identity Key object (when applicable).
          </li>
        </ul>
        <t>
          If "auth_mode" is "discovery", the Responder <bcp14>MUST</bcp14> validate
          the Initiator's domain discovery configuration (<xref target="discovery"/>).
          If "auth_mode" is "self-signed", the Responder <bcp14>MUST</bcp14> enforce
          "sender_scope": "exact" and <bcp14>MUST</bcp14> reject the request if the
          sender's domain is already known or pinned as MCEP-capable (preventing
          downgrade to unauthenticated self-signed registration).
        </t>
        <t>
          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 <bcp14>MUST NOT</bcp14> create a new binding or alter any existing
          binding state, and <bcp14>MUST</bcp14> return a uniform response (such as
          HTTP 202 Accepted with status "pending" and a synthetic "pending_expires_at"
          computed as t + default_ttl, where <tt>default_ttl</tt> 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 <bcp14>MUST NOT</bcp14> accept any message until
          approved. When presenting a pending request, the Responder's MSP or MUA
          <bcp14>MUST</bcp14> clearly display the requested purpose scope and
          <bcp14>MAY</bcp14> 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).
        </t>
        <t>
          <strong>Sender Scope ("sender_scope": "exact" vs. "domain"):</strong> During
          registration, the binding <bcp14>MUST</bcp14> include a "sender_scope" field
          set to either <strong>"exact"</strong> (consent applies strictly to a single
          normalized sender mailbox, e.g., "info@&domain;") or <strong>"domain"</strong>
          (consent applies to an entire sender domain, e.g., "*@&domain;"). Domain-wide
          bindings ("sender_scope": "domain") apply strictly to exact domain matches
          (excluding subdomains, which <bcp14>MUST</bcp14> 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 <bcp14>MUST</bcp14> only be permitted for organizational domains
          publishing a "root_public_key"; MSPs and recipients <bcp14>MUST NOT</bcp14>
          create "domain" bindings for shared or multi-tenant email domains (such as
          public webmail providers), where "sender_scope": "exact" <bcp14>MUST</bcp14>
          be enforced. To prevent sequence inversion when multiple addresses or parallel
          workers share a domain-wide "cid", senders <bcp14>SHOULD</bcp14> assign
          distinct Operational Keys ("kid") per sending account or worker (tracking
          "last_seq" independently per ("cid", "kid")) or serialize "seq" allocation
          across shared keys.
        </t>

        <t>
          Because <tt>"auth_mode"</tt> and <tt>"sender_scope"</tt> are orthogonal,
          <xref target="tbl-auth-scope-matrix"/> summarizes the differences in
          validity, trust guarantees, and use cases across the four combinations:
        </t>
        <table anchor="tbl-auth-scope-matrix">
          <name>Combinations of Authentication Mode and Sender Scope</name>
          <thead>
            <tr>
              <th><tt>auth_mode</tt> + <tt>sender_scope</tt></th>
              <th>Eligibility &amp; Key Differences</th>
              <th>Primary Use Cases</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td><tt>"discovery"</tt> + <tt>"domain"</tt></td>
              <td>Requires <tt>"root_public_key"</tt> (prohibited on shared webmail domains). Grants domain-wide sending under one <tt>"cid"</tt>; supports async callbacks.</td>
              <td>Organizations and automated systems sending from multiple addresses (<tt>*@example.com</tt>).</td>
            </tr>
            <tr>
              <td><tt>"discovery"</tt> + <tt>"exact"</tt></td>
              <td>Allowed on all discovery domains (including shared/multi-tenant MSPs). MSP authority prevents squatting; supports async callbacks and immediate activation on <tt>"public"</tt>/Allowlist endpoints.</td>
              <td>Individual users on MCEP-capable MSPs, or specific departmental mailboxes.</td>
            </tr>
            <tr>
              <td><tt>"self-signed"</tt> + <tt>"exact"</tt></td>
              <td>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.</td>
              <td>Peer-to-peer correspondence between standalone MUAs on non-MCEP domains.</td>
            </tr>
            <tr>
              <td><tt>"self-signed"</tt> + <tt>"domain"</tt></td>
              <td><strong>Prohibited</strong> (<bcp14>MUST</bcp14> be rejected). Unauthenticated keys cannot claim domain-wide scope.</td>
              <td>Not applicable.</td>
            </tr>
          </tbody>
        </table>
        <t>
          Across all permitted combinations above, registrations on restricted
          address classes (<tt>"basic"</tt>, <tt>"strict"</tt>, and
          <tt>"guarded"</tt>) require explicit recipient approval, a valid
          invitation token, or a pre-authorized Sender Allowlist entry before
          activation (<xref target="p2p-onboarding"/>).
        </t>

      </section>

      <section anchor="fallback">
        <name>Fallback for Domains Not Capable of MCEP</name>
        <t>
          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 (<xref target="registration"/>) or
          send messages protected by "MCEP-Signature" (<xref target="verification-order"/>),
          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 <bcp14>MAY</bcp14> 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.&lt;domain&gt;". Any timeout, server error, TLS error,
          SERVFAIL, or other retrieval failure, as well as any failure on a domain
          previously pinned as MCEP-capable, <bcp14>MUST</bcp14> be treated as a
          transient failure rather than non-capability (<xref target="discovery"/>).
        </t>
        <t>
          Any legacy fallback <bcp14>MUST</bcp14> 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
          <bcp14>MUST NOT</bcp14> represent fallback-verified addresses as protected by MCEP.
          When the recipient domain later becomes MCEP-capable, a sender <bcp14>MAY</bcp14>
          offer an upgrade within an authenticated session following <xref target="registration"/>;
          once an MCEP binding is established, unsigned messages <bcp14>MUST NOT</bcp14> be
          sent or accepted for that binding unless revoked.
        </t>
      </section>

      <section anchor="p2p-onboarding">
        <name>Peer-to-Peer Onboarding and First-Contact Policies</name>
        <t>
          For individual peer-to-peer relationships where the sender's domain does not
          publish an MCEP discovery configuration, registrations <bcp14>SHOULD</bcp14>
          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 <bcp14>MUST</bcp14> be restricted strictly to
          "sender_scope": "exact".
        </t>
        <t>
          <strong>Precedence Between First-Contact Policy and Address Class:</strong>
          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 <bcp14>MUST</bcp14> be evaluated prior
          to address-class auto-approval rules:
          <strong>"disabled"</strong> (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),
          <strong>"recipient-initiated"</strong> (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
          <strong>"open-pending"</strong> (default: admits incoming HTTPS registration
          requests to the approval evaluation step below).
        </t>
        <t>
          For requests admitted past the first-contact policy gate, the receiver
          <bcp14>MUST</bcp14> determine activation versus pending placement by
          evaluating the following rules in strict order (stopping at the first
          matching rule):
        </t>
        <ol>
          <li>
            <strong>Prior Revocation or Block-List Match:</strong> If the sender has
            a prior revocation history for that recipient (<xref target="consent-revocation"/>)
            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 <bcp14>MUST NOT</bcp14> auto-approve
            the request on any address class (including "public" 0x00, "public-strict"
            0x02, and "public-guarded" 0x06), and <bcp14>MUST</bcp14> instead hold it
            in "pending" state or silently discard it locally per
            <xref target="consent-revocation"/>.
          </li>
          <li>
            <strong>Invitation Token or Allowlisted Discovery Sender:</strong> If the
            request presents a valid recipient-issued invitation token, or matches the
            local Sender Allowlist (<xref target="ops-sender-allowlist"/>) with a
            verified domain discovery configuration (<xref target="discovery"/>), the
            receiver <bcp14>MUST</bcp14> auto-approve and activate the binding
            immediately across all address classes.
          </li>
          <li>
            <strong>Public-Class Discovery Sender:</strong> 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 (<xref target="discovery"/>), the receiver
            <bcp14>MUST</bcp14> auto-approve and activate the binding immediately
            subject to the rate limits in <xref target="consent-revocation"/>.
          </li>
          <li>
            <strong>All Remaining Requests (Default Pending):</strong> 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 <bcp14>MUST</bcp14> place the registration in
            "pending" state rather than auto-approving it.
          </li>
        </ol>
        <t>
          An unauthenticated self-signed request <bcp14>MUST NOT</bcp14> be
          auto-approved solely on the claimed sender address (preventing identity
          squatting), and <bcp14>MUST</bcp14> remain "pending" until confirmed via
          explicit recipient approval or Return-Routability Verification (described
          below). While a request remains in "pending" state, it <bcp14>MUST NOT</bcp14>
          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).
        </t>
        <t>
          <strong>Return-Routability Verification Procedure:</strong> To prevent
          unsolicited outbound challenge spam (backscatter or mail-bombing abuse),
          a receiving MSP <bcp14>MUST NOT</bcp14> transmit automated
          Return-Routability Verification emails for general unapproved pending
          requests, and <bcp14>MUST</bcp14> enforce both of the following
          restrictions:
        </t>
        <ul>
          <li>
            <strong>Eligible Targets Only:</strong> Automated challenge
            transmission <bcp14>MUST</bcp14> be restricted strictly to target
            addresses configured for public auto-registration (<tt>"public"</tt>
            0x00, <tt>"public-strict"</tt> 0x02, or <tt>"public-guarded"</tt> 0x06)
            or senders explicitly pre-authorized in the recipient's local Sender
            Allowlist (<xref target="ops-sender-allowlist"/>).
          </li>
          <li>
            <strong>Strict Rate Limits:</strong> The receiving MSP
            <bcp14>MUST</bcp14> enforce strict per-target-mailbox rate limits
            (e.g., at most one challenge per 24 hours) as well as per-source-IP
            rate limits.
          </li>
        </ul>
        <t>
          When permitted, Return-Routability Verification proceeds in four steps:
        </t>
        <ol>
          <li>
            <strong>Challenge Transmission (Responder):</strong> The receiving MSP
            sends a verification email containing only the pending <tt>"cid"</tt>,
            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.
          </li>
          <li>
            <strong>Local Pending Match (Initiator):</strong> Upon receiving a
            challenge email, the Initiator's MUA <bcp14>MUST</bcp14> process it
            only if the referenced <tt>"cid"</tt> matches an active local pending
            registration initiated by that MUA toward the matching responder domain,
            ignoring all unsolicited or unknown challenge messages.
          </li>
          <li>
            <strong>Signed HTTPS Confirmation (Initiator):</strong> The Initiator's
            MUA <bcp14>MUST</bcp14> submit the signed confirmation payload (signed
            by the Initiator's registered key under domain-separation label
            <tt>"MCEP-Register-v1"</tt>) strictly to the pinned
            <tt>"registration_uri"</tt> discovered over HTTPS for that target domain.
          </li>
          <li>
            <strong>Binding Activation (Responder):</strong> Once the Responder
            verifies the unexpired nonce and signature, it immediately promotes the
            binding from <tt>"pending"</tt> to <tt>"active"</tt> and returns HTTP
            200 OK with its public key (<tt>"recipient_pk"</tt>).
          </li>
        </ol>
      </section>
      <section anchor="migration">
        <name>Domain and Key Migration</name>
        <t>
          All migration requests submitted to a peer's "migration_uri"
          (<xref target="oob-signing"/>) <bcp14>MUST</bcp14> include an explicit
          <tt>"type"</tt> field identifying the migration operation - specifically
          <tt>"sender_domain"</tt> (cross-domain sender migration),
          <tt>"root_key_rotation"</tt> (same-domain planned Root Identity Key
          rotation), or <tt>"recipient_address"</tt> (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 <tt>"type"</tt> field <bcp14>MUST</bcp14> be
          rejected.
        </t>
        <t>
          <strong>Sender Domain Migration (<tt>"type": "sender_domain"</tt>):</strong>
          Changes to a sender's domain <bcp14>MUST NOT</bcp14> trigger automatic,
          unconfirmed re-binding, and are not permitted for "strict" addresses
          (where the sender <bcp14>MUST</bcp14> register anew via
          <xref target="registration"/>). For other classes, sender domain migrations
          <bcp14>MUST</bcp14> require explicit recipient re-approval, or - where
          pre-authorized administrative migration is supported - <bcp14>MUST</bcp14>
          require dual signatures (<tt>"old_root_sig"</tt> and <tt>"new_root_sig"</tt>)
          from both the old and new Root Identity Keys over a domain-separated
          payload (<tt>"MCEP-Migration-v1"</tt> 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
          <bcp14>MAY</bcp14> enforce a maximum cumulative migration count per
          Consent ID (for example, at most 2 or 3 cross-domain migrations) and
          require a fresh registration (<xref target="registration"/>) once reached;
          however, subdomain changes within the same organizational domain
          authorized under the same Root Identity Key <bcp14>MAY</bcp14> be exempted
          from this count limit. If the old Root Identity Key is lost or suspected
          compromised, migration <bcp14>MUST NOT</bcp14> 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 (<tt>default_ttl</tt> in <xref target="registration"/>).
        </t>
        <t>
          <strong>Planned Root Identity Key Rotation (<tt>"type": "root_key_rotation"</tt>):</strong>
          To allow organizations to replace HSMs or upgrade cryptographic algorithms
          without re-registering every binding, a sender whose Root Identity Key is
          uncompromised <bcp14>MAY</bcp14> perform a planned, same-domain Root
          Identity Key rotation via the receiver's <tt>"migration_uri"</tt>
          (<xref target="oob-signing"/>, domain-separation label
          <tt>"MCEP-Migration-v1"</tt>, with <tt>"type": "root_key_rotation"</tt>
          and identical old and new domain identifiers) in four steps:
        </t>
        <ol>
          <li>
            <strong>Publish New Discovery Record (Sender):</strong> Before submitting
            the rotation request, the sender <bcp14>MUST</bcp14> publish the new
            <tt>"root_public_key"</tt> in its HTTPS discovery document and updated
            <tt>"_mcep.&lt;domain&gt;"</tt> DNS TXT record (<xref target="discovery"/>)
            and allow prior DNS TTLs to expire so live discovery reflects the new key.
          </li>
          <li>
            <strong>Submit Dual-Signed Rotation Request (Sender):</strong> The request
            <bcp14>MUST</bcp14> carry the proposed new Root Identity Key
            (<tt>"new_root_key"</tt>) and dual signatures (<tt>"old_root_sig"</tt> and
            <tt>"new_root_sig"</tt>) computed by the receiver's currently pinned old
            Root Identity Key and the proposed new Root Identity Key, respectively,
            covering <tt>"type"</tt>, Consent ID (<tt>"cid"</tt>), <tt>"recipient"</tt>,
            domain, <tt>"new_root_key"</tt>, optional new Operational Key fields
            (<tt>"new_kid"</tt>, <tt>"new_alg"</tt>, <tt>"new_pk"</tt>, <tt>"nb"</tt>,
            <tt>"exp"</tt>), monotonic migration sequence number (<tt>"mseq"</tt>),
            and timestamp (<tt>"t"</tt>).
          </li>
          <li>
            <strong>Verify Signatures and Live Discovery (Receiver):</strong> Upon
            receiving the request, the receiver <bcp14>MUST</bcp14> first verify
            <tt>"old_root_sig"</tt> against its locally pinned Root Identity Key and
            <tt>"new_root_sig"</tt> against the proposed <tt>"new_root_key"</tt>, and
            then fetch and verify the sender's live discovery configuration and DNS
            TXT record (<xref target="discovery"/>) to confirm that the newly published
            <tt>"root_public_key"</tt> matches <tt>"new_root_key"</tt> (returning a
            retryable transient error such as HTTP 503 if DNS propagation is still in
            progress).
          </li>
          <li>
            <strong>Atomic Key Update (Receiver):</strong> Once live discovery matches,
            the receiver <bcp14>MUST</bcp14> atomically update the binding's pinned
            Root Identity Key immediately upon verification. If accompanying
            Operational Key fields (<tt>"new_kid"</tt>, <tt>"new_alg"</tt>,
            <tt>"new_pk"</tt>, <tt>"nb"</tt>, <tt>"exp"</tt>) are included, the
            receiver <bcp14>MUST</bcp14> install the new Operational Key as
            <tt>"active"</tt> (initializing its <tt>"last_seq"</tt> to 0) and
            transition the replaced prior Operational Key to the <tt>"retiring"</tt>
            grace slot governed by the strict acceptance rules in
            <xref target="key-rollover"/>.
          </li>
        </ol>

        <t>
          Planned Root Identity Key rotation is subject to the following scope and
          exception rules:
        </t>
        <ul>
          <li>
            <strong>All Address Classes Permitted (No 7-Day Hold):</strong> Because
            the sender's domain identity does not change, same-domain Root Identity
            Key rotation is permitted across all address classes (including
            <tt>"strict"</tt> 0x03), does not count toward cross-domain migration
            limits, and takes effect immediately without requiring the 7-day
            cross-domain hold window.
          </li>
          <li>
            <strong>Compromised or Lost Key Prohibition:</strong> If the old Root
            Identity Key is lost or suspected compromised, planned rotation
            <bcp14>MUST NOT</bcp14> be used; affected bindings <bcp14>MUST</bcp14>
            instead be revoked and re-established via <xref target="registration"/>.
          </li>
        </ul>
        <t>
          <strong>Exceptional Automatic Migration:</strong> A receiver
          <bcp14>MAY</bcp14> complete a sender domain migration without explicit
          recipient approval only if all of the following conditions hold:
        </t>
        <ul>
          <li>
            <strong>Non-Strict Address Class:</strong> The target recipient address
            is not configured in "strict" (0x03) mode.
          </li>
          <li>
            <strong>Explicit Recipient Opt-In:</strong> The recipient has explicitly
            opted into automatic migration (default: disabled).
          </li>
          <li>
            <strong>Single Cross-Domain Automatic Migration Limit:</strong> 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).
          </li>
          <li>
            <strong>Uncontested 7-Day Hold Window:</strong> The minimum 7-day
            pending hold window has elapsed without cancellation by either the
            recipient or the original sender.
          </li>
          <li>
            <strong>Unrevoked Old Root Identity Key:</strong> The old Root Identity
            Key remains unrevoked and valid throughout the hold window.
          </li>
          <li>
            <strong>Continuous Pre-Migration Declaration Observation:</strong> 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 <bcp14>MUST NOT</bcp14> rely on
            timestamps asserted inside the declaration itself, and any content
            change resets the observation period).
          </li>
          <li>
            <strong>Multi-Channel Notification and Revert Window:</strong> The
            recipient has been notified via at least two independent channels and
            provided with a post-migration revert window.
          </li>
        </ul>

        <t>
          <strong>Recipient Address Migration (<tt>"type": "recipient_address"</tt>):</strong>
          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 (<tt>"old_msp_sig"</tt>, domain-separation label
          <tt>"MCEP-RecipientMigration-v1"</tt>) covering <tt>"type": "recipient_address"</tt>,
          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 (<tt>"new_msp_sig"</tt>) 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 <bcp14>SHOULD</bcp14> remain available to sign attestations for a
          transition period after service termination and <bcp14>SHOULD</bcp14> then
          purge the old key material.
        </t>
        <t>
          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 <xref target="RFC9989"/>, excluding
          multi-tenant or provider-allocated subdomains such as shared hosting
          subdomains) and are both cryptographically authorized under the same
          Root Identity Key.
        </t>
      </section>

      <section anchor="oob-signing">
        <name>Out-of-Band Control Plane Request Signing</name>
        <t>
          To ensure interoperability while permitting optional fields and future
          extensions, all signed JSON payloads sent over the out-of-band HTTPS control
          plane endpoints (<xref target="appendix-oob-examples"/>) <bcp14>MUST</bcp14>
          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:
        </t>
        <ul>
          <li>
            <strong>POST /mcep/register ("sig"):</strong> Domain-separation label
            <tt>"MCEP-Register-v1"</tt>.
          </li>
          <li>
            <strong>POST /mcep/rotate ("rs"):</strong> Domain-separation label
            <tt>"MCEP-Rotate-v1"</tt>.
          </li>
          <li>
            <strong>POST /mcep/revoke ("rs"):</strong> Domain-separation label
            <tt>"MCEP-Revoke-v1"</tt> (covering all request fields including
            "target" - such as "binding", "kid", or "delegated_kid" - and "kid" when
            present).
          </li>
          <li>
            <strong>Outbound Revocation Callback Notification ("rs"):</strong>
            Domain-separation label <tt>"MCEP-RevokeNotify-v1"</tt> (computed over
            asynchronous revocation notification payloads sent to a peer's
            "revocation_uri").
          </li>
          <li>
            <strong>POST /mcep/migrate - Sender Domain / Root Key ("old_root_sig" and "new_root_sig"):</strong>
            Domain-separation label <tt>"MCEP-Migration-v1"</tt> (when <tt>"type"</tt>
            is <tt>"sender_domain"</tt> or <tt>"root_key_rotation"</tt>).
          </li>
          <li>
            <strong>POST /mcep/migrate - Recipient Address ("old_msp_sig" and "new_msp_sig"):</strong>
            Domain-separation label <tt>"MCEP-RecipientMigration-v1"</tt> (when
            <tt>"type"</tt> is <tt>"recipient_address"</tt>).
          </li>
          <li>
            <strong>Status Poll Request ("sig"):</strong> Domain-separation label
            <tt>"MCEP-Status-v1"</tt>.
          </li>
          <li>
            <strong>Discovery Document Delegated Keys ("root_sig"):</strong>
            Domain-separation label <tt>"MCEP-DelegateKey-v1"</tt> (computed over each
            delegated key object in "delegated_keys", excluding "root_sig").
          </li>
        </ul>
        <t>
          <strong>Canonical Encoding Rule:</strong> Starting with the length-prefixed
          domain-separation label (<tt>&lt;label_len&gt;:&lt;label&gt;</tt>), 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
          <tt>&lt;key_len&gt;:&lt;key&gt;=&lt;val_len&gt;:&lt;value&gt;</tt>
          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).
        </t>

      </section>

    </section>

    <section anchor="transmission">
      <name>Message Transmission, Verification Pipeline, and Error Handling</name>

      <section anchor="verification-order">
        <name>Inbound Verification Order</name>
        <t>
          An inbound MTA enforcing MCEP <bcp14>MUST</bcp14> evaluate incoming messages
          in the following strict two-stage sequence - <strong>Stage 1</strong> (substeps
          1a and 1b) at End-of-Headers prior to message body reception, and
          <strong>Stage 2</strong> (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
          <bcp14>MUST</bcp14> be restricted to authenticated, network-isolated internal
          entry points that cannot be reached from external domains and
          <bcp14>MUST NOT</bcp14> rely on claimed header or envelope sender identities alone:
        </t>

         <ol>
          <li>
            <t>
              <strong>Stage 1a (End-of-Headers) - In-Band Revocation Header Evaluation ("MCEP-Revocation"):</strong>
              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 <xref target="mcep-revocation"/> (enforcing single-header
              presence, timestamp bounds, binding lookup, and authority signature verification).
            </t>
            <ul>
              <li>
                If validation succeeds, the MTA <bcp14>MUST</bcp14> immediately mark the
                binding as permanently revoked, invalidate cached keys, and reject the
                control message with the uniform response of <xref target="response-uniformity"/>
                so it is never delivered.
              </li>
              <li>
                If validation fails, the MTA <bcp14>MUST</bcp14> immediately reject the
                message with the same uniform response without altering any binding state.
              </li>
            </ul>
            <t>
              Proceed to Stage 1b only if no "MCEP-Revocation" header is present.
            </t>
          </li>
          <li>
            <t>
              <strong>Stage 1b (End-of-Headers) - Header Integrity, Binding Lookup, and Pre-Body Checks:</strong>
              Execute the following pre-body checks in order. Any failure not explicitly
              routed to unverified recipient policy (<xref target="unverified"/>)
              <bcp14>MUST</bcp14> be rejected immediately prior to body reception using
              the uniform response of <xref target="response-uniformity"/>:
            </t>
            <ol>
              <li>
                <strong>Applicability Gate:</strong> 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
                (<xref target="unverified"/>).
              </li>
              <li>
                <strong>Single Header &amp; Timestamp Window:</strong> The MTA
                <bcp14>MUST</bcp14> 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.
              </li>
              <li>
                <strong>Binding Lookup &amp; Policy Routing:</strong> 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 <bcp14>MAY</bcp14> either reject
                the message immediately or classify it as an unverified message with a
                failed signature governed by recipient policy (<xref target="unverified"/>).
                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 <bcp14>MUST</bcp14> be rejected immediately.
              </li>
              <li>
                <strong>Sender Alignment:</strong> Where a valid binding exists, the
                MTA <bcp14>MUST</bcp14> 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).
              </li>
              <li>
                <strong>Key Resolution (Update vs. Active Key):</strong> If an
                "MCEP-Key-Update" header is present, the MTA <bcp14>MUST</bcp14>
                validate and cryptographically verify the key update first
                (<xref target="mcep-key-update"/>) to obtain a provisional verification
                key for this transaction without committing state yet. Otherwise, the MTA
                <bcp14>MUST</bcp14> 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.
              </li>
            </ol>
          </li>
          <li>
            <t>
              <strong>Stage 2a (End-of-Message) - Cryptographic Signature Verification:</strong>
              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
              <bcp14>MUST</bcp14> immediately reject the message without inspecting
              sequence numbers or deduplication caches.
            </t>
          </li>
          <li>
            <t>
              <strong>Stage 2b (End-of-Message) - Sequence Monotonicity and Identical-Signature Deduplication:</strong>
              Compare the message sequence ("seq") against the stored "last_seq" for the
              active key ("kid") (or 0 for a newly provisional key):
            </t>
            <ul>
              <li>
                If "seq == last_seq" and the signature ("s") is octet-for-octet
                identical to the last accepted signature, the MTA <bcp14>MUST</bcp14>
                accept the SMTP transaction (250 OK) while silently discarding
                duplicate delivery.
              </li>
              <li>
                Any other message with "seq &lt;= last_seq" <bcp14>MUST</bcp14> be
                rejected using the uniform response of <xref target="response-uniformity"/>
                (regardless of whether caused by a replay attempt or out-of-order
                transmission).
              </li>
            </ul>
          </li>
          <li>
            <t>
              <strong>Stage 2c (End-of-Message) - Re-Signed Retry Idempotency ("mid"):</strong>
              If "seq" &gt; "last_seq", check a deduplication cache keyed by ("cid", "mid") - which
              receivers <bcp14>MUST</bcp14> retain for at least 5 days and <bcp14>SHOULD</bcp14>
              retain for 7 days (covering standard SMTP queue retry lifetimes per
              <xref target="RFC5321"/>) - comparing the tuple of ("envelope-to", "headers-hash",
              "body-hash"):
            </t>
            <ul>
              <li>
                If ("cid", "mid") was already processed with identical values, the MTA
                <bcp14>MUST</bcp14> accept at SMTP level (250 OK), update "last_seq",
                and discard duplicate delivery.
              </li>
              <li>
                If ("cid", "mid") exists with different values, the MTA <bcp14>MUST</bcp14>
                reject the message without updating state.
              </li>
            </ul>
          </li>
          <li>
            <t>
              <strong>Stage 2d (End-of-Message) - Acceptance and Atomic State Update:</strong>
              The MTA <bcp14>MUST</bcp14> 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.
            </t>
          </li>
        </ol>

      </section>

      <section anchor="retries-and-multi-rcpt">
        <name>Retries, Multiple Recipients, and Bounces</name>
        <t>
          <strong>Retransmission Rules:</strong> Within 240 seconds of initial signing, a sender
          <bcp14>MAY</bcp14> retransmit the exact signed message unchanged. After 240 seconds,
          the sender <bcp14>MUST</bcp14> re-sign the message using the original "mid", a newly
          incremented "seq", and the current timestamp "t".
        </t>
        <t>
          <strong>Multiple Recipients (To, Cc, and Bcc):</strong> Because MCEP
          binds keys and sequence numbers to 1-to-1 bindings, senders
          transmitting to multiple recipients <bcp14>MUST</bcp14> 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 <bcp14>MUST</bcp14>
          be limited to a single recipient: if the first accepted "RCPT TO"
          targets an MCEP-protected address, the inbound MTA <bcp14>MUST</bcp14>
          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
          <bcp14>MUST</bcp14> 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.
        </t>
        <t>
          <strong>Delivery Status Notifications (Bounces):</strong> To preserve
          Strict Reject without introducing exceptions on protected addresses,
          senders <bcp14>SHOULD</bcp14> use a dedicated, authenticated bounce return
          path (such as BATV/VERP-style <tt>MAIL FROM</tt> addresses like
          <tt>bounce+&lt;mid&gt;+&lt;hmac&gt;@&lt;domain&gt;</tt>) rather than
          setting an MCEP-protected address as <tt>MAIL FROM</tt>. Under this
          recommended configuration, inbound MTAs enforcing Strict Reject
          <bcp14>SHOULD</bcp14> reject <tt>MAIL FROM:&lt;&gt;</tt> messages
          targeting protected addresses with no special exemption. Where an
          architecture or user configuration explicitly enables receiving DSNs
          (<xref target="RFC3464"/>) directly at a protected address, an inbound
          MTA or MUA <bcp14>MAY</bcp14> accept a <tt>MAIL FROM:&lt;&gt;</tt>
          message only if all of the following conditions hold:
        </t>

        <ul>
          <li>
            <strong>Valid DSN Report Structure:</strong> The message is formatted
            as a valid <xref target="RFC3464"/> <tt>multipart/report</tt> with
            <tt>report-type=delivery-status</tt>.
          </li>
          <li>
            <strong>Outbound Record Correlation:</strong> The attached original
            headers carry an "MCEP-Signature" whose ("cid", "mid") matches an
            active, unrevoked outbound binding and whose signature value
            (<tt>s</tt>) 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 <xref target="RFC3461"/> <tt>ENVID</tt>, to
            be matched against the DSN <tt>Final-Recipient</tt> and, where
            present, the <tt>Original-Envelope-Id</tt>). Because the record
            holds the emitted signature values, no body or hash recomputation
            is needed, allowing DSNs that return only message headers.
          </li>
          <li>
            <strong>Bounded Bounce Window:</strong> The recorded outbound
            transmission timestamp is within a bounded bounce window (e.g., at
            most 5 to 7 days prior to DSN reception).
          </li>
          <li>
            <strong>Single-Consumption Replay Protection:</strong> The referenced
            ("cid", "mid") has not already been consumed by a prior DSN (accepting
            at most one DSN per ("cid", "mid")).
          </li>
        </ul>
        <t>
          Any <tt>MAIL FROM:&lt;&gt;</tt> message failing these checks (or arriving
          when direct DSN acceptance is disabled) <bcp14>MUST</bcp14> be rejected
          with the uniform response of <xref target="response-uniformity"/>.
          Accepted DSNs <bcp14>MUST NOT</bcp14> be delivered directly into the
          user's primary inbox as authenticated peer mail; instead, implementations
          <bcp14>MUST</bcp14> 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
          (<xref target="intermediaries"/>) that relays a message carrying an
          "MCEP-Signature" header to a downstream provider <bcp14>MUST</bcp14>
          retain the original inbound "MCEP-Signature" header together with the
          upstream envelope recipient and any <xref target="RFC3461"/> <tt>ENVID</tt>
          for the duration of its bounce window (e.g., 5 to 7 days). When
          propagating a DSN back toward the upstream sender, the Forwarder
          <bcp14>MUST</bcp14> restore the retained inbound "MCEP-Signature" in
          the attached headers (stripping its own downstream "MCEP-Signature")
          and replace the delivery-status recipient fields (<tt>Final-Recipient</tt>
          and, if present, <tt>Original-Recipient</tt>) and
          <tt>Original-Envelope-Id</tt> (<tt>ENVID</tt>) with the values
          originally supplied by the upstream sender, preventing private
          forwarding destinations from leaking.
        </t>
      </section>

      <section anchor="intermediaries">
        <name>Intermediaries, Forwarding, and Delegated Senders</name>
        <t>
          MCEP treats each SMTP hop that changes the envelope as a separate
          sender-recipient relationship:
        </t>
        <ol>
          <li>
            Redirection inside the receiving MSP (no new SMTP hop): the MCEP
            check applies at the first MX and no re-signing is needed.
          </li>
          <li>
            Forwarding to another provider: the Forwarder is the sender toward
            the downstream MSP. It <bcp14>MUST</bcp14> verify the inbound
            "MCEP-Signature" where the address it received mail for is protected,
            <bcp14>MUST</bcp14> strip it before relaying, and <bcp14>MUST</bcp14>
            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.
          </li>
          <li>
            Mailing lists: the list manager is the sender toward each
            subscriber, using the "mailing_list" purpose scope.
          </li>
        </ol>
        <t>
          A Forwarder <bcp14>MAY</bcp14> record the upstream MCEP result in an
          Authentication-Results header field <xref target="RFC8601"/> for use within
          its trust boundary. This document does not define how upstream results are
          carried across trust boundaries (see <xref target="appendix-e"/>).
          Organizations that delegate email delivery to external Email Service Providers
          (ESPs) <bcp14>SHOULD</bcp14> issue a distinct Operational Key per provider
          under their Root Identity Key so that an individual provider's key can be
          revoked independently.
        </t>
      </section>

      <section anchor="response-uniformity">
        <name>Response Uniformity and Transient Failures</name>
        <t>
          To prevent enumeration of active, expired, or revoked bindings, an inbound MTA
          <bcp14>MUST</bcp14> 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.
        </t>
        <t>
          If the MTA encounters a database timeout, lock contention, storage failure, or
          an uncached or expired Tier 2 discovery configuration requiring asynchronous
          refresh (<xref target="discovery"/>) during binding lookup or sequence update,
          it <bcp14>MUST</bcp14> 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 <bcp14>SHOULD</bcp14> employ
          short-TTL positive key caches and negative caches (30-60 seconds) to mitigate
          database load and cache-penetration attacks.
        </t>

      </section>

      <section anchor="monitoring-mode">
        <name>Monitoring Mode</name>
        <t>
          A receiver operating in Monitoring Mode (e.g., with MCEP_FLAG_MONITOR_ONLY
          0x10 combined with an enforcement mode, or policy dry-run) <bcp14>MUST</bcp14>
          execute the full verification pipeline (<xref target="verification-order"/>), 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 <bcp14>MUST NOT</bcp14> be able to
          distinguish Monitoring Mode from enforcement mode via SMTP replies. Receivers
          <bcp14>SHOULD</bcp14> operate newly onboarded addresses in Monitoring Mode prior
          to enabling Strict Reject.
        </t>
      </section>

      <section anchor="unverified">
        <name>Handling of Unverified Messages</name>
        <t>
          Handling of unverified messages depends on the recipient address's active
          policy mode (<xref target="architecture"/>):
        </t>
        <ul>
          <li>
            <strong>"strict" (0x03) and "public-strict" (0x02):</strong> A receiver
            <bcp14>MUST</bcp14> reject during the SMTP transaction any message that
            lacks a valid "MCEP-Signature" or fails verification, and
            <bcp14>MUST NOT</bcp14> quarantine or deliver it.
          </li>
          <li>
            <strong>"guarded" (0x07) and "public-guarded" (0x06):</strong> A receiver
            <bcp14>MUST</bcp14> 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
            (<xref target="ops-sender-allowlist"/>). Messages delivered via the
            Sender Allowlist <bcp14>MUST</bcp14> be clearly surfaced to the recipient
            as lacking MCEP cryptographic protection.
          </li>
          <li>
            <strong>"basic" (0x01) and "public" (0x00):</strong> The handling of
            unverified messages from unregistered senders (reject, quarantine, or mark
            as unverified) is governed by recipient policy and <bcp14>MUST</bcp14> be
            clearly surfaced to the recipient. Quarantined messages <bcp14>MUST</bcp14>
            be marked as unverified, distinguishing failed signatures from absent ones,
            and links or attachments <bcp14>SHOULD NOT</bcp14> be presented as
            actionable.
          </li>
          <li>
            <strong>Protection of Existing Bindings Across Restricted Modes:</strong>
            Under any mode enforcing <tt>MCEP_FLAG_PROTECT_REGISTERED</tt> ("basic" 0x01,
            "strict" 0x03, or "guarded" 0x07), a receiver <bcp14>MUST NOT</bcp14>
            quarantine or deliver an unsigned or invalidly signed message claiming a
            sender with an active binding; such messages <bcp14>MUST</bcp14> 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 (<xref target="architecture"/>).
          </li>
        </ul>
        <t>
          A sender bears the operational responsibility for key expiry, key loss, or binding
          revocation. Once a binding is re-established, the sender <bcp14>SHOULD</bcp14>
          retransmit previously rejected messages with fresh signatures.
        </t>
      </section>


    </section>

    <section anchor="headers">
      <name>Header Field Definitions and Cryptographic Algorithms</name>
      <t>
        All MCEP header fields are defined using ABNF syntax <xref target="RFC5234"/>
        and header folding rules (<tt>FWS</tt>) from <xref target="RFC5322"/>. Within any
        MCEP header field, each tag <bcp14>MUST</bcp14> appear exactly once; duplicate,
        unknown, missing, or malformed tags, or any tag value exceeding 1024 octets,
        <bcp14>MUST</bcp14> cause immediate verification failure. All numeric integer
        tags ("seq", "t", "nb", "exp", and "useq") <bcp14>MUST</bcp14> be encoded in
        canonical base-10 ASCII form without leading zeros (except the single digit "0"),
        <bcp14>MUST</bcp14> fit within an unsigned 64-bit integer (<tt>uint64</tt>,
        0 through 18446744073709551615), and <bcp14>MUST</bcp14> 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
        <xref target="RFC4648"/>, and UUIDs follow lowercase hexadecimal representation
        per <xref target="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 <bcp14>MUST NOT</bcp14> be used as the "kid" of any Operational Key or Delegated
		Key. Common value rules shared across MCEP headers are defined below:
      </t>
      <sourcecode type="abnf"><![CDATA[
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"="
]]></sourcecode>

      <section anchor="algorithms">
        <name>Supported Cryptographic Algorithms</name>
        <dl>
          <dt>ed25519 (RECOMMENDED for servers):</dt>
          <dd>
            EdDSA over Curve25519 <xref target="RFC8032"/> with 32-octet public keys and
            64-octet signatures (<tt>R || S</tt>). To prevent signature malleability,
            receivers <bcp14>MUST</bcp14> strictly enforce <xref target="RFC8032"/>
            canonical scalar validation and reject any signature whose 32-octet
            little-endian integer <tt>S</tt> is not strictly less than the group order
            <tt>L = 2^252 + 27742317777372353535851937790883648493</tt>.
          </dd>
          <dt>es256 (RECOMMENDED for mobile hardware keystores):</dt>
          <dd>
            ECDSA using NIST P-256 and SHA-256. Public keys are encoded as 65-octet SEC1
            uncompressed points. Signatures <bcp14>MUST</bcp14> be encoded in fixed 64-octet
            IEEE P1363 raw format (R || S), matching Section 3.4 of <xref target="RFC7518"/>,
            prior to Base64 encoding; DER encoding <bcp14>MUST NOT</bcp14> be used. In
            addition, a sender <bcp14>MUST</bcp14> normalize the signature to low-S (s not
            greater than n/2, where n is the order of the curve), and a receiver
            <bcp14>MUST</bcp14> reject a signature whose r or s is zero or not less than n,
            or whose s is greater than n/2.
          </dd>
        </dl>
        <t>
			Signature values ("s" and "rs") are standard Base64-encoded
			<xref target="RFC4648"/> and <bcp14>MUST</bcp14> 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
			<bcp14>MUST</bcp14> be rejected.
        </t>
      </section>
      <section anchor="mcep-signature">
        <name>MCEP-Signature</name>
        <t>
          An authenticated MCEP message <bcp14>MUST</bcp14> 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 <bcp14>REQUIRED</bcp14>.
        </t>

        <section anchor="sig-syntax">
          <name>Syntax</name>
          <sourcecode type="abnf"><![CDATA[
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
]]></sourcecode>
          <t>Example:</t>
          <artwork><![CDATA[
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>
]]></artwork>
        </section>

        <section anchor="sig-identifiers">
          <name>Identifiers</name>
          <dl>
            <dt>cid:</dt>
            <dd>The fixed Consent ID identifying the binding.</dd>
            <dt>kid:</dt>
            <dd>Identifies the Operational Key used to sign the message.</dd>
            <dt>mid:</dt>
            <dd>
              A lowercase UUID generated once when the message is first signed. It
              <bcp14>MUST</bcp14> remain unchanged across all retransmissions, including
              those re-signed with a new "seq" and "t", and <bcp14>MUST NOT</bcp14> be
              reused for another message.
            </dd>
            <dt>seq:</dt>
            <dd>
              A monotonically increasing counter assigned by the sender per Consent ID
              and "kid". Gaps are permitted. A new "kid" starts an independent series
              and <bcp14>MAY</bcp14> begin at 1. A sender <bcp14>MUST</bcp14> persist
              the counter before using a value.
            </dd>
            <dt>t:</dt>
            <dd>Signing time in seconds since the UNIX epoch (UTC).</dd>
          </dl>
        </section>
        <section anchor="sig-signed-data">
          <name>Signed Data</name>
          <t>
            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 ("&lt;len&gt;:&lt;value&gt;"):
          </t>
          <ol>
            <li>"MCEP-Signature-v1" (domain separation label)</li>
            <li>"v" (protocol version integer string, "1")</li>
            <li>"cid" (lowercase UUID string)</li>
            <li>"kid" (key identifier string)</li>
            <li>"mid" (lowercase message UUID string)</li>
            <li>"alg" (lowercase algorithm identifier: "ed25519" or "es256")</li>
            <li>"seq" (base-10 unsigned 64-bit integer string)</li>
            <li>"t" (base-10 UNIX timestamp in seconds)</li>
            <li>
              "envelope-from" (ASCII-only normalized lowercase single mailbox address from
              SMTP MAIL FROM, or empty string for the null reverse-path "&lt;&gt;")
            </li>
            <li>
              "envelope-to" (ASCII-only normalized lowercase single envelope recipient
              from SMTP RCPT TO)
            </li>
            <li>
              "header-from" (ASCII-only normalized lowercase single mailbox address from
              the From header)
            </li>
            <li>"headers-hash" (lowercase hex SHA-256 digest of core headers, defined below)</li>
            <li>"body-hash" (lowercase hex SHA-256 digest of the CRLF-canonicalized body)</li>
          </ol>
          <t>
            <strong>Core Headers Canonicalization ("headers-hash"):</strong> 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 "&lt;name&gt;:\r\n". If any of these seven header
            fields appears more than once in the message, verification <bcp14>MUST</bcp14>
            fail.
          </t>
        </section>

        <section anchor="sig-addr-norm">
          <name>Address Normalization</name>
          <t>
            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 <bcp14>MUST</bcp14> consist only of ASCII letters,
            digits, ".", "_", "-", "+", and "@", and <bcp14>MUST</bcp14> contain exactly one
            "@". Uppercase ASCII letters are converted to lowercase. Non-ASCII characters,
            whitespace, and control characters in the addr-spec <bcp14>MUST</bcp14> cause
            verification to fail. Internationalized email addresses are out of scope in
            this version.
          </t>
        </section>
      </section>
      <section anchor="mcep-key-update">
        <name>MCEP-Key-Update</name>
        <t>
          Operational Keys <bcp14>SHOULD</bcp14> 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 (<tt>signer_kid=root</tt>),
          an authorized Delegated Key (identified by its delegated <tt>kid</tt>),
          or the active Operational Key for peer-to-peer bindings without a Root Key.
        </t>
        <t>
          The "MCEP-Key-Update" header field is formatted as semicolon-separated
          "tag=value" pairs containing all ten <bcp14>REQUIRED</bcp14> tags ("v", "cid",
          "signer_kid", "new_kid", "new_alg", "new_pk", "nb", "exp", "useq", "rs"):
        </t>
        <sourcecode type="abnf"><![CDATA[
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
]]></sourcecode>
        <t>Example:</t>
        <artwork><![CDATA[
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>
]]></artwork>

        <t>
          <strong>Signed Data:</strong> The cryptographic signature ("rs")
          <bcp14>MUST</bcp14> be computed using the authority key identified by
          "signer_kid" (where <tt>"root"</tt> 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 "&lt;len&gt;:&lt;value&gt;" encoded concatenation of ten
          fields in exact order:
        </t>
        <ol>
          <li>"MCEP-KeyUpdate-v1" (domain separation label)</li>
          <li>"v" (protocol version integer string, "1")</li>
          <li>"cid" (lowercase UUID string)</li>
          <li>"signer_kid" (authority signing key identifier string, or "root")</li>
          <li>"new_kid" (new key identifier string)</li>
          <li>"new_alg" (lowercase algorithm identifier for the new key: "ed25519" or "es256")</li>
          <li>"new_pk" (Base64-encoded public key material)</li>
          <li>"nb" (not-before UNIX timestamp in seconds)</li>
          <li>"exp" (expiration UNIX timestamp in seconds)</li>
          <li>"useq" (monotonically increasing update sequence number)</li>
        </ol>
        <t>
          <strong>Validation and State Transition:</strong> A message <bcp14>MUST</bcp14>
          carry at most one "MCEP-Key-Update" header field; messages with multiple or invalid
          "MCEP-Key-Update" headers <bcp14>MUST</bcp14> be immediately rejected with the
          uniform response of <xref target="response-uniformity"/>. The receiving MTA
          <bcp14>MUST</bcp14> verify that:
        </t>
        <ul>
          <li>"cid" matches the "cid" of the accompanying "MCEP-Signature" header field;</li>
          <li>
            "signer_kid" resolves to an unrevoked authority key holding "rotate"
            permission for the binding, and "rs" verifies against that key;
          </li>
          <li>
            "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;
          </li>
          <li>"useq" is strictly greater than the highest accepted "useq" for the binding;</li>
          <li>
            "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.
          </li>
        </ul>
        <t>
          The receiver <bcp14>MUST NOT</bcp14> 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 <bcp14>MUST</bcp14> be assigned the default
          least-privilege permissions specified in <xref target="key-permissions"/>
          (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 <bcp14>MUST</bcp14> transition
		  the replaced prior key to the "retiring" grace slot governed by the strict
		  acceptance rules in <xref target="key-rollover"/>, install the new Operational
		  Key as active, update "useq", and initialize "last_seq" to 0 for the new "kid".
        </t>
      </section>


      <section anchor="mcep-revocation">
        <name>MCEP-Revocation</name>
        <t>
          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
          <bcp14>SHOULD</bcp14> transmit this header over SMTP as a resilient fallback
          whenever the HTTPS endpoint is unreachable, times out, or returns a transient error.
        </t>
        <t>
          The "MCEP-Revocation" header field is formatted as semicolon-separated
          "tag=value" pairs containing all six <bcp14>REQUIRED</bcp14> tags ("v", "cid",
          "signer_kid", "alg", "t", "rs"):
        </t>
        <sourcecode type="abnf"><![CDATA[
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
]]></sourcecode>
        <t>Example:</t>
        <artwork><![CDATA[
MCEP-Revocation: v=1; cid=550e8400-e29b-41d4-a716-446655440000;
 signer_kid=root; alg=ed25519; t=1795262400; rs=<base64_root_sig>
]]></artwork>
        <t>
          The receiving MTA <bcp14>MUST</bcp14> verify that "t" falls within the
          asymmetric timestamp window defined in <xref target="verification-order"/>
          (no more than 60 seconds in the future and no more than 300 seconds in the
          past). The cryptographic signature ("rs") <bcp14>MUST</bcp14> be computed
          using the authority key identified by "signer_kid" (where <tt>"root"</tt>
          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
          "&lt;len&gt;:&lt;value&gt;" encoded concatenation of six fields in exact order:
        </t>

        <ol>
          <li>"MCEP-Revocation-v1" (domain separation label)</li>
          <li>"v" (protocol version integer string, "1")</li>
          <li>"cid" (lowercase UUID string)</li>
          <li>"signer_kid" (authority signing key identifier string, or "root")</li>
          <li>"alg" (lowercase algorithm identifier: "ed25519" or "es256")</li>
          <li>"t" (base-10 UNIX timestamp in seconds)</li>
        </ol>
        <t>
          An inbound MTA <bcp14>MUST</bcp14> enforce the following processing rules when
          handling "MCEP-Revocation":
        </t>
        <ul>
          <li>
            <strong>Evaluation Order:</strong> The MTA <bcp14>MUST</bcp14> 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.
          </li>
          <li>
            <strong>Single Header and Fail-Closed Rejection:</strong> A message
            <bcp14>MUST</bcp14> 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 <bcp14>MUST</bcp14> immediately reject the message with the uniform
            response of <xref target="response-uniformity"/> (regardless of whether a valid
            "MCEP-Signature" is present) and <bcp14>MUST NOT</bcp14> alter any binding
            state.
          </li>
          <li>
            <strong>Revocation Execution and Termination:</strong> Upon successful
            verification, the MTA <bcp14>MUST</bcp14> 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 <tt>signer_kid=root</tt>, 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.
          </li>
          <li>
            <strong>Idempotence:</strong> A revocation already applied is not an error;
            the message is rejected as above.
          </li>
        </ul>
      </section>

    </section>

    <section anchor="keys">
      <name>Keys, Lifecycle States</name>
      <section anchor="key-permissions">
        <name>Key Permissions Advertisement and Enforcement</name>
        <t>
          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:
        </t>
        <ul>
          <li>
            <strong>Discovery Document Advertisement ("/.well-known/mcep-configuration"):</strong>
            Organization-wide or Delegated Keys <bcp14>MAY</bcp14> 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 <xref target="discovery"/>. Receivers
            <bcp14>MUST</bcp14> 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 <bcp14>MUST</bcp14> reject any Delegated Key
            whose signature fails verification.
          </li>
          <li>
            <strong>Per-Binding Registration or Rotation ("registration_uri" / Key Update):</strong>
            Per-binding Operational Keys ("kid") declare their permissions during the
            initial registration handshake (<xref target="registration"/>) or during a
            signed key rotation (<xref target="mcep-key-update"/>), authorized by a key
            holding "register" or "rotate" permission. The receiving MSP stores the
            permitted operations alongside ("cid", "kid").
          </li>
        </ul>
        <t>
          <strong>Default Least-Privilege Rule and Enforcement:</strong> If no explicit
          permissions are declared for an Operational Key, receivers <bcp14>MUST</bcp14>
          determine default permissions strictly from the explicit "auth_mode"
          established at registration (<xref target="registration"/>) 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 <bcp14>MUST</bcp14> 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 <bcp14>MUST</bcp14> reject
          any protocol operation signed by a key that lacks the corresponding permission.
        </t>

      </section>

      <section anchor="key-rollover">
        <name>Key States and Pre-Registration Rollover</name>
        <t>
          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 (<tt>rotated_at</tt>), installs the new key as
          "active" (initializing its <tt>last_seq</tt> to 0), and transitions the
          replaced prior key to "retiring" until <tt>grace_until = min(rotated_at +
          grace_seconds, prior_key.exp)</tt>, where <tt>grace_seconds</tt> is
          recommended to be 300 to 600 seconds (exceeding the 300-second inbound
          signature past-timestamp window).
        </t>
        <t>
          <strong>Strict Acceptance Conditions During the Grace Window:</strong> Once
          a rotation is initiated or committed, a sender <bcp14>MUST NOT</bcp14> sign
          any new messages (including re-signed retries after the 240-second
          retransmission window of <xref target="retries-and-multi-rcpt"/>) with the
          retiring key. A receiver <bcp14>MUST</bcp14> 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 <tt>grace_until</tt>; (2) the
          message's signature timestamp <tt>"t"</tt> satisfies <tt>t &lt;= rotated_at</tt>
          (confirming the message was signed prior to rotation commit) and remains
          within the standard 300-second past-timestamp window of
          <xref target="verification-order"/>; and (3) the message satisfies sequence
          monotonicity (<tt>seq &gt; last_seq</tt>, or identical-signature
          deduplication) against the retiring key's own stored <tt>last_seq</tt>.
          Any message signed by a "retiring" key that fails these conditions - including
          messages carrying <tt>t &gt; rotated_at</tt> or arriving after
          <tt>grace_until</tt> - <bcp14>MUST</bcp14> be rejected with the uniform
          response of <xref target="response-uniformity"/>. 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.
        </t>
        <t>
          <strong>Registration Before Sending (Recommended):</strong> Senders
          <bcp14>SHOULD</bcp14> register new Operational Keys out-of-band by sending an HTTPS
          POST (signed per <xref target="oob-signing"/> 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.
        </t>
      </section>

      <section anchor="dormancy">
        <name>Binding Dormancy and Resumption</name>
        <t>
          An MSP <bcp14>MAY</bcp14> 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
          (<xref target="mcep-key-update"/>) or, if the Root Key was lost, a new registration
          (<xref target="registration"/>). Bindings approved with a <tt>"purpose_scope"</tt>
          of <tt>"mandatory_transactional"</tt> (<xref target="registration"/>)
          <bcp14>SHOULD NOT</bcp14> become dormant automatically.
          Receivers <bcp14>SHOULD</bcp14> re-verify revocation status when a long-dormant
          binding resumes. If a recipient mailbox is deleted or reassigned to a new user,
          the MSP <bcp14>MUST</bcp14> permanently revoke all associated bindings.
        </t>
      </section>

    </section>

    <section anchor="privacy">
      <name>Privacy Considerations</name>
      <t>
        Because bindings reflect a user's commercial and personal relationships, MSPs
        <bcp14>SHOULD</bcp14> 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
        <bcp14>MUST NOT</bcp14> disclose the reason for revocation.
      </t>
    </section>

    <section anchor="consent-revocation">
      <name>Consent Scopes and Irreversible Revocation</name>
      <t>
        <strong>Unconditional Recipient Revocation Right:</strong> A recipient
        <bcp14>MUST</bcp14> retain the unilateral ability to revoke any binding
        at any time - including bindings approved as "mandatory_transactional" - to
        ensure immediate protection if a bound peer is compromised or becomes abusive.
      </t>
      <t>
        <strong>Immediate Local Enforcement and Irreversibility:</strong> Regardless of the
        channel through which a valid revocation is received, the receiving MSP
        <bcp14>MUST</bcp14> immediately mark the binding permanently revoked in its local
        database, invalidate cached key entries in the same operation, and asynchronously
        notify the bound peer's "revocation_uri" using a signed revocation notification payload
        (<xref target="oob-signing"/>, domain-separation label <tt>"MCEP-RevokeNotify-v1"</tt>
        covering "cid", "revoked_at", "nonce", and "t", signed by the recipient key
        exchanged at registration - or the receiving domain's authorized key - without disclosing
        any revocation reason). Failure or timeout of the outbound notification
        <bcp14>MUST NOT</bcp14> revert local enforcement. Once revoked, a "cid" and its
        associated keys <bcp14>MUST NOT</bcp14> be reactivated; restoring communication after
        an accidental revocation <bcp14>MUST</bcp14> be performed by establishing a new
        binding with a fresh "cid" and new key material.
      </t>
      <t>
        <strong>Sender-Initiated Revocation Channels:</strong> A sender <bcp14>MAY</bcp14>
        revoke a binding via: (1) HTTPS POST to the receiving MSP's "revocation_uri" (primary
        channel, retried with bounded exponential backoff), (2) the in-band "MCEP-Revocation"
        header (<xref target="mcep-revocation"/>) as a fallback when HTTPS is unreachable, or
        (3) expiration of short-lived Operational Keys. Urgent revocations <bcp14>SHOULD</bcp14>
        use multiple channels.
      </t>
      <t>
        <strong>Re-Registration Rate Limiting:</strong> To prevent harassment via
        repeated registration requests after revocation, receiving MSPs and MUAs
        <bcp14>MUST</bcp14> enforce the following rules (summarized in
        <xref target="tbl-rereg-limits"/>):
      </t>
      <ul>
        <li>
          <strong>No State Disclosure:</strong> Unless explicitly re-authorized
          after revocation, the receiving MSP <bcp14>MUST NOT</bcp14> disclose
          prior revocation or block-list status to the sender and
          <bcp14>MUST</bcp14> return the uniform indistinguishable pending
          response specified in <xref target="registration"/>.
        </li>
        <li>
          <strong>No Auto-Approval Without Re-Authorization:</strong> Prior
          revocation or block-list presence <bcp14>MUST</bcp14> suppress automatic
          approval across all address classes (taking precedence over public
          address-class auto-approval rules in <xref target="p2p-onboarding"/>)
          unless the recipient explicitly re-authorizes the sender after revocation
          via a newly issued invitation token or a post-revocation Sender Allowlist
          entry.
        </li>
        <li>
          <strong>No Reuse of Prior Consent IDs:</strong> Requests
          <bcp14>MUST NOT</bcp14> reuse a previously used or revoked
          <tt>"cid"</tt>. Any request submitting an already-used or revoked
          <tt>"cid"</tt> <bcp14>MUST</bcp14> be silently discarded without
          modifying state while returning the uniform pending response.
        </li>
        <li>
          <strong>Strict Rate Limits and Abuse Suppression:</strong> The receiving
          MSP <bcp14>MUST</bcp14> enforce strict per-sender rate limits (e.g.,
          maximum 3 requests per 30 days) and a recipient-controlled block list.
          When presenting a valid new request to the user, the MUA
          <bcp14>SHOULD</bcp14> indicate any prior revocation history. After
          revocation for abuse, when the sender matches a recipient block list,
          or when the rate limit is exceeded, subsequent registration requests
          <bcp14>SHOULD</bcp14> be silently discarded locally without surfacing
          notifications to the recipient while still returning the uniform
          pending response.
        </li>
      </ul>
      <table anchor="tbl-rereg-limits">
        <name>Summary of Re-Registration Handling After Revocation</name>
        <thead>
          <tr>
            <th>Condition</th>
            <th>Recommended Limit</th>
            <th>Local Handling &amp; UI Behavior</th>
            <th>HTTP Response</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Reused or previously revoked <tt>"cid"</tt></td>
            <td>0 allowed</td>
            <td>Silently discard without state change or user notification</td>
            <td>202 Accepted (<tt>"pending"</tt>)</td>
          </tr>
          <tr>
            <td>Valid new request within rate limit</td>
            <td>Max 3 per 30 days per sender</td>
            <td>Queue as <tt>"pending"</tt> (no auto-approval); indicate prior revocation history in MUA</td>
            <td>202 Accepted (<tt>"pending"</tt>)</td>
          </tr>
          <tr>
            <td>Rate limit exceeded, abuse-revoked, or block-listed</td>
            <td>0 surfaced</td>
            <td>Silently discard locally without notifying the recipient</td>
            <td>202 Accepted (<tt>"pending"</tt>)</td>
          </tr>
          <tr>
            <td>Post-revocation invitation token or Allowlist entry</td>
            <td>Explicit re-authorization</td>
            <td>Auto-approve and activate new binding (<xref target="p2p-onboarding"/>)</td>
            <td>200 OK (<tt>"active"</tt>)</td>
          </tr>
        </tbody>
      </table>
      <t>
        <strong>Auto-Registration Rate Limiting and Abuse Prevention:</strong> Endpoints
        permitting automatic binding approval (such as "public" or "public-strict"
        addresses) <bcp14>MUST</bcp14> enforce rate limits per source IP, sender domain,
        and target recipient address, and <bcp14>MAY</bcp14> require additional checks
        (such as organizational Root Identity Key verification or reputation filtering)
        to prevent automated registration floods from exhausting binding storage.
        Automatic activation on such endpoints <bcp14>MUST</bcp14> be restricted to
        senders verified via their domain discovery configuration (<xref target="discovery"/>)
        or a valid pre-issued invitation token; any self-signed registration lacking
        both domain discovery and an invitation token <bcp14>MUST</bcp14> be restricted to
        "sender_scope": "exact", held in "pending" state rather than immediately activated,
        and promoted to "active" only after explicit recipient approval or Return-Routability
        Verification (<xref target="p2p-onboarding"/>, confirming mailbox reachability via
        an SMTP challenge nonce and key possession via a signed HTTPS confirmation to
        "registration_uri").
      </t>
      <t>
        <strong>Compromise of the Root Identity Key:</strong> A sender that knows or suspects
        compromise of its Root Identity Key <bcp14>SHOULD</bcp14> revoke affected bindings,
        notify recipients out-of-band, generate a new Root Identity Key, and re-establish
        bindings via <xref target="registration"/>. Receivers detecting conflicting requests
        signed by the same Root Key <bcp14>MUST</bcp14> suspend automatic migrations and key
        updates and require explicit recipient approval. Revocation <bcp14>MUST</bcp14> take
        precedence over any conflicting migration.
      </t>
    </section>
    <section anchor="security">
      <name>Security Considerations</name>
      <ul>
        <li>
          <strong>Transport Security:</strong> All MCEP HTTPS endpoints <bcp14>MUST</bcp14>
          require TLS 1.3 or higher <xref target="RFC9846"/>. SMTP exchanges between
          MCEP-capable MTAs <bcp14>SHOULD</bcp14> enforce STARTTLS <xref target="RFC3207"/>
          with MTA-STS <xref target="RFC8461"/> or DANE <xref target="RFC7672"/> to
          prevent downgrade and passive observation.
        </li>
        <li>
          <strong>Multi-Tenant and Shared Hosting Isolation:</strong> Bypassing MCEP
          verification for local or intra-server delivery <bcp14>SHOULD</bcp14> be restricted
          strictly to single-organization enterprise environments governed by a unified
          administrative trust boundary. In shared hosting, multi-domain, or public MSP
          environments where co-hosted tenants do not share mutual trust, inbound and local
          delivery paths <bcp14>MUST NOT</bcp14> bypass MCEP verification based solely on
          server locality or shared infrastructure.
        </li>
        <li>
          <strong>Algorithm Binding:</strong> Implementations <bcp14>MUST</bcp14> bind the
          cryptographic algorithm ("ed25519" or "es256") to every stored public key at
          registration time (whether an Operational Key, Root Identity Key, or Delegated Key).
		  When verifying any signed MCEP header or API request, the
          receiver <bcp14>MUST</bcp14> determine the verification algorithm strictly from
          the registered verification key rather than trusting the header's "alg" tag, and
          <bcp14>MUST</bcp14> reject the message if the header's "alg" tag mismatches the
          expected key type.
        </li>
        <li>
          <strong>Counter Recovery and Jump Bounding:</strong> If a sender loses its sequence
          counter ("seq") state (e.g., after a backup restore), it <bcp14>MUST</bcp14> rotate
          to a new Operational Key ("kid") rather than reusing earlier sequence numbers.
          Receivers <bcp14>SHOULD</bcp14> enforce a maximum permitted jump in "seq".
        </li>
        <li>
          <strong>Enumeration Resistance and Single-Recipient Trade-Off:</strong>
          Error responses across unregistered, expired, revoked, invalid, and
          replay-rejected cases are uniform in text and timing to prevent binding
          enumeration (whereas authenticated idempotent retries with identical
          signatures or matching "mid" hashes are acknowledged with 250 OK and
          silently deduplicated as specified in <xref target="verification-order"/>).
          Returning SMTP 452 for additional recipients in a multi-recipient
          transaction may indicate that an address is MCEP-protected; this is an
          accepted protocol trade-off.
        </li>

        <li>
          <strong>Fail-Closed Revocation Header Processing:</strong> An invalid or
          unauthenticated "MCEP-Revocation" header causes immediate message rejection
          without altering any stored binding state, preventing forged headers from
          causing denial-of-service revocations.
        </li>
        <li>
          <strong>Outbound URI Fetching and SSRF Protections:</strong> All out-of-band
          HTTPS requests (including discovery documents, revocation callbacks, and
          migration attestations) <bcp14>MUST</bcp14> enforce the transport, redirect,
          timeout, size, and private-IP validation rules defined in
          <xref target="discovery"/> to prevent Server-Side Request Forgery (SSRF) and
          resource exhaustion.
        </li>
        <li>
          <strong>Atomic State Update Timing:</strong> If local mail delivery fails
          after replay state ("last_seq" and deduplication records) is updated, a
          subsequent sender retransmission may be silently discarded as a duplicate;
          implementations <bcp14>SHOULD</bcp14> commit state updates as late as
          possible immediately prior to final acceptance.
        </li>
        <li>
          <strong>Strict Input Parsing and Fuzzing:</strong> Header and JSON parsers
          <bcp14>MUST</bcp14> reject duplicate tags, unknown parameters, and oversized
          inputs; fuzz testing of parsers is <bcp14>RECOMMENDED</bcp14>.
        </li>
        <li>
          <strong>Organizational Key Hierarchy and Separation of Privilege:</strong>
          MCEP is designed to accommodate a wide range of key management models
          depending on the sender's operational scale and security requirements.
          While a simple peer-to-peer relationship can operate with a single
          pairwise keypair, organizational senders <bcp14>SHOULD</bcp14> separate
          Operational Keys from higher-privilege authority keys to minimize
          the blast radius of a key compromise.
          Implementations can assign distinct functional roles to Tier 2 Delegated
          Keys - such as using a single policy and revocation key for registration,
          key rotation, and emergency shutdown, or splitting Tier 2 permissions across
          separate policy-management and revocation-only Delegated Keys - and Tier 3
          Operational Keys (for routine message authentication), or combine them
          as needed.
          Advanced key lifecycle patterns, such as next-key pre-rotation
          commitments, can also be layered onto this model without altering the core
          wire protocol.
        </li>
        <li>
          <strong>Residual Challenge Mail-Bombing Risk on Public Endpoints:</strong>
          Even when automated Return-Routability Verification (<xref target="p2p-onboarding"/>)
          is restricted to public-facing address classes ("public" 0x00, "public-strict"
          0x02, and "public-guarded" 0x06) or allowlisted senders and omits attacker-supplied
          text, an attacker could still submit forged self-signed registration requests
          claiming third-party victim addresses across multiple distinct public MCEP
          deployments to trigger unsolicited challenge emails toward a victim mailbox.
          Operators enabling automated challenges on public endpoints <bcp14>MUST</bcp14>
          enforce strict per-target-mailbox and per-source-IP rate limits (as required in
          <xref target="p2p-onboarding"/>) and <bcp14>SHOULD</bcp14> layer additional
          abuse controls such as proof-of-work, interactive challenges, or sender-IP
          reputation filtering on unauthenticated registration requests.
        </li>
        <li>
          <strong>Clock Synchronization:</strong> MCEP's replay-window checks
          (+60/-300 seconds on inbound signatures and revocation headers),
          out-of-band request freshness windows, key validity bounds ("nb" and "exp"),
          and key-rollover grace intervals assume that participating nodes maintain
          reasonably synchronized UTC system clocks. Participating MTAs, signing
          services, and control-plane endpoints <bcp14>SHOULD</bcp14> synchronize
          their system clocks to UTC using a reliable time synchronization mechanism
          such as the Network Time Protocol (NTP) <xref target="RFC5905"/>. Clock
          drift beyond the +60/-300 second tolerance window will cause legitimate
          messages and control requests to fail verification.
        </li>


      </ul>
      <artwork><![CDATA[
+---------------------------------------------------------------+
| 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 |
+-------------------+ +-------------------+ +-------------------+
]]></artwork>
      <ul>
        <li>
          <strong>Tier 1 (Domain Root Key):</strong> Kept offline and used solely to
          establish the domain trust anchor, authorize Tier 2 keys, or execute a
          domain-wide emergency shutdown.
        </li>
        <li>
          <strong>Tier 2 (Delegated Key):</strong> Managed by domain security administrators
		  to authorize Tier 3 key lifecycles and issue immediate revocation directives.
        </li>
        <li>
          <strong>Tier 3 (Operational Signing Keys):</strong> Deployed on individual mail
          workers, backend systems, or user devices strictly for signing outgoing MCEP
          traffic ("MCEP-Signature"). Their public keys are the Operational Key materials
          published and exchanged via MCEP endpoints, and compromising one Tier 3 key does
          not affect sibling keys.
        </li>
        <li>
          <strong>One- and Two-Key Deployment Options:</strong> Small deployments
          and individual peers are not required to maintain all three key tiers.
          In a two-key deployment (Tier 1 + Tier 3, omitting optional Delegated
          Keys), the Root Identity Key directly registers, rotates
          (<tt>signer_kid=root</tt>), and revokes Operational Keys without requiring
          DNS updates. In a single-key deployment, only one key pair is maintained:
          peers operating without domain discovery (<tt>"self-signed"</tt> mode) use
          a single Operational Key holding <tt>["sign", "rotate", "revoke"]</tt>
          permissions and rotate it via <tt>MCEP-Key-Update</tt> or
          <tt>POST /mcep/rotate</tt>, whereas domains publishing discovery
          (<tt>"discovery"</tt> mode) may publish that single key as
          <tt>"root_public_key"</tt> (with no <tt>"delegated_keys"</tt>), register
          it as the Operational Key (using a non-reserved <tt>"kid"</tt>), and
          rotate it via <tt>POST /mcep/migrate</tt>
          (<tt>"type": "root_key_rotation"</tt>, setting both <tt>"new_root_key"</tt>
          and <tt>"new_pk"</tt> to the new key). Because discovery-based
          single-key rotation requires updating DNS TXT records and waiting for
          TTL expiration, operators that rotate Operational Keys frequently (e.g.,
          every 90 days) <bcp14>SHOULD</bcp14> prefer at least a two-key deployment.
        </li>

      </ul>
    </section>
    <section anchor="operational">
      <name>Operational Considerations</name>
      <t>
        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.
      </t>
      <section anchor="ops-deployment">
        <name>Deployment and Fail-Safe Configuration</name>
        <ul>
          <li>
            <strong>Phased Rollout and Fail-Safe Milter Configuration:</strong> Operators
            should run newly protected addresses in Monitoring Mode
            (<xref target="monitoring-mode"/>) 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.
          </li>
          <li>
            <strong>MSP Entry Points and Per-Recipient Transport:</strong> Consistent
            with <xref target="verification-order"/> and <xref target="security"/>, 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.
          </li>
          <li>
            <strong>Approval Presentation, Decision History, and Rejected Message Handling:</strong>
            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 (<xref target="ops-sender-allowlist"/>).
			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.
          </li>
          <li>
            <strong>Sender Self-Verification:</strong> 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.
          </li>
          <li>
            <strong>Key Custody and Physical Backup by Scale:</strong> 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).
          </li>
          <li>
            <strong>Out-of-Band Pairing Tokens:</strong> 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.
          </li>
          <li>
            <strong>Pre-Flight Key Rollover for Bulk Senders:</strong> High-volume
            senders and Email Service Providers (ESPs) resuming mailings after
            extended inactivity should perform out-of-band key
            rotation via "key_rotate_uri" (<xref target="key-rollover"/>) prior to
            SMTP submission to distinguish active or auto-resumed bindings from
            "pending" or revoked entries, preventing outbound SMTP queue congestion.
          </li>
          <li>
            <strong>Distributed Sender Sequencing:</strong> 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.
          </li>
          <li>
            <strong>Tier 2 Delegated Key Pre-Publication Warm-Up and Revocation Latency:</strong>
            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 <tt>signer_kid=root</tt>. 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 (<tt>POST /mcep/revoke</tt> with <tt>"target": "delegated_kid"</tt>)
            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.
          </li>

        </ul>
		
      </section>

      <section anchor="ops-consent-flows">
        <name>Consent Initiation and Binding Establishment Flows</name>
        <t>
          As specified in <xref target="registration"/>, all binding registrations
          occur over the out-of-band HTTPS control plane ("registration_uri") rather
          than over the in-band SMTP channel. Depending on which party initiates the
          communication intent, deployments support three primary onboarding patterns:
        </t>	
        <ul>
          <li>
            <strong>Sender-Initiated Out-of-Band Flows (MCEP-to-MCEP):</strong>
            Includes authenticated web form or account registration, as well as On-Send
            Out-of-Band Consent Requests where an MUA or sending MSP automatically POSTs
            to the recipient's "registration_uri" upon composing a first message after
            traditional address exchange (holding the SMTP payload until approved). Paper
            forms should migrate to QR codes or URLs triggering authenticated sessions
            rather than unauthenticated POSTs. Where a sender wishes to notify a recipient
            via an existing "basic" or "public" email contact prior to approval, the
            sender first submits the out-of-band HTTPS registration request and may then
            mention the pending request (and approval verification code) in a regular
            message, while actual approval remains strictly inside the receiving MSP's
            or MUA's authenticated interface (<xref target="registration"/>).
          </li>


          <li>
            <strong>Recipient-Initiated Out-of-Band Flows (MCEP-to-MCEP):</strong>
            Includes a unified local Sender Allowlist (pre-authorized by the recipient)
            that automatically approves a matching MCEP-capable sender's on-send HTTPS
            POST without manual pending delay, out-of-band Invitation Tokens shared via
            QR codes or messaging channels, and Time-Windowed Domain Openings that accept
            matching HTTPS registration POSTs into a pending approval queue during a
            bounded period (maintaining explicit recipient approval rather than
            auto-approving the first request to prevent front-running).
          </li>

          <li>
            <strong>Mutual Out-of-Band Pairing (MCEP-to-MCEP):</strong>
            In-person QR code exchanges or verified secondary channels establish mutual
            pairwise bindings immediately without pending approval delays.
          </li>
        </ul>
      </section>

      <section anchor="ops-transition-strategy">
        <name>Long-Term Coexistence and Transition Strategy</name>
        <t>
          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:
        </t>
        <ul>
          <li>
            <strong>Strict-Equivalent Protection for Bound Peers on "basic" and "guarded":</strong>
            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.
          </li>
          <li>
            <strong>Unified Sender Allowlist (Seamless MCEP and Legacy Handling):</strong>
            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.
          </li>
          <li>
            <strong>Role Separation for Public-Facing Addresses:</strong>
            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.
          </li>
        </ul>
      </section>

      <section anchor="ops-sender-allowlist">
        <name>Local Sender Allowlist Management</name>
        <t>
          A receiving MSP or MUA implementing a local Sender Allowlist stores
          recipient-scoped entries containing:
        </t>
        <ul>
          <li>
            <strong>Target and Allowed Identity:</strong> The target
            <tt>"recipient"</tt>, the pre-authorized <tt>"allowed_sender"</tt>,
            and <tt>"sender_scope"</tt> (<tt>"exact"</tt> or <tt>"domain"</tt>,
            with <tt>"domain"</tt> disallowed for shared webmail providers).
          </li>
          <li>
            <strong>Lifecycle Attributes:</strong> An optional expiration
            timestamp (<tt>"expires_at"</tt>) and a single-use consumption flag.
          </li>
        </ul>
        <t>
          Depending on the sender's MCEP deployment state, the allowlist entry
          governs message delivery and onboarding across three state transitions:
        </t>
        <ol>
          <li>
            <strong>State 1 - Non-MCEP Sender (Legacy Delivery):</strong>
            On <tt>"basic"</tt> (0x01) or <tt>"guarded"</tt> (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 (<tt>"exact"</tt>) recipient override
            acknowledged at registration time (<xref target="ops-transition-strategy"/>).
          </li>
          <li>
            <strong>State 2 - Transition to Self-Signed MCEP (MUA Only):</strong>
            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 <tt>"pending"</tt> state (continuing
            to deliver legacy DMARC-aligned email uninterrupted) and auto-promotes
            the binding only after Return-Routability Verification
            (<xref target="p2p-onboarding"/>, delivering an SMTP challenge nonce
            to the claimed mailbox and verifying the Initiator's signed HTTPS
            confirmation at <tt>"registration_uri"</tt>).
          </li>
          <li>
            <strong>State 3 - Transition to Discovery-Verified MCEP (Full Domain Deployment):</strong>
            When the sender's domain publishes a valid discovery configuration
            (<xref target="discovery"/>), 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.
          </li>
        </ol>
      </section>


    </section>

    <section anchor="iana">
      <name>IANA Considerations</name>

      <section anchor="iana-headers">
        <name>Message Header Field Registrations</name>
        <t>
          This document requests IANA to register the following header fields in the
          "Permanent Message Header Field Names" registry <xref target="RFC3864"/>:
        </t>
        <ul>
          <li>
            <strong>Header field name:</strong> MCEP-Signature<br/>
            <strong>Applicable protocol:</strong> mail<br/>
            <strong>Status:</strong> experimental<br/>
            <strong>Author/Change controller:</strong> IETF<br/>
            <strong>Specification document:</strong> This document (<xref target="mcep-signature"/>)
          </li>
          <li>
            <strong>Header field name:</strong> MCEP-Key-Update<br/>
            <strong>Applicable protocol:</strong> mail<br/>
            <strong>Status:</strong> experimental<br/>
            <strong>Author/Change controller:</strong> IETF<br/>
            <strong>Specification document:</strong> This document (<xref target="mcep-key-update"/>)
          </li>
          <li>
            <strong>Header field name:</strong> MCEP-Revocation<br/>
            <strong>Applicable protocol:</strong> mail<br/>
            <strong>Status:</strong> experimental<br/>
            <strong>Author/Change controller:</strong> IETF<br/>
            <strong>Specification document:</strong> This document (<xref target="mcep-revocation"/>)
          </li>
        </ul>
      </section>

      <section anchor="iana-dns">
        <name>Underscored DNS Node Name Registration</name>
        <t>
          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 <xref target="RFC8552"/>, with this document (<xref target="discovery"/>)
          as the specification reference.
        </t>
      </section>

      <section anchor="iana-wellknown">
        <name>Well-Known URI Registration</name>
        <t>
          This document requests IANA to register the following Well-Known URI suffix in
          the "Well-Known URIs" registry <xref target="RFC8615"/>:
        </t>
        <ul>
          <li><strong>URI suffix:</strong> mcep-configuration</li>
          <li><strong>Change controller:</strong> IETF</li>
          <li><strong>Specification document:</strong> This document (<xref target="discovery"/>)</li>
          <li><strong>Status:</strong> provisional</li>
        </ul>
      </section>

    </section>
  </middle>

  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.1918.xml"/> <!-- RFC 1918 (IPv4 Private Address Space) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/> <!-- RFC 2119 (BCP 14 Key Words: MUST, SHOULD, etc.) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3864.xml"/> <!-- RFC 3864 (IANA Message Header Field Registration Procedures) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4193.xml"/> <!-- RFC 4193 (Unique Local IPv6 Unicast Addresses) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4648.xml"/> <!-- RFC 4648 (Base64 Data Encodings) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5234.xml"/> <!-- RFC 5234 (Augmented BNF for Syntax Specifications: ABNF) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5321.xml"/> <!-- RFC 5321 (Simple Mail Transfer Protocol: SMTP) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5322.xml"/> <!-- RFC 5322 (Internet Message Format) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7518.xml"/> <!-- RFC 7518 (JSON Web Algorithms: ES256 IEEE P1363 Raw Signature Format) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8032.xml"/> <!-- RFC 8032 (Edwards-Curve Digital Signature Algorithm: Ed25519) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/> <!-- RFC 8174 (Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8552.xml"/> <!-- RFC 8552 (Scoped Interpretation of DNS Resource Records through Underscored Node Names) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8615.xml"/> <!-- RFC 8615 (Well-Known Uniform Resource Identifiers) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9562.xml"/> <!-- RFC 9562 (Universally Unique IDentifiers: UUID) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9846.xml"/> <!-- RFC 9846 (The Transport Layer Security (TLS) Protocol Version 1.3) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9989.xml"/> <!-- RFC 9989 (Domain-based Message Authentication, Reporting, and Conformance: DMARC Organizational Domain) -->
      </references>
      <references>
        <name>Informative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3207.xml"/> <!-- RFC 3207 (SMTP Service Extension for Secure SMTP over Transport Layer Security: STARTTLS) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3461.xml"/> <!-- RFC 3461 (SMTP Service Extension for Delivery Status Notifications: ENVID) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3464.xml"/> <!-- RFC 3464 (An Extensible Message Format for Delivery Status Notifications: DSN) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4303.xml"/> <!-- RFC 4303 (IP Encapsulating Security Payload: Sliding Replay Window Example) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5905.xml"/> <!-- RFC 5905 (Network Time Protocol Version 4: Clock Synchronization) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6376.xml"/> <!-- RFC 6376 (DomainKeys Identified Mail: DKIM) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6979.xml"/> <!-- RFC 6979 (Deterministic Usage of DSA and ECDSA: Appendix D Test Vector Private Key) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7208.xml"/> <!-- RFC 7208 (Sender Policy Framework: SPF) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7672.xml"/> <!-- RFC 7672 (SMTP Security via Opportunistic DNS-Based Authentication of Named Entities: DANE) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8461.xml"/> <!-- RFC 8461 (SMTP MTA Strict Transport Security: MTA-STS) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8601.xml"/> <!-- RFC 8601 (Message Header Field for Indicating Message Authentication Status: Authentication-Results) -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8617.xml"/> <!-- RFC 8617 (The Authenticated Received Chain: ARC Protocol) -->

        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-dkim-dkim2-spec-09.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-saez-xcim-04.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-uimonen-veif-02.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-hardt-email-verification-02.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-cure-core-00.xml"/>
      </references>
    </references>
 
    <section anchor="appendix-discovery">
      <name>Example Discovery Configuration Document</name>
      <t>
        The following non-normative example illustrates a JSON configuration
        document published at "https://&domain;/.well-known/mcep-configuration":
      </t>
      <sourcecode type="json">
{
  "version": 1,
  "issuer": "https://&domain;",
  "registration_uri": "https://&domain;/mcep/register",
  "key_rotate_uri": "https://&domain;/mcep/rotate",
  "revocation_uri": "https://&domain;/mcep/revoke",
  "migration_uri": "https://&domain;/mcep/migrate",
  "supported_algorithms": ["ed25519", "es256"],
  "max_age": 86400,
  "delegated_keys_max_age": 3600,
  "root_public_key": {
    "alg": "ed25519",
    "pk": "&lt;base64_root_public_key&gt;"
  },
  "delegated_keys": [
    {
      "kid": "policy-2026-01",
      "alg": "ed25519",
      "pk": "&lt;base64_policy_public_key&gt;",
      "permissions": ["register", "rotate", "revoke"],
      "key_scope": "*@&domain;",
      "nb": 1767225600,
      "exp": 1769817600,
      "root_sig": "&lt;base64_root_signature&gt;"
    }
  ],
  "classes": ["public", "basic", "public-strict", "strict",
 "public-guarded", "guarded"]
}
      </sourcecode>

      <artwork>
_mcep.&domain;. IN TXT ( "v=MCEP1; "
"cfg="
"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08; "
"rk="
"4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a"
)
      </artwork>

    </section>

    <section anchor="appendix-oob-examples">
      <name>Example Out-of-Band HTTPS Control Plane Payloads</name>
      <t>
        The following non-normative examples illustrate JSON request and response
        payloads for the four out-of-band HTTPS control plane endpoints defined in
        <xref target="appendix-discovery"/>.
      </t>

      <section anchor="appendix-ex-register">
        <name>Registration Request and Response (registration_uri)</name>
        <t>
          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.
        </t>
		
<t>1. POST /mcep/register (Symmetric: Initiator -&gt; Responder,
and Responder -&gt; Initiator upon approval; Initiator records
the pending cid in its local allowlist to auto-accept reply):</t>
<sourcecode type="json"><![CDATA[
{
  "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>"
}
]]></sourcecode>

<t>2a. 200 OK (Immediate approval via Allowlist or token):</t>
<sourcecode type="json"><![CDATA[
{
  "status": "active",
  "cid": "550e8400-e29b-41d4-a716-446655440000",
  "recipient_pk": "<base64_recipient_public_key>",
  "expires_at": 1798761600
}
]]></sourcecode>

<t>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):</t>
<sourcecode type="json"><![CDATA[
{
  "status": "pending",
  "cid": "550e8400-e29b-41d4-a716-446655440000",
  "status_uri": "https://receiver.example/mcep/register",
  "retry_after": 60,
  "pending_expires_at": 1767830405
}
]]></sourcecode>

<t>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):</t>
<sourcecode type="json"><![CDATA[
{
  "status": "active",
  "cid": "550e8400-e29b-41d4-a716-446655440000",
  "recipient_pk": "<base64_recipient_public_key>",
  "expires_at": 1798761600
}
]]></sourcecode>

      </section>

      <section anchor="appendix-ex-rotate">
        <name>Key Rotation Request and Response (key_rotate_uri)</name>
        <t>1. POST /mcep/rotate (Initiator rotates an Operational Key using a key holding "rotate" permission, signed with label "MCEP-Rotate-v1"):</t>
        <sourcecode type="json"><![CDATA[
{
  "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>"
}
]]></sourcecode>

        <t>2. 200 OK (Responder activates the new key and transitions the prior key to "retiring" for the grace window):</t>
        <sourcecode type="json"><![CDATA[
{
  "status": "rotated",
  "cid": "550e8400-e29b-41d4-a716-446655440000",
  "useq": 2,
  "active_kid": "op-2027-q1",
  "retiring_kid": "op-2026-q4",
  "grace_until": 1767226205
}
]]></sourcecode>
      </section>

      <section anchor="appendix-ex-revoke">
        <name>Revocation Request, Response, and Callback Notification (revocation_uri)</name>
        <t>1a. POST /mcep/revoke (Sender revokes the entire binding, signed with label "MCEP-Revoke-v1"):</t>
        <sourcecode type="json"><![CDATA[
{
  "cid": "550e8400-e29b-41d4-a716-446655440000",
  "target": "binding",
  "signer_kid": "policy-2026-01",
  "nonce": "<base64_128bit_nonce>",
  "t": 1767225700,
  "rs": "<base64_revoke_signature>"
}
]]></sourcecode>

        <t>1b. POST /mcep/revoke (Sender revokes a single compromised Operational Key while keeping the binding active):</t>
        <sourcecode type="json"><![CDATA[
{
  "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>"
}
]]></sourcecode>

        <t>1c. POST /mcep/revoke (Sender pushes emergency revocation of a compromised Delegated Key, signed by the domain's Root Identity Key):</t>
        <sourcecode type="json"><![CDATA[
{
  "cid": "550e8400-e29b-41d4-a716-446655440000",
  "target": "delegated_kid",
  "kid": "policy-2026-01",
  "nonce": "<base64_128bit_nonce>",
  "t": 1767225710,
  "rs": "<base64_root_revoke_signature>"
}
]]></sourcecode>

        <t>2. 200 OK (Immediate local revocation confirmed):</t>
        <sourcecode type="json"><![CDATA[
{
  "status": "revoked",
  "cid": "550e8400-e29b-41d4-a716-446655440000",
  "target": "binding",
  "revoked_at": 1767225700
}
]]></sourcecode>

        <t>3. POST /mcep/revoke (Asynchronous outbound notification from Receiver to Sender upon recipient-initiated revocation, signed with label "MCEP-RevokeNotify-v1" without disclosing reason):</t>
        <sourcecode type="json"><![CDATA[
{
  "cid": "550e8400-e29b-41d4-a716-446655440000",
  "revoked_at": 1767225800,
  "nonce": "<base64_128bit_nonce>",
  "t": 1767225800,
  "rs": "<base64_recipient_notify_signature>"
}
]]></sourcecode>
      </section>

      <section anchor="appendix-ex-migrate">
        <name>Domain and Address Migration Requests and Responses (migration_uri)</name>
        <t>1a. POST /mcep/migrate (Sender updates binding from old-sender.example to new-sender.example, dual-signed with label "MCEP-Migration-v1"):</t>
        <sourcecode type="json"><![CDATA[
{
  "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>"
}
]]></sourcecode>

        <t>1b. POST /mcep/migrate (New MSP submits counter-signed recipient address migration to Sender, dual-signed with label "MCEP-RecipientMigration-v1"):</t>
        <sourcecode type="json"><![CDATA[
{
  "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>"
}
]]></sourcecode>

        <t>2. 200 OK (Peer accepts migration and updates binding state):</t>
        <sourcecode type="json"><![CDATA[
{
  "status": "migrated",
  "type": "sender_domain",
  "cid": "550e8400-e29b-41d4-a716-446655440000",
  "sender": "*@new-sender.example",
  "mseq": 1,
  "active_kid": "op-2027-q1"
}
]]></sourcecode>
      </section>
    </section>

    <section anchor="appendix-canonical">
      <name>Canonical Input String Construction Example</name>
      <t>
        The following non-normative example illustrates the exact length-prefixed
        ASCII canonical byte sequence ("&lt;len&gt;:&lt;value&gt;") 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 <xref target="sig-signed-data"/> order
        ("From", "Reply-To", "To", "Cc", "Subject", "Date", "Message-ID"), with absent
        headers encoded as "&lt;name&gt;:\r\n" and each line terminated with CRLF - is:
      </t>
	  <artwork><![CDATA[
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>
]]></artwork>
      <t>
        Hashing that CRLF-delimited header block yields the SHA-256 digest
        "0c023f51063117147783d21cf093375fdb27da18e4cf5ab08aab28612e03a1cb", producing
        the following 13 canonical fields (with <tt>t=1795262400</tt> matching
        <tt>Sat, 21 Nov 2026 12:00:00 +0000</tt>):
      </t>
	  <artwork><![CDATA[
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
]]></artwork>
      <t>
        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.
      </t>
    </section>

    <section anchor="appendix-test-vector">
      <name>Verification Test Vectors</name>
      <t>
        To assist implementers in verifying interoperability of length-prefixed input
        construction, Ed25519 signing, and ES256 low-S normalization, reference test
        vectors derived from <xref target="appendix-canonical"/> are provided below.
      </t>

      <section anchor="appendix-test-vector-vec1">
        <name>Vector 1: Ed25519 Standard Message</name>
        <t>
          Uses the canonical 13-field byte sequence from <xref target="appendix-canonical"/>
          (with field 6 set to "7:ed25519" and field 8 set to "10:1795262400") and the
          <xref target="RFC8032"/> Section 7.1 test seed:
        </t>
<artwork><![CDATA[
Private Seed (32 octets):
  9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60
Public Key (32 octets):
  d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a
Canonical Input SHA-256:
  94a76fc545ee00e86337d2dd300c3d65e5922082a0bcc3cc3179b1d2ff3d98a0
Ed25519 Signature (64 octets):
  2d864fb03b64c7e2f342dc363ec677e6a36d0e23338fa07c570b0cdedb5020bb
  e90099e3276711d0c1e0804d753f1ac8d83c01b850ba98bee1a889d5eb9e110d
]]></artwork>
      </section>

      <section anchor="appendix-test-vector-vec2">
        <name>Vector 2: ES256 (P-256) IEEE P1363 Low-S Normalization</name>
        <t>
          Uses the canonical 13-field byte sequence from <xref target="appendix-canonical"/>
          with field 6 replaced by "5:es256" and the <xref target="RFC6979"/> Appendix A.2.5
          P-256 test private scalar d:
        </t>
<artwork><![CDATA[
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
]]></artwork>
      </section>
    </section>


    <section anchor="appendix-e">
      <name>Open Issues (to be removed before publication)</name>
      <t>
        The following items are intentionally left open for feedback during early
        implementation and interoperability testing:
      </t>
      <ul>
        <li>
          <strong>Body Canonicalization Profile:</strong> Exact whitespace and
          trailing-empty-line canonicalization rules for "body-hash" computation
          across diverse MTA relays (<xref target="sig-signed-data"/>).
        </li>
        <li>
          <strong>Upstream Result Propagation and Forwarding Profiles:</strong>
          Standardized syntax and profiles for carrying upstream MCEP
          verification outcomes across trust boundaries and mailing list
          managers (<xref target="intermediaries"/>).
        </li>
        <li>
          <strong>Coexistence with DKIM2:</strong> Standardized guidance on
          signing order (applying "MCEP-Signature" prior to DKIM2 signing),
          Reviser (as defined in DKIM2) header-modification recording when
          stripping or replacing "MCEP-Signature" during forwarding, and DSN
          authentication alignment (<xref target="intermediaries"/>,
          <xref target="I-D.ietf-dkim-dkim2-spec"/>).
        </li>
        <li>
          <strong>Forwarder DSN State Retention Scope:</strong> Whether
          retaining upstream signatures and envelope metadata across the
          bounce window (<xref target="retries-and-multi-rcpt"/>) should be
          mandatory for all forwarders or scoped to deployments supporting
          upstream DSN propagation.
        </li>
        <li>
          <strong>Automated Responses and Disposition Notifications:</strong> 
          Treatment of messages with a null reverse-path (MAIL FROM:&lt;&gt;)
		  other than delivery status notifications, such as out-of-office replies
		  and disposition notifications (MDNs); whether such messages carry
		  "MCEP-Signature" and are accepted through the standard verification
		  pipeline, and how unsigned null-sender messages are classified
		  (for example by the "report-type" of a multipart/report) and handled
		  per address class.
        </li>
        <li>
          <strong>ESMTP Single-Recipient Advertisement Extension:</strong> Whether a
          dedicated ESMTP service extension should be defined in the future to
          advertise MCEP protection and single-recipient transaction requirements
          during EHLO (<xref target="retries-and-multi-rcpt"/>).
        </li>
        <li>
          <strong>Bulk Revocation Digest / DNS Advertisement:</strong> Optional DNS-based
          revocation digest or pull-list mechanisms for rapid domain-wide recovery
          following a Root Identity Key compromise (<xref target="security"/>).
        </li>
        <li>
          <strong>Sequence Replay Window vs. Strict Monotonicity:</strong>
          Whether future revisions should define a bounded sliding replay
          window (e.g., a 64-bit bitmap similar to <xref target="RFC4303"/>) to natively tolerate
          minor out-of-order deliveries in distributed MTA deployments, or allow
          receivers to negotiate/select between strict monotonic ordering and a
          bounded replay window.
        </li>
        <li>
          <strong>Consent ID Inheritance and Down-Scoped Derivation ("domain" to "exact"):</strong>
          Whether future revisions should define a down-scoped binding inheritance
          mechanism allowing an active organization-wide binding ("sender_scope": "domain")
          to derive or automatically instantiate per-mailbox bindings ("sender_scope": "exact")
          for individual personnel or sub-systems without re-prompting the recipient,
          including rules for automatic vs. explicit derivation triggers, independent vs.
          cascading revocation, and key/sequence isolation (<xref target="registration"/>).
        </li>
        <li>
          <strong>Migration Declaration and Attestation Wire Formats:</strong>
          Exact JSON schemas, DNS TXT syntax, and domain-separation labels
          (e.g., "MCEP-MigrationDeclaration-v1" and "MCEP-MigrationAttestation-v1")
          for pre-migration declarations and dual-signed recipient migration
          attestations (<xref target="migration"/>, <xref target="oob-signing"/>).
        </li>
        <li>
          <strong>Default Dormancy Thresholds and Resumption Policy:</strong>
          Recommended default inactivity durations and normative conditions under
          which a dormant binding may resume automatically via key rotation
          versus requiring explicit user re-approval (<xref target="dormancy"/>).
        </li>
        <li>
          <strong>Status Poll Authentication Transport:</strong>
          Exact HTTP wire encoding (custom HTTP header fields vs. query
          parameters vs. authenticated POST) for carrying timestamp ("t"),
          nonce, and signature ("MCEP-Status-v1") on registration status
          polling requests, as well as constant-time handling for unknown
          Consent IDs (<xref target="oob-signing"/>,
          <xref target="appendix-ex-register"/>).
        </li>
        <li>
          <strong>Discovery Document Self-Signature Format:</strong> Whether
          future revisions should define a standardized top-level signature field
          (e.g., signed by "root_public_key" over the canonical configuration
          object) so clients can authenticate the <tt>/.well-known/mcep-configuration</tt>
          document directly when DNS TXT records are unavailable or unsigned
          (<xref target="discovery"/>, <xref target="oob-signing"/>).
        </li>
        <li>
          <strong>Delegated Key Lifecycle and Granular Scoping:</strong>
          Standardized out-of-band registration/announcement mechanisms and
          fine-grained per-address or per-operation scoping rules for Delegated
          Keys beyond discovery-document publication
          (<xref target="discovery"/>, <xref target="key-permissions"/>).
        </li>
        <li>
          <strong>Legacy Ecosystem Migration Profiles:</strong> Standardized
          operational profiles and automated upgrade signaling for migrating
          large-scale enterprise and consumer mail deployments from legacy
          SPF/DKIM/DMARC-only delivery to MCEP without disrupting existing
          correspondence (<xref target="fallback"/>,
          <xref target="ops-transition-strategy"/>).
        </li>
        <li>
          <strong>MUA Integration and Client Synchronization Profile:</strong>
          Standardized client-to-MSP interfaces for surfacing pending consent
          approvals, syncing per-relationship signing keys across multiple user
          devices, and displaying MCEP verification status in Mail User Agents
          (<xref target="registration"/>).
        </li>

        <li>
          <strong>Discovery-Based Next-Key Publication and Passive Rollover:</strong>
          Whether future revisions should standardize an optional
          <tt>"next_root_public_key"</tt> field (signed by the current
          <tt>"root_public_key"</tt>) in <tt>/.well-known/mcep-configuration</tt>
          so large-scale organizational senders can pre-publish and roll over
          Root Identity Keys passively during routine discovery cache refreshes
          without sending per-binding <tt>POST /mcep/migrate</tt> requests
          (<xref target="discovery"/>, <xref target="migration"/>).
        </li>
        <li>
          <strong>Plus-Tag Subaddress Locking:</strong> Whether MSPs should
          support optional first-registration locking and uniform responses for
          "+" tagged subaddresses (<xref target="p2p-onboarding"/>).
        </li>
        <li>
          <strong>Outbound Auto-Allowlisting:</strong> Heuristic or
          user-triggered automatic allowlisting of recipients upon outbound
          send or reply actions (<xref target="ops-sender-allowlist"/>).
        </li>
        <li>
          <strong>Outbound Misaddressed Email Prevention:</strong> Optional
          MSA/MUA data-loss-prevention checks warning or holding messages when
          recipients lack an active binding.
        </li>
        <li>
          <strong>Key Custody and Deterministic Derivation:</strong> Standardized
          custody profiles, key-export formats, and HKDF-based per-binding key
          derivation schemes.
        </li>
        <li>
          <strong>Additional Purpose Scopes and UI Presentation:</strong>
          Recommended inactivity thresholds for non-transactional scopes,
          UI presentation guidelines, and potential additional
          <tt>"purpose_scope"</tt> identifiers (<xref target="registration"/>,
          <xref target="dormancy"/>).
        </li>
      </ul>

    </section>

  </back>
</rfc>

