Run it
Managed conversation mail v1
The application declares mail.providers: ["rer"] and H2H_RER_MAIL_VERSION=1. Managed routing is assigned by the platform through MAIL_PROVIDER, MAIL_FROM, MAIL_RELAY_URL, RER_MAILBOX_ID, RER_MAIL_ADDRESS and RER_MAIL_CONTROL_URL. Keep MAIL_API_KEY, RER_MAIL_INGRESS_KEY, INBOUND_EMAIL_TOKEN and the existing INTEGRATION_ENCRYPTION_KEY private. They are application authority/data keys; no provider credential is requested from a Managed customer. Native and Assisted direct-provider configuration still uses EMAIL_*.
Migration 249 retains mailbox bindings, an idempotent control outbox, encrypted MIME object references and redacted command/thread receipts. Provisioning seeds the reserved default in the workspace transaction and binds it after commit. The native queue/schedule retries control work with bounded backoff, surfaces conflicts, refreshes route status and retires deleted workspaces. A new installation cannot choose a mailbox owned by another installation; platform enforcement and live qualification remain required.
The frozen transport signs POST, the ingress path, canonical metadata and the exact MIME bytes with HMAC-SHA256. Metadata includes protocol version, delivery/mailbox/workspace identities, generation, envelope, provider verdict, timestamp and body SHA-256. The app rejects stale, tampered or foreign requests and stores content before acknowledgment. Retrying a delivery keeps its identity. Never route this through the bearer JSON gateway as a substitute for sender authentication.
HTTP 202 records provider acceptance only. Native outbound commands never replay failed, sending or uncertain attempts. One refusal is held instead: a conversation notification (a scheduled reply’s included) or a problem reply refused at authenticate with mail_credential_revoked or mail_credential_required (a MAIL_API_KEY rotation before the rebuilt release serves traffic) has no relay send row, so it stays pending and the conversation outbox resends the same command, with the same messageKey, using the key the running release holds. About an hour after the first refusal it fails as an unavailable authority. The scheduled reply or problem attempt then records the resend’s or the failure’s outcome. Other mail is not held. An authorized reconciliation reads send/:messageKey; it never posts another send. During disconnect/leave, platform revocation remains responsible for its durable authority boundary. Hosted complete export and the real-mail gate remain pending; this change does not promote PORTABILITY-001 or MAIL-001. See support email.