Distributions
A policy decides which provider sends and what happens when one refuses. Build it here, then select it on the server.
New policy
How distribution works
Each provider receives sends in the order you set; the strategy decides which one takes each message.
Strategies
- Priority orderAlways the lowest Order number that is available. The rest are only there as backup. Use it when one provider is simply better and the others exist to catch an outage.
- Round-robinEach send goes to whichever provider was used least recently, so volume spreads evenly. Good for sharing load and for building reputation on more than one provider at once.
- Weighted splitEach send is drawn at random in proportion to Weight. Use it to move traffic gradually - send 10% through a new provider, watch the bounce rate, then raise it.
- Free quota firstProviders with a cap still under it - free tiers being filled - go before uncapped (metered) ones, whatever their Order; Order breaks ties. Use it to burn free allowances (SES, SMTP2GO, Resend) before anything paid.
Caps
A daily or monthly ceiling on one provider - usually its free allowance. 0 means no limit. Caps belong to the registered provider and count across every server attached to it: the allowance is the account's at the provider, not any one server's. They apply in every strategy: a provider that has reached its cap drops to the bottom, so round-robin and weighted quietly stop choosing it. Counting is per calendar day and per calendar month, and only counts mail actually handed to that provider - blocked and suppressed messages do not use up your allowance.
Soft (default): once every provider is over its cap, sending continues on the least-bad one. You may pay for overage, but mail keeps moving. Hard: once every provider is over, sending stops and messages fail. Choose it only when an unexpected bill is worse than undelivered mail.
When a provider refuses
- Try the next providerThe message is handed straight to the next one in line, usually within the same second. This is the main reason to run more than one provider.
- Leave it to the retry workerThe message is queued and retried later, which may pick a different provider by then. Slower, but it does not hammer a struggling provider.
- No failoverOnly the chosen provider is tried, and if it refuses the message fails permanently rather than being retried through someone else. Use it when a message must come from one specific sender or not at all.