Skip to main content
mailers.io

Routing and failover

Routing by provider quota and speed limits

By mailers.io team Published 5 min read

Every sending provider has ceilings. Some are written in a contract (messages per day), some are enforced by the server on the spot (a speed limit, a refusal when you push too hard). If your software ignores them, you find out from errors. This post explains how mailers.io keeps within the ceilings you set and what it does with the mail that cannot go out right now.

Two limits you set on a server

When you connect a sending server, you can give it limits. They are yours: mailers.io does not read them from the provider, so set them to match what the provider allows you.

  • A speed limit. A number of messages per minute, per hour or per day. The window is fixed, not rolling: with a per-minute limit of 600, a new count starts at each minute boundary.
  • A daily cap. A total per day for that server. The day is the account’s own day, in the time zone set on the account, so the count resets at local midnight.

A server that is still warming up also has its own cap from the warm-up plan. All of these must have room before a message is handed to the server. See daily limits per mailbox and server for how to choose the numbers.

Limits are counted per server. If your provider quotes one limit for the whole account, divide it between the servers you connect to it.

How a server is picked

For each message the sender looks at your active servers and does this:

  1. It takes the servers that can send this message at all: active, and not refused by a check such as a sending domain not yet registered at the provider.
  2. It puts them in order. With the default rule the order is round robin: the server used least recently comes first.
  3. It tries to take a slot on the first one. The slot is taken in one atomic step in the database, so several workers cannot all claim the last free slot.
  4. If that server is full for its speed limit or daily cap, it is skipped for this message and the next one is tried.

The effect is an even spread over your servers that adjusts itself to their limits. A server with a small limit fills up and drops out for a while, and the others take its share. When its window reopens, it comes back into the rotation.

If your servers are mailboxes, this is the rotation described in rotating senders across mailboxes.

When every server is full

If all eligible servers are at a limit, the message is not failed. It is deferred until the earliest time that one of the limits reopens. A per-minute limit reopens within a minute; a daily cap reopens at the next local midnight. A campaign bigger than your capacity for the day does not error out. It takes as long as your limits require.

If no server is eligible at all, for example all are disabled, the message is deferred with that reason, so the problem shows in the log instead of vanishing.

Limits are a pacing tool as much as a protection. A low limit on a new server is a way to ramp it up on purpose, together with warm-up.

When a server fails instead of being full

A full server and a failing server are different. A full server is one you told us about; a failing one is a surprise. When the handover to a server fails, the error is classified before anything else happens:

  • A server fault is a problem with the server or the account: the connection is refused, the credentials are rejected, the provider reports the account as paused, a permission is missing, or a rate limit is hit that you did not know about. The message moves on to a different server in the same pass.
  • A recipient fault is a bad address or a rejected mailbox. The message fails or retries as a recipient problem. It is never pushed through the other servers, because a bad address is just as bad there and each try costs reputation.
  • A content fault is a message the provider refuses as written. Another server will not change that.
  • An unknown fault, a code that cannot be classified, does not fail over either.

For a provider that answers with a rate-limit error, the server is also put to sleep for the time it asks for (its Retry-After), or for a minute when it gives none. So even a limit you did not know about is handled: the server steps aside and the others carry the load.

The default rule allows up to three attempts, and never the same server twice for one message. Each attempt is recorded, so the message log shows which server was tried, when and what it answered. The detail is in why one provider is a single point of failure.

What every plan has, and what it does not

Every plan has the default rule described above, created with your first server: round robin, three attempts, failover to the next server. You do not configure it and you cannot break it by deleting it.

Custom routing rules are not part of any current plan. These are the ones that choose servers by priority or by weight, by filter, or with a cap per server on top of the speed limit. Do not plan around them. If you need unequal shares, the usable tools today are the limits themselves: give a server a smaller speed limit or daily cap and it takes a smaller share. That is a blunt tool, but it works with the plans you can buy.

A practical setup

  1. Connect two or more servers, ideally at different providers, so a limit or suspension at one does not stop everything. See sending servers.
  2. Set a speed limit on each, a little under what the provider allows, leaving room for other tools that use the same account.
  3. Set a daily cap on each, at your provider’s daily quota or lower. For a new server, start low and raise it as it builds a record.
  4. Send a small batch and open the message log. Check that mail is spread over the servers.
  5. Watch deferred mail on a big campaign. A queue clearing slowly is the limits doing their job. A queue that does not move means no server is eligible, and the log says why.

What routing does not do

It does not choose a server by content. It does not merge the reputation of your domains and providers; each has its own. It does not guarantee inbox placement. And it cannot create capacity you do not have: if your total limits are low, the queue is slow.

What it gives you is a sender that respects the numbers you set, uses every server you connected, and keeps going when one of them stops. The page on e-mail routing lists the features, and pricing shows what each plan includes.

Questions and answers

Do I have to write a routing rule?

No. Every account gets a default rule when its first server is connected: round robin across your servers, three attempts, failover to the next server.

Can I send 80 percent through one provider and 20 percent through another?

Not on a current plan. Weighted choice, priority and filters belong to custom routing rules, which are not part of any plan today.

What if a recipient address is wrong?

It is not retried on another server. Failover covers problems with a server, not problems with the recipient or the content.

Written by the mailers.io team. Published .

Keep reading

Related posts

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