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

  1. The API checks the request: the API key, the fields, the from domain (it must be a verified domain of the project) and your plan's limits. A problem answers 4xx and nothing is stored (errors and limits).
  2. Recipients on the project's suppression list are skipped. Each one gets an email.suppressed event and does not count against your quota.
  3. 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.
  4. The API answers 200 with the email's id and sends email.sent. A scheduled_at in the future sends email.scheduled instead, and the jobs wait until that time; when the email goes out, it gets email.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.

ResultRecipient statusEventNext
Accepted (250)deliveredemail.deliveredDone
Temporary refusal (4xx), DNS, network or TLS problemdelivery_delayedemail.delivery_delayed, the first time onlyRetried on the schedule below
Permanent refusal of the address (5xx: unknown user, no such domain)bouncedemail.bounced, type PermanentDone; the address is suppressed
Permanent refusal of this message only (mailbox full, message too large)bouncedemail.bounced, type TemporaryDone; the address stays usable
Refused for policy or contentbouncedemail.bouncedDone
Spam complaint from the recipientcomplainedemail.complainedThe address is suppressed
No server accepted the message before retries ran outfailedemail.failedDone

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.

On this page