How delivery works
What happens to an email after the API accepts it, from the queue to each recipient's final result, retries included.
exx.sh answers POST /emails once the message is stored and queued. Delivery happens after
that answer, separately for each recipient: every recipient gets its own delivery attempts,
its own result and its own webhook events. This page follows one email through that path.
From request to queue
- The API checks the request: the API key, the fields, the
fromdomain (it must be a verified domain of the project) and your plan's limits. A problem answers4xxand nothing is stored (errors and limits). - Recipients on the project's suppression list are skipped. Each one gets an
email.suppressedevent and does not count against your quota. - exx.sh builds the message, signs it with your domain's DKIM key, stores it and queues one delivery job per recipient domain, all before it answers. A server restart after the answer cannot lose the message.
- The API answers
200with the email'sidand sendsemail.sent. Ascheduled_atin the future sendsemail.scheduledinstead, and the jobs wait until that time; when the email goes out, it getsemail.sent.
Delivery attempts
A delivery attempt is one SMTP conversation with a server of the recipient's domain. exx.sh looks up the domain's MX hosts, applies its TLS policy (MTA-STS or DANE when the domain publishes one) and sends the message. Each attempt keeps its transcript: the MX host, the TLS version, every command and every reply, but never your message itself.
Read the attempts in the dashboard, or from the API with
GET /emails/{id}/attempts and the full conversation
with GET /emails/{id}/attempts/{attempt_id}/transcript.
Results
exx.sh classifies the server's reply into a result. The result decides whether the recipient is done, whether exx.sh tries again, and which event you receive.
| Result | Recipient status | Event | Next |
|---|---|---|---|
Accepted (250) | delivered | email.delivered | Done |
Temporary refusal (4xx), DNS, network or TLS problem | delivery_delayed | email.delivery_delayed, the first time only | Retried on the schedule below |
Permanent refusal of the address (5xx: unknown user, no such domain) | bounced | email.bounced, type Permanent | Done; the address is suppressed |
| Permanent refusal of this message only (mailbox full, message too large) | bounced | email.bounced, type Temporary | Done; the address stays usable |
| Refused for policy or content | bounced | email.bounced | Done |
| Spam complaint from the recipient | complained | email.complained | The address is suppressed |
| No server accepted the message before retries ran out | failed | email.failed | Done |
The deliverability guide lists every result class with what to do about it.
Retries
A recipient whose attempt was refused for now is tried again after 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 2 hours, 4 hours and 8 hours, then every 8 hours. Each wait varies by up to 10% so retries to one provider do not arrive together. A greylisting reply is retried after 5 minutes.
When the server names its own wait ("try again in 300 seconds"), exx.sh waits at least that long, up to 6 hours. A server's hint never makes a retry sooner than the schedule.
Retries stop 72 hours after the message was queued. A recipient that no server
has accepted by then ends as failed with an email.failed event.
The status of an email
GET /emails/{id} answers with last_event: the most advanced state among the email's
recipients. It is one of scheduled, queued, sent, delivery_delayed, delivered,
bounced, complained, failed, suppressed or canceled. For one recipient's state,
read the attempts or listen for webhooks: each event names the
recipients it is about.
exx.sh never reports opened or clicked, because it does not track opens or clicks.
Common questions
Does "delivered" mean the email reached the inbox?
No. delivered means the recipient's server accepted the message with a 250 reply. Where
the provider files it (inbox, spam folder or a tab) is the provider's decision, and no
sending service can see or promise it. The transcript shows exactly what the server answered.
Why did a recipient get email.delivery_delayed?
The recipient's server refused the message for now (a 4xx reply), or exx.sh could not
reach it. exx.sh retries on its own; you need to do nothing. The event fires once per
recipient, at the first delay.
Can I resend to an address that bounced?
A permanent bounce or a complaint puts the address on the project's suppression list, and
later emails to it are skipped with email.suppressed. Remove the address from the list
(DELETE /suppressions/{email} or the dashboard) only when you know it works again.
Migrate from Resend
Move from Resend to exx.sh by changing the base URL and the API key. Payloads, error names and webhook signatures stay the same; this page lists what differs.
API keys and authentication
How requests authenticate with an API key, the two kinds of key, restricting a key to one domain, and what each authentication error means.