Mail Proxy — Send request sequence

Mail Proxy — Send request sequence A sequence diagram generated by Archify. POST /api/v1/send via tunnel lookup hash valid key rate +1 (per min) under limit SMTP submit 250 queued relay (async) stats +1 200 message_id + X-RateLimit-* Checks Deliver Respond Client · script / app · Sequence participant Client script / app Cloudflare · TLS edge · Sequence participant Cloudflare TLS edge Mail API · FastAPI · Sequence participant Mail API FastAPI Key store · hashed keys · Sequence participant Key store hashed keys SMTP relay · Postfix · Sequence participant SMTP relay Postfix Gmail · STARTTLS · Sequence participant Gmail STARTTLS Legend request return security async trace default message

Rejections

  • • 401 bad / disabled / expired key
  • • 429 over rate (Retry-After)
  • • 403 template not allowed · 400 missing fields

Relay errors

  • • 503 SMTP_ERROR: retry with backoff
  • • 422 invalid payload: fix, do not retry

Meaning of 200

  • • Relay accepted the message
  • • Final delivery is asynchronous