Request paths
A send, a bounce and an inbound message, step by step.
On this page
A send
POST /v1/emailsreaches the engine; it checks the key and its scope, thefromdomain, the suppression list, the size, and the project’s rate and daily limits in one transaction.- It stores the e-mail with status
queuedand its rendered body (or renders it now if the template’s data is given), and answers202. - The sender takes e-mails from the queue with
FOR UPDATE SKIP LOCKED, per project and at the pace the project’s token bucket allows. - It builds the MIME message, adds tracking if on, and calls
SendRawEmailwith the domain’s configuration set. The SES message id is stored; statussent. - If SES answers with a throttle or a temporary error, the e-mail goes back to the queue with backoff; after 24 hours it becomes
rejected.
A bounce
- The recipient’s server refuses the message; SES publishes a bounce to an SNS topic, which writes it to an SQS queue.
- The event receiver reads the queue, finds the e-mail by the SES message id, records
bouncedwith the reason, and for a hard bounce adds the address to the project’s suppression list. - The webhook dispatcher sends the event to every webhook subscribed to
bounced.
An inbound message
- SES receives the message for an address whose
MXpoints to it, stores the raw message in S3 and notifies the engine. - The inbound parser reads it, checks spam and virus verdicts, finds the matching rule, stores attachments and calls the webhook or Run function, or forwards it.