Sub topic 12
Handling throttling and deferrals by provider
This chapter assumes you can read SMTP reply codes, you know which mail transfer agent (MTA) or email service provider (ESP) you send through, and you have already built a volume ramp schedule. Here you learn what happens when a mailbox provider pushes back on that schedule, and how to respond provider by provider.
What throttling and deferral mean
A mailbox provider (Gmail, Yahoo, Outlook.com and others) decides how much mail it will accept from an unknown sender. When you send more than it is willing to take, it usually does not reject the mail. It asks you to try again later.
- Throttling is the provider limiting your rate: connections, messages per connection, or messages per hour.
- Deferral is the temporary failure itself. The server answers with an SMTP reply code starting with
4, such as421or451, and your MTA keeps the message in its queue. - Blocking is a permanent refusal. The reply starts with
5, such as550or554, and the message is bounced.
During a warm-up, deferrals are normal. They are the provider telling you your reputation is not yet strong enough for this volume. A small, steady share of deferrals that clear on retry is acceptable. A rising share, or deferrals that turn into blocks, means your ramp is too fast or your recipients are reacting badly.
Reading the reply
Every provider uses the same code families but different wording. The enhanced status code (for example 4.7.0) and the text tell you the cause.
| Reply pattern | Typical meaning | First response |
|---|---|---|
| `421 4.7.0` or `421 4.7.28` with "rate limited" text (Gmail) | Unusual rate or volume from your IP or domain | Lower rate, keep retrying, check authentication |
| `421 4.7.0` with "temporarily deferred due to user complaints" (Yahoo) | Complaint-driven deferral | Pause low-engagement segments and review complaints |
| `451 4.7.650` (Microsoft) | IP temporarily rate limited because of reputation | Reduce volume and wait. Confirm your IP is not on a block list |
| `452 4.2.2` | Recipient mailbox is full | Treat as a soft bounce for that address, not a provider problem |
| `550 5.7.1` with "blocked" or "policy" text | Permanent block on your IP or domain | Stop sending to that provider and follow its delisting process |
Provider wording changes over time. Treat the table as a pattern guide and read the provider's current postmaster documentation for exact codes.
What your MTA does by default
When a message is deferred, the MTA queues it and retries on a backoff schedule until a maximum queue lifetime expires, then bounces it. The key settings are the retry intervals and the lifetime.
- Retries too fast: you hammer a provider that has already told you to slow down, which hurts reputation.
- Lifetime too short: mail that would have been accepted in a few hours bounces.
- Lifetime too long: time-sensitive mail, such as password resets, arrives stale.
For bulk mail during warm-up, a lifetime of two days is a reasonable starting point. Keep transactional mail on a separate stream so a throttled marketing queue does not delay it.
Setting per-provider limits
Provider limits differ, so a single global rate is a poor fit. Give each large provider its own delivery lane and its own limits. In Postfix, you do this with a separate transport for each provider.
# /etc/postfix/master.cf (add these transport entries)
# gmail unix - - n - - smtp
# yahoo unix - - n - - smtp
# outlook unix - - n - - smtp
# Route recipient domains to their lane
cat >> /etc/postfix/transport <<'EOF'
gmail.com gmail:
googlemail.com gmail:
yahoo.com yahoo:
outlook.com outlook:
hotmail.com outlook:
EOF
postmap /etc/postfix/transport
# Retry and per-lane limits
postconf -e "transport_maps = hash:/etc/postfix/transport"
postconf -e "minimal_backoff_time = 300s"
postconf -e "maximal_backoff_time = 3600s"
postconf -e "maximal_queue_lifetime = 2d"
postconf -e "gmail_destination_concurrency_limit = 2"
postconf -e "gmail_destination_recipient_limit = 20"
postconf -e "yahoo_destination_concurrency_limit = 2"
postconf -e "outlook_destination_concurrency_limit = 1"
postfix reloadStart low, such as one or two parallel connections per provider, and raise the numbers only while deferral rates stay low. If you use an ESP, you usually cannot edit these settings. Look for per-provider throttling or "send rate by domain" options in its console instead.
Adapting the rate automatically
Manual tuning is slow when you send to many providers. A simple control loop works well: cut the rate sharply when deferrals rise, and raise it slowly when things are clean. This pattern is called additive-increase, multiplicative-decrease (AIMD), and it is the same idea TCP uses for congestion.
from dataclasses import dataclass
@dataclass
class ProviderThrottle:
"""Hourly send rate for one mailbox provider, adjusted from observed deferrals."""
name: str
rate: int # messages per hour allowed right now
floor: int = 50
ceiling: int = 5000
defer_limit: float = 0.05 # back off when more than 5% of attempts are deferred
def update(self, attempted: int, deferred: int) -> int:
if attempted == 0:
return self.rate
defer_rate = deferred / attempted
if defer_rate > self.defer_limit:
self.rate = max(self.floor, int(self.rate * 0.5)) # fast decrease
else:
self.rate = min(self.ceiling, self.rate + max(10, self.rate // 10)) # slow increase
return self.rate
if __name__ == "__main__":
gmail = ProviderThrottle("gmail", rate=200)
# (attempted, deferred) for each hour of observations
hours = [(200, 2), (220, 4), (242, 3), (266, 40), (133, 2), (146, 1)]
for hour, (attempted, deferred) in enumerate(hours, start=1):
new_rate = gmail.update(attempted, deferred)
print(f"Hour {hour}: {deferred}/{attempted} deferred -> next rate {new_rate}/hour")In hour 4, 40 of 266 attempts were deferred (15%), so the rate is halved. The rate then climbs again by about 10% per clean hour. Keep the ceiling at or below the day's value from your warm-up schedule, so the controller can slow you down but never push you past the plan.
The response loop
Rules of thumb per provider
- Gmail. Deferrals that say mail is rate limited usually clear when you slow down. Gmail judges domain reputation heavily, so check that SPF, DKIM and DMARC pass and align before changing anything else. Watch the spam rate in Postmaster Tools.
- Yahoo. Complaint-driven deferrals are common. Remove unengaged recipients and make sure the unsubscribe link works. Yahoo also expects one-click unsubscribe for bulk mail.
- Microsoft (Outlook.com, Hotmail, Microsoft 365). Microsoft often rates new IPs strictly at first and may block by IP rather than domain. Use its Smart Network Data Services (SNDS) and Junk Mail Reporting Program (JMRP) to see how it views your IP. Request mitigation only after you have fixed the cause.
- Smaller providers and corporate gateways. Many publish no limits. Start with the lowest rate you use anywhere and rely on retry behaviour.
Common mistakes
- Retrying immediately. A deferral means "not now". Use backoff.
- Raising volume to "push through" a deferral. This is the opposite of what the provider is asking for.
- Treating all providers the same. Global limits are either too tight for tolerant providers or too loose for strict ones.
- Ignoring the cause. Persistent deferrals often point to complaints, a bad list segment, or failing authentication. Slowing down only hides the problem.
- Letting the queue grow unseen. A queue that gets deeper each hour means your send rate exceeds what the provider accepts. Alert on queue age per provider.
Exercise
On day 6 of a warm-up, Gmail defers 18% of your attempts with a "rate limited" reply, while Yahoo and Outlook show under 1% deferrals. What do you change, and what do you leave alone?
Show answer
Lower only the Gmail lane, for example by halving its hourly rate or concurrency, and keep retrying the deferred mail with backoff. Check Gmail-specific signals (authentication alignment and the Postmaster Tools spam rate) and send Gmail recipients from your most engaged segments. Leave the Yahoo and Outlook lanes at their current rates, because their low deferral rates show no problem there. Resume the Gmail ramp only after its deferral rate falls back to a low baseline.