Delivery status and reasons
Every attempt to deliver a message is an event in its timeline (GET /v1/emails/{id}, and the same fields in a webhook). This page explains what an event tells you about a delay or a failure.
What an event holds
| Field | Meaning |
|---|---|
smtpCode, enhancedCode | the receiving server's reply code, such as 451 and 4.7.1; null when no server replied, for example when no connection could be made |
response | the receiving server's reply, word for word but with e-mail addresses and IP addresses masked (ad•••@example.com, •••); when no server replied, a sentence that says what happened |
reason | why the attempt was delayed or failed, as a stable code from the tables below; null when there is nothing to explain, such as on a delivery |
remoteHost | the receiving mail server Postilio connected to, when it got that far |
classification | for a bounce: what kind of refusal the reply is, such as InvalidRecipient |
async | true on a report that arrived after delivery (below); left out (null) otherwise |
Build on reason and smtpCode, not on the text of response: receiving servers word their replies as they like, and our own sentences may be improved. A reason code never changes meaning; new codes may be added, so treat an unknown code like unknown_temporary (on a deferred event) or unknown_permanent (on a bounced one).
The receiving server replied
The reply stays visible in response, with smtpCode and enhancedCode.
| Reason | Meaning |
|---|---|
recipient_server_temporary | the server refused for now (a 4xx reply), greylisting included; Postilio retries |
rate_limited_by_recipient | the server asks Postilio to slow down; Postilio retries later |
mailbox_full | the recipient's mailbox is full (temporary or permanent, see smtpCode) |
recipient_rejected | the server refused the message for good (a 5xx reply); see response and classification for why |
No server replied
response holds one of these sentences, and smtpCode is null.
| Reason | response |
|---|---|
tls_certificate_invalid | We couldn't set up a secure connection to the recipient's mail server. We'll retry. |
tls_failed | The secure connection to the recipient's mail server failed. We'll retry. |
connection_timeout | The recipient's mail server didn't respond in time. We'll retry. |
connection_failed | We couldn't connect to the recipient's mail server. We'll retry. |
ipv6_candidate_failed | A connection to one of the recipient's mail servers failed. We'll retry. |
dns_or_mx_failed | We couldn't find a reachable mail server for the recipient's domain. |
delivery_paced | We're pacing delivery to this mailbox provider to protect deliverability. We'll retry. |
delivery_paused | Delivery is paused on our side for the moment. We'll retry. |
retry_period_ended | We stopped retrying: the message could not be delivered within its retry period. |
unknown_temporary | Delivery was delayed by a temporary problem. We'll retry. |
unknown_permanent | We couldn't deliver this message. |
tls_certificate_invalid usually means the recipient's mail server presents a certificate for another name: a setting at the recipient's mail provider. Postilio retries, and delivers as soon as the server is reachable securely.
A scheduled message that was not sent
A scheduled message that will not go out ends with a canceled event. Its reason:
| Reason | Meaning |
|---|---|
canceled_by_request | you canceled it (DELETE /v1/emails/{id}, or in the portal) |
lost_in_restore | Postilio restored its database from a backup, which never holds message content (see Data retention); send it again |
unverified_sender_domain | when it was due, the sender's domain could not send: no longer verified, or removed |
sandbox_recipient_not_allowed | when it was due, the organization was in the sandbox and the recipient outside it |
plan_monthly_limit_reached, plan_daily_limit_reached, sandbox_daily_limit_reached, probation_daily_limit_reached, project_daily_limit_reached, platform_daily_limit_reached | when it was due, that limit was reached (see Errors and limits) |
A bounce after delivery
Some mail servers accept a message and only later find they cannot deliver it, for example a forwarding address that no longer exists. They send a delivery status report (a bounce, RFC 3464) to the message's return path, which Postilio receives. The message then gets a second bounced event after its delivered one, and its status becomes bounced:
| Field | Value |
|---|---|
reason | async_bounce |
async | true |
smtpCode, enhancedCode, classification | from the report: the reply code it quotes and its status |
response | the receiving server's reply the report quotes, with addresses (all but the domain), IP addresses and identifiers removed, at most 200 characters; null when the report quotes none |
remoteHost | the receiving server that sent the message back, when the report names it; else null |
attempt | null: no connection of ours was involved |
A message gets at most one such event, however many reports arrive for it. A permanent failure on the address itself (classification InvalidRecipient, BadDomain or InactiveMailbox, with a 5xx code) puts the recipient on the project's suppression list, as a bounce during delivery does. Postilio counts a report only when it names a message it sent in the last 30 days through a return path only that message's recipient saw, and only up to a number of reports per project and recipient domain a day, so a forged or flooded report cannot suppress your addresses or pause your sending. Reports beyond that are kept for Postilio's own abuse checks and do not show here.
A complaint after delivery
When a recipient marks a message as spam, some mailbox providers tell the sender through a feedback loop (an ARF report, RFC 5965); Postilio receives those of Yahoo and AOL, and adds others once their reports are known. The message then gets a complained event after its delivered one, and its status becomes complained:
| Field | Value |
|---|---|
reason | feedback_loop |
async | true |
response | Postilio's own sentence, such as Marked as spam through the feedback loop of yahoo.com |
smtpCode, enhancedCode, remoteHost, attempt | null |
The recipient goes on the project's suppression list with the reason complaint. A message gets at most one such event. Postilio counts a complaint only when the report is signed by the feedback loop itself and names a message it sent in the last 30 days through a return path only that message's recipient saw. Anyone who received a message can write a report about it, so one that someone forwards by hand, or that is not signed by a known feedback loop, is kept for Postilio's own abuse checks and changes nothing, nor does a report that a message is not spam. Complaints count towards the automatic pause only when they come from at least 10 different recipients.
Problems at a glance
GET /v1/emails/problems (scope emails:read) counts the messages of the last 24 hours (period=24h, the default) or 7 days (period=7d) that are deferred, bounced, complained or expired now. It groups them by status and reason, gives each group's count per sender domain, and the ids of up to 5 of the newest, to look up with GET /v1/emails/{id}. It never lists a recipient. domain counts only that sender domain; a test key counts only test messages.
curl "https://api.postilio.eu/v1/emails/problems?period=7d" \
-H "Authorization: Bearer $POSTILIO_KEY"
{
"period": "7d",
"from": "2026-10-16T00:00:00+00:00",
"to": "2026-10-22T14:05:09+00:00",
"domain": null,
"data": [
{
"status": "bounced",
"reason": "recipient_rejected",
"messages": 12,
"byDomain": [{ "domain": "mail.example.com", "messages": 12 }],
"examples": ["01929a3c-5e1f-7a4b-9c2d-3e4f5a6b7c8d"]
}
]
}
A group's reason is that of the event that set the status, and null when there is none, as on a complaint. Groups come with the most messages first.
Retries
A deferred message is retried with growing pauses, starting at about two minutes and doubling up to two hours, for up to a day after it was accepted. After that it is expired, with the reason retry_period_ended.