SMTP error 421 means the receiving server cannot handle your connection right now and is closing it. The standard text in RFC 5321 is "service not available, closing transmission channel". It is a temporary (4xx) reply, so the correct sender behaviour is to retry later, not to give up. In practice a 421 almost always comes from one of four causes: you opened too many connections, you sent too fast, the receiving side is deferring you because of reputation or authentication concerns, or the server is genuinely overloaded or shutting down.
The number alone tells you little. The text after it, and the enhanced status code such as 4.7.0 or 4.3.2, tell you which of the four you have. This guide shows how to read them, how to reproduce the problem, and what to change on the sending side. It also covers what to do when you run the receiving server and are the one producing 421 replies.
What 421 means in the protocol
RFC 5321 allows a server to send a 421 reply at any time, including at the very start of a session (instead of the 220 greeting) and in response to any command. After sending it the server closes the connection. That is the key difference between 421 and the other temporary codes such as 450, 451 and 452: those reject a single command or message and leave the session open, while 421 ends the session. See 450, 451 and 452 for the contrast.
$ openssl s_client -connect mx.example.net:25 -starttls smtp -crlf
421 4.7.0 Too many connections from your IP, try again laterA 421 at the greeting stage, before you have sent any commands, points to a limit on your source IP or a connection-level block. A 421 after DATA or after several messages points to a rate or per-session limit.
Reading the enhanced status code
Most modern servers add a three-part enhanced status code after the number, defined in RFC 3463. For 421, the second and third parts are the useful ones. See how to read a bounce code for the general structure.
| Code and text | Typical meaning | First action |
|---|---|---|
| 421 4.7.0 try again later | Policy deferral: rate limit, reputation or unusual volume. Read the text for a provider specific tag | Slow down, retry with backoff, check reputation. See 421 4.7.0 in detail |
| 421 4.3.2 system not accepting network messages | Server is shutting down, in maintenance or not accepting mail | Wait and retry; no change needed on your side |
| 421 4.4.5 mail system congestion | Receiving server is overloaded | Retry later with a lower concurrency |
| 421 4.4.2 connection dropped or timed out during session | Idle or slow session closed by the server | Shorten idle time; see SMTP timeout 421 |
| 421 with a hostname and reason such as too many connections | Per-IP connection limit | Reduce parallel connections to that destination |
Provider messages often add their own tag in brackets or a URL to a help page. Treat that URL as the authoritative explanation, because the meaning of the same code differs between providers.
The common causes, in order of frequency
- Too many simultaneous connections. Receivers cap connections per source IP. A sender that opens 50 parallel sessions to one destination will see 421 on the later ones.
- Sending rate too high. Many receivers limit messages or recipients per connection, per minute or per hour from one IP or domain. See email throttling.
- Reputation or complaint-based deferral. A new IP, a sudden volume jump or a rising complaint rate gets throttled. The receiver is telling you to slow down while it evaluates you.
- Authentication or DNS problems. Missing reverse DNS, a HELO name that does not resolve, or failing SPF and DKIM can produce policy deferrals. See reverse DNS and HELO.
- Greylisting. Some servers defer the first attempt from an unknown sender and accept the retry. See deferred mail and greylisting.
- Receiver overload or maintenance. The server is restarting, out of resources or its own backend is down. Nothing you can fix, and it clears by itself.
Diagnose from your logs
Start with the sender's mail log, because it records the exact reply and the destination. On a Postfix server, search for deferred deliveries with a 421 reply.
# Show recent 421 deferrals with the destination domain
grep -E 'status=deferred' /var/log/mail.log | grep ' 421 ' | tail -n 50
# Count 421 deferrals per destination domain
grep -E 'status=deferred' /var/log/mail.log | grep ' 421 ' \
| sed -n 's/.*relay=\([^[]*\)\[.*/\1/p' | sort | uniq -c | sort -rn | head
# Check the queue for messages waiting on deferral
postqueue -p | tail -n 20Look for patterns. If all 421s go to one provider, the cause is almost certainly that provider's policy. If they hit every destination, look at your own side: DNS, resource limits or an outbound firewall. If they appear only at peak hours, your concurrency or rate is the trigger. Correlate with the time of a campaign or a queue backlog. For log reading techniques see reading SMTP logs.
Reproduce it by hand
Open a session yourself from the same server and IP that sends the mail. If the 421 appears at the greeting, it is a connection-level block on that IP.
# Test connection and EHLO
openssl s_client -connect mx.example.net:25 -starttls smtp -crlf
# Or send a test message with swaks
swaks --to [email protected] --from [email protected] \
--server mx.example.net --port 25 --tls --helo mail.example.comTest from a different network too. If the same destination accepts a connection from elsewhere but not from your server, the block is tied to your source IP or its reputation. Check blocklists with the blocklist check and verify authentication with the SPF, DKIM and DMARC checker.
How to fix it when you are the sender
- Cap concurrency per destination. Use a small number of connections per receiving domain and send several messages per connection. See connection pooling.
- Pace the volume. Spread large sends over time and ramp new IPs gradually. See warm-up.
- Retry with exponential backoff. Typical schedules start at a few minutes and lengthen over hours, for up to several days. See SMTP retry schedules.
- Fix identity. Make forward and reverse DNS match, use a HELO name that resolves to your IP and pass SPF and DKIM.
- Clean the list. High bounce and complaint rates trigger deferrals. Suppress dead and complaining addresses.
- Read the provider's documentation. Gmail, Yahoo and Microsoft each publish guidance on what their temporary errors mean; follow the specific advice in the reply.
How to fix it when you run the receiving server
If your own server is sending 421 to legitimate senders, check these in order.
- Resource exhaustion: CPU, memory, disk space or file descriptors. A full queue disk will produce temporary refusals.
- Connection and rate limits configured in the MTA, such as per-client connection limits, being set too low for normal traffic.
- Backend dependencies: a database, content filter or policy daemon that is slow or down can cause the MTA to defer.
- Maintenance and restarts that close sessions mid-conversation.
- Anti-abuse rules that count legitimate mail as suspicious, for example a shared NAT address behind which many users send.
Return 421 deliberately only when you want the sender to come back later. For permanent decisions, use a 5xx code instead.
Troubleshooting table
| Observation | Likely cause | Action |
|---|---|---|
| 421 only at connect time | Per-IP connection limit or IP block | Reduce parallel sessions, check blocklists, test from another IP |
| 421 after many messages in one session | Per-session or per-minute message cap | Close and reopen sessions, slow down |
| 421 to one provider only | Provider policy or reputation | Follow that provider's documentation, throttle for that domain |
| 421 everywhere, began after a change | Your DNS, TLS or firewall change | Verify PTR, HELO, certificates and outbound rules |
| 421 that disappears on retry | Greylisting or transient load | No action beyond sensible retry |
| Messages stuck for days | Persistent reputation problem | See reputation recovery |
When to escalate and next steps
Escalate when the same destination defers you for more than a day while all technical checks pass. Contact the receiver's postmaster through the address or form named in the reply, include the full reply text, timestamps with time zone, your sending IP and a sample message ID. A concise, factual report is far more effective than a general complaint.
- Capture the exact 421 text and enhanced status code for several examples.
- Group by destination and by time to find the pattern.
- Lower concurrency and rate for the affected destination.
- Verify DNS, authentication and blocklist status.
- Let the queue retry; do not resend manually in bulk.
- If the deferral persists, contact the receiver with evidence.
Tired of babysitting retries? A managed relay handles per-destination throttling, retry schedules and clear bounce reporting for you.
References and further reading
Frequently asked questions
What does SMTP 421 service not available mean?
The receiving server cannot accept your connection now and is closing the channel. It is a temporary failure and the message should be retried.
Is a 421 error permanent?
No. It is a 4xx temporary reply, so a well behaved sender keeps the message queued and retries with increasing delays.
How do I fix 421 try again later?
Read the full text, reduce parallel connections and sending rate to that destination, check authentication and reputation, then let retries run.
Why do I get 421 only from one provider?
That provider is probably applying a rate, reputation or authentication policy to your IP or domain. Follow its specific documentation.
How long should I retry after a 421?
Most mail servers retry for several days with growing intervals. If deferral lasts beyond a day with clean checks, contact the receiver.