SMTP error 421 means the server you connected to is not available to you right now and is closing the connection. It is a temporary error: your mail server will try again later. The enhanced code after 421 tells you why, from a busy server to a reputation-based rate limit.
The error message
The base reply, from RFC 5321:
421 <domain> Service not available, closing transmission channel
Real servers add an enhanced code and their own text. Some from Gmail’s SMTP error reference:
421 4.4.5 Server busy, try again later.
421 4.7.0 Try again later, closing connection.
421 4.7.0 TLS required for RCPT domain, closing connection.
421 4.7.28 Gmail has detected an unusual rate of email originating from your IP address [ip-address]. To protect our users from spam, email sent from your IP address has been temporarily rate limited.
What it means
RFC 5321 lets a server send 421 in reply to any command when it knows it must shut down the session, so it is the code a server uses when it ends the conversation on its own. The enhanced status code from RFC 3463 narrows it:
| Enhanced code | Category |
|---|---|
| 4.3.x | Mail system status, such as a temporary system problem. |
| 4.4.x | Network and routing, such as a busy server or a bad connection (4.4.2). |
| 4.7.x | Security or policy, such as reputation, authentication or TLS. |
Why it happens
- The server is busy or restarting (4.3.0, 4.4.5).
- Too many connections from your IP at once.
- Reputation rate limits: Gmail’s 4.7.28, Yahoo’s 421 4.7.0 with TS or TSS codes.
- Missing PTR record on your IP (Gmail’s 421 4.7.0 version).
- Authentication missing: Gmail’s 421 4.7.26, 4.7.27 and 4.7.30 for mail without SPF or DKIM.
- TLS required by the recipient’s domain while your server sent in plain text.
- On the client side, a blocked port, a firewall or the wrong server, shown by mail apps as “421 connection to server failed”.
How to fix it
- Read the enhanced code and text to find the category.
- Busy server: wait. Your server retries automatically.
- Too many connections: lower the number of simultaneous connections and messages per connection to that domain.
- Rate limits: slow down and retry with growing intervals. See Gmail rate limited, Outlook 4.7.650 and Yahoo deferrals.
- PTR record: ask your IP provider to set reverse DNS that matches a forward A record. See 5.7.25.
- Authentication: publish SPF, DKIM and DMARC for your domain:
Replace the include with your provider’s. The setup guide covers DKIM too.yourdomain.com. TXT "v=spf1 include:your-provider.example -all" _dmarc.yourdomain.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com" - TLS: enable STARTTLS on your outbound server. See STARTTLS errors.
- Client errors: check the SMTP host, port 587 or 465, and that your network allows outbound SMTP. See SMTP connection timed out.
Which server sent it
| Provider | Typical 421 replies |
|---|---|
| Gmail | 421 4.3.0, 4.4.5, 4.7.0 (PTR, reputation, content, TLS), 4.7.26 to 4.7.40 (authentication and DMARC for bulk senders), 4.7.28 (rate limits). |
| Microsoft | Outlook.com uses 451 4.7.650 for reputation rather than 421; Exchange Online documents 4.7.500-699 throttling. |
| Yahoo | 421 4.7.0 with TS or TSS tags, for complaints, volume or reputation. Yahoo’s page says 4xx errors can be retried later. |
| Generic servers | 421 with “too many connections”, “try again later” or shutdown text. |
Is it temporary?
Yes. Every 4xx reply is temporary, and your mail server keeps retrying for days before giving up. Do not resend by hand. If the same 421 persists, the cause is on your side (reputation, PTR, authentication, TLS) and retries alone will not fix it. When the queue lifetime runs out, the message bounces.
How Mailcandor handles it
When delivery is deferred, Mailcandor fires an email.delivery_delayed webhook event so your app knows the email is waiting, not lost. If it finally fails, the deliverability coach explains the bounce in plain English, and hard bounces are suppressed automatically. Look up any code with the free bounce code lookup, or browse all error codes. More free checks are on the tools page.