The one-paragraph version
Email Gateway is a feature inside Agent Vault. Internal tools and AI agents both call one HTTP endpoint to send mail. The vault authenticates each caller (SMTP credentials, API key, or both depending on path), enforces per-tenant rules (allowed sender domains, validation, rate limiting), maps source-specific payloads from Sendy, Odoo, and similar services into the canonical MailerQ envelope, then either proxies to MailerQ or publishes to a CloudAMQP outbox queue. Delivery success and failure events flow back through dedicated queues into an email events processor. An instance-level setting lets any other vault deployment keep the feature off so it doesn't appear in the proxy or the UI. Auth, sessions, credentials, audit, alerts, and the operator UI shell come from Agent Vault. Everything else — SMTP ingress, the gateway HTTP surface, the policy and validation layer, the canonical mapping, the MailerQ proxy, the CloudAMQP outbox, the event consumers, the new schema, and the instance toggle — is new code in the fork's custom-feature area.