Sub topic 12
Handling throttling and deferrals by provider
This chapter assumes you can read SMTP response codes, know what an MTA queue is, and have a volume schedule in place from the previous chapter. It covers what mailbox providers do when they slow you down and how to respond.
What throttling and deferrals are
Large mailbox providers limit how much mail they accept from an unknown sender. They do this at the SMTP level, during delivery. A deferral is a temporary rejection with a 4xx code. Your MTA keeps the message and retries it later. A block is a permanent rejection with a 5xx code. The message bounces.
During warm-up, deferrals are normal. They mean the provider is watching you, not that you have failed. The goal is to deliver the whole schedule without turning deferrals into blocks.
| Response | Meaning | What to do |
|---|---|---|
| 421 or 450 with "rate limited" text | Too many connections or messages right now | Slow down and let the MTA retry |
| 421 with "temporarily deferred due to unexpected volume or user complaints" | Reputation is low and the provider is protecting users | Reduce volume, check complaints |
| 550 or 554 with a policy or blocklist reference | Permanent block | Stop, find the cause, then ask for review |
Reading the deferral text
Each provider words its deferrals differently, and the text usually contains a link or an error code that names the reason. Log the full response string, not just the code. Group deferrals by recipient domain (gmail.com, yahoo.com, outlook.com) because each provider judges you separately. One provider can defer you heavily while another accepts everything.
Throttle per provider
Set sending limits per destination domain in your MTA or email service provider. Typical controls are:
- Maximum messages per hour.
- Maximum simultaneous connections.
- Maximum messages per connection.
- Retry interval and maximum time in queue.
Start low for each large provider and raise the limits as acceptance improves. Do not use one global rate, because it will be too fast for strict providers and too slow for lenient ones.
flowchart TD
A[Send batch to provider] --> B{Responses}
B -->|Mostly 250 accepted| C[Keep or raise rate]
B -->|Some 4xx deferrals| D[Lower rate, let queue retry]
B -->|5xx blocks| E[Pause this provider]
D --> F{Deferrals clear within a day?}
F -->|Yes| C
F -->|No| E
E --> G[Investigate cause and reduce volume]Responding to deferrals
- Do not resend manually. Retrying faster than the MTA's schedule looks like abuse.
- Let the queue retry with growing intervals, such as 15 minutes, then 30, then 1 hour.
- Lower the hourly limit for that provider, often by half.
- Hold the next day's increase for that provider. Other providers can keep following the schedule.
- Check that the cause is not on your side: failing SPF or DKIM, a missing PTR record, or a spike in complaints.
Tracking it in code
This script counts deferrals and accepted messages per provider from a simple log, so you can decide who to slow down.
from collections import defaultdict
log = [
("gmail.com", "250"),
("gmail.com", "421"),
("gmail.com", "421"),
("yahoo.com", "250"),
("yahoo.com", "250"),
]
stats = defaultdict(lambda: {"ok": 0, "deferred": 0})
for domain, code in log:
if code.startswith("2"):
stats[domain]["ok"] += 1
elif code.startswith("4"):
stats[domain]["deferred"] += 1
for domain, s in stats.items():
total = s["ok"] + s["deferred"]
rate = s["deferred"] / total
action = "slow down" if rate > 0.2 else "ok"
print(f"{domain}: {rate:.0%} deferred -> {action}")The 20% threshold is an example. Pick one based on your own baseline.
Exercise
Gmail defers 40% of your messages with a 421 rate-limit response, while Yahoo accepts everything. What do you do with tomorrow's volume?
Show answer
Hold or lower the Gmail volume and let the queue retry, without resending manually. Check authentication and complaint rates in case the cause is on your side. Yahoo can continue to follow the schedule, because providers judge you separately.