Retries and failures
If your server does not acknowledge an event, Mailiqo sends it again. This page explains when, for how long, and what happens if the endpoint keeps failing.
What counts as a failure
A delivery succeeds when your server answers with a 2xx status. Anything else is a failure and is retried:
- a response with another status,
3xxredirects included; - not being able to connect, or a TLS certificate that is not valid;
- no response within 10 seconds;
- the URL's hostname starting to point to a private or local address.
The exception is 410 Gone: Mailiqo disables the endpoint and does not retry.
Retry schedule
| Attempt | Wait since the previous attempt |
|---|---|
| 1 | Immediate |
| 2 | 1 minute |
| 3 | 5 minutes |
| 4 | 30 minutes |
| 5 | 2 hours |
| 6 | 6 hours |
| 7 | 16 hours |
That is seven attempts spread over a little more than 24 hours. Each wait is randomly extended by up to 10%, so that the retries of many events do not all arrive at once.
If the seventh attempt also fails, the delivery is left as Failed and is not retried automatically again. You can resend it from the panel.
Every attempt of an event carries the same webhook-id. What changes is webhook-timestamp and, with it, the signature.
Pause after consecutive failures
When an endpoint accumulates five failures in a row, Mailiqo stops calling it for every event and makes a single check request every 5 minutes instead. As soon as one is answered with 2xx, the endpoint goes back to its normal pace.
Attempts that fall within the pause do not reach your server: they show in the log as Paused after repeated failures and count as one attempt of the schedule. That way a server that was down does not receive the whole backlog at once when it comes back.
Slow servers
If your server takes 2 seconds or more to answer, Mailiqo limits the simultaneous deliveries to that endpoint to two, so that it does not delay everyone else's. The events that do not fit wait in the queue and are delivered as soon as there is room; they do not count as an attempt.
If an event has been waiting for about 10 minutes, that attempt is marked as failed with the result Endpoint overloaded and follows the retry schedule. To avoid it, answer 2xx as soon as you receive the event and process it afterwards.
If the endpoint keeps failing
| Situation | What Mailiqo does |
|---|---|
| The endpoint fails | The panel shows it as Failing since, with the date of the first failure. It clears with the first successful delivery |
| It has been failing for 24 hours | Sends a notice to the account's email. It is one notice per incident, not one per event, and at most one every 7 days |
| It has been failing for 5 days | Disables the endpoint and reports it by email |
Your server answers 410 Gone | Disables the endpoint at that moment and reports it by email |
While an endpoint is disabled no deliveries are generated: events that happen during that time are not stored to be sent later. Deliveries that were pending are closed as failed.
To re-enable it, fix the problem and check with Send ping that the endpoint responds. Then, in the domain's Webhooks tab, open the endpoint's ⋯ menu and click Enable. You can resend from the log the deliveries that were left as failed.
Re-enabling an endpoint, or saving changes to one that is failing, closes the incident and the periods start counting from zero again.
Delivery log and resending
In the Webhooks tab, each endpoint's View deliveries button opens its log. Each row is an event, with its status:
| Status | Meaning |
|---|---|
| Pending | There are attempts still to be made |
| Delivered | Your server answered 2xx |
| Failed | The attempts ran out, or the endpoint was disabled |
Expanding a row shows the body that was sent and, for each attempt, the date, the result, the duration and the first 500 bytes of your server's response.
| Attempt result | What it means |
|---|---|
HTTP and a status | Your server answered with that status |
| Could not connect | No connection to the server could be made |
| Certificate or TLS error | The certificate is not valid for that name, has expired, or TLS could not be negotiated |
| Timed out | The response did not arrive in time |
| The domain points to a non-public address | The URL's hostname resolves to a private or local address |
| Paused after repeated failures | The attempt was not sent because the endpoint was paused |
| Endpoint overloaded | The attempt was not sent because your server was answering slowly and already had deliveries in progress |
| Endpoint disabled | The endpoint was disabled when the attempt was due |
| Internal error | The failure was on Mailiqo's side. It does not count against your endpoint |
From the log you can:
- Resend a specific delivery, whatever its status.
- Resend failed deliveries from a given date. Each operation requeues up to 500 deliveries; if more remain, repeat it.
A resend keeps the event's id and starts the retry schedule again. That is why your server must cope with an event it has already processed.
The log is kept for as long as your plan's sending history.
