Skip to main content
mailers.io

Routing and failover

Handling a provider outage during a campaign

By mailers.io team Published 5 min read

Sooner or later a provider has a bad day while you are in the middle of a send. The campaign is half out, the report shows a number that is not growing, and someone asks whether to press send again. This post is the calm version of that day: what mailers.io does on its own, what you will see, and what to do.

What happens automatically

Every message in a campaign is its own item in the send queue. When the sender picks one up, it takes a server according to your routing rule, hands the message over and records the result. Outages touch this in three ways.

One server fails, others work

The handover fails with a server fault: the connection is refused, the credentials are rejected, the provider says the account is paused, or a rate limit is hit. The message moves to a different server in the same pass. The default rule allows up to three attempts, never on the same server twice. Recipients do not see any of it, and the campaign keeps going.

If the failing provider sent a rate-limit answer, that server is put aside for the time the provider asked for, or a minute when it did not say. The others carry the load.

Each attempt is written to the message log: the server, the time and the answer. That log is where you look to see what really happened.

All servers fail or are full

If no server can take the message, it is not failed. It is deferred, with a reason, and tried again when a server is eligible: after a limit reopens or after the server recovers. A campaign does not give up on its recipients because one afternoon went badly.

Deferred messages keep their place. When the outage ends, the queue drains by itself, within your speed limits and daily caps. A big backlog behind a small daily cap will still take as long as the caps say.

The queue has a limit

A message that has waited more than five days in the queue is skipped as expired, with that reason in the log. In practice this protects recipients from receiving a time-sensitive message long after it made sense. If an outage is going to outlast that, do not wait for it: add a server at another provider.

What you will be told

When the same server fails five times in a row with server faults, mailers.io raises a failing-server notice. It names the server, says when the failures started, gives the reason in plain words and tells you what to check. It reaches the notification centre and goes by e-mail. A successful send on that server clears it.

Notices are the reason you do not need to watch the report. They are also the reason to keep someone’s address on the account who actually reads e-mail.

What to do, in order

  1. Read the notice and the message log. Find the server and the error. Is it your credentials, a paused account, a provider-wide problem or a limit?
  2. Check the provider’s own status page. If the provider has an incident, nothing you change in mailers.io will fix their side.
  3. Check your other servers. If you have a second one, confirm it is active and has room under its limits. If it is close to its daily cap, the backlog will queue behind it.
  4. Decide whether to pause the campaign. Pausing is useful when you do not want the rest to go out until you know it is safe, or when a message is time-sensitive and should not arrive late. You can resume it afterwards.
  5. Fix the cause. Correct credentials, resolve a paused account with the provider, or add another server. The queue picks up on its own.
  6. Watch the log, not the campaign number. Once a server is healthy, sent messages should climb again.

What not to do

Do not send the campaign again. The messages that were not delivered are still in the queue. A second send creates new messages for everybody, including those who already got the first. The result is duplicates, extra credits, and more complaints. If you must send to people who missed it, use the log to see who they are and send to those only.

Do not delete and recreate the server in a hurry. A server with messages in flight is retired and not removed outright, so the work is kept, but you create confusion about what is where. Fix it in place if you can.

Do not raise limits to speed up the recovery. The limits protect your standing with the provider. A burst right after an outage, on a server that was just unblocked, is a good way to be blocked again.

Do not blame the recipient. A bad address fails differently: it is a recipient fault and is not moved to another server. If many messages fail that way, the problem is the list, not the outage.

The same applies to other sending

Campaigns are not special. Automation e-mails, sequence steps, API sends and SMTP relay mail go through the same queue and the same routing, so the same rules apply. Sequence follow-ups simply happen a little later than planned.

Make the next one boring

  • Have two providers. The cheapest protection is another server at a different provider, ready to send as your domain. See failover between two providers.
  • Authenticate both. The second provider needs its own DKIM and an SPF record that includes it.
  • Set honest limits. A server whose limit equals its real quota fills up predictably instead of failing in the middle.
  • Know where the notices go. Check that the right people receive them.
  • Practice once. Break a server on purpose on a quiet day and watch the log, as described in the failover post.

An outage is not avoidable, but a stalled campaign is. The reasoning is in why one provider is a single point of failure, and the routing rules themselves are in routing by provider quota and speed limits. The e-mail routing page lists the feature.

Questions and answers

Will recipients get the campaign twice if I resend it?

They can. A resend creates new messages. Let the queued messages finish first, and use the message log to see who has not received it.

Can I pause a campaign during an outage?

Yes. A campaign can be paused and resumed. Pausing stops new messages being picked up while you sort out the servers.

What if I only have one server?

There is nowhere to fail over to, so messages wait until the server works again or until they expire. A second provider is the fix.

Written by the mailers.io team. Published .

Keep reading

Related posts

  • Routing and failover

    Failover between two providers in mailers.io

    Connect two sending providers and let mailers.io move mail to the other one when one fails: the default rule, what counts as a server fault, and how to test it.

  • Routing and failover

    Routing by provider quota and speed limits

    How mailers.io spreads mail over your servers: per-server speed limits, daily caps, round robin and three attempts. What happens when a server is full.

Send cold e-mail from your own servers.

Connect your servers, import a list and write the steps. Replies stop the sequence.

  • 7-day money-back guarantee
  • Bring your own providers
  • Cancel anytime