SMTP Status Codes
Email server response codes and their meanings for troubleshooting.
SMTP reply codes, the three-digit numbers a mail server sends back at each step of delivering an email, with what each one means and whether it's a success, a temporary failure or a permanent failure. The first digit tells you most: 2 means done, 3 means send more (354 after DATA), 4 means try again later, and 5 means it won't work as sent. Bounce messages and mail logs often add an enhanced code such as 5.1.1 (no such mailbox), defined in RFC 3463, after the main one. The table follows RFC 5321 and RFC 7504. For DNS records that affect delivery, such as MX and SPF, see the DNS Record Types table.
SMTP reply codes
| Code | Meaning | Type |
|---|---|---|
| 211 | System status or help reply | Success |
| 214 | Help message | Success |
| 220 | Service ready | Success |
| 221 | Service closing the connection | Success |
| 250 | Requested action OK, completed | Success |
| 251 | User not local; will forward | Success |
| 252 | Cannot verify the user, but will accept the message | Success |
| 354 | Start mail input; end with <CRLF>.<CRLF> | Intermediate |
| 421 | Service not available, closing the connection | Temporary failure (retry) |
| 450 | Mailbox unavailable (e.g. busy); try again later | Temporary failure (retry) |
| 451 | Local error in processing; aborted | Temporary failure (retry) |
| 452 | Insufficient system storage | Temporary failure (retry) |
| 455 | Server unable to accommodate parameters | Temporary failure (retry) |
| 500 | Syntax error, command unrecognized | Permanent failure |
| 501 | Syntax error in parameters or arguments | Permanent failure |
| 502 | Command not implemented | Permanent failure |
| 503 | Bad sequence of commands | Permanent failure |
| 504 | Command parameter not implemented | Permanent failure |
| 521 | Host does not accept mail | Permanent failure |
| 550 | Mailbox unavailable (not found, no access, or rejected by policy) | Permanent failure |
| 551 | User not local | Permanent failure |
| 552 | Exceeded storage allocation | Permanent failure |
| 553 | Mailbox name not allowed | Permanent failure |
| 554 | Transaction failed (often: rejected as spam) | Permanent failure |
| 555 | MAIL FROM/RCPT TO parameters not recognized | Permanent failure |
| 556 | Domain does not accept mail | Permanent failure |
Servers often add an enhanced status code such as 5.1.1 (bad mailbox) after the reply code (RFC 3463).
Source: RFC 5321 (SMTP), RFC 7504 (codes 521 and 556).
Common use cases
- Understand a bounce message or mail log
- Debug an app or server that sends email
- Tell temporary failures from permanent ones
- Explain delivery problems to users
How to use
- Find the code from the bounce or log.
- Read its meaning and type.
- Retry later for 4xx codes; fix the address, content or setup for 5xx codes.
FAQ
What does 550 mean?
The server refused the message permanently, most often because the mailbox doesn't exist, or because the message was rejected as spam or by a security check. The text after the code usually says which.
What's the difference between 4xx and 5xx codes?
4xx codes are temporary: the sending server should keep trying for a while (often several days). 5xx codes are permanent, and the sender gets a bounce straight away.
What are codes like 5.7.1?
Enhanced status codes from RFC 3463. The first digit matches the main code's class, the second is the subject (1 address, 2 mailbox, 7 security or policy) and the third is the detail. 5.7.1 usually means delivery wasn't allowed by policy.
Related tools
- HTTP Status CodesComplete reference of HTTP status codes with meanings and use cases.
- DNS Record TypesReference for DNS record types including A, AAAA, CNAME, MX, TXT, and more.
- Port Number LookupCommon network port numbers and their associated services.
- File Extension LookupFile extension database with associated programs and MIME types.
- MIME Type LookupMIME type reference for content type headers and file handling.
- MAC Address Vendor LookupFind the manufacturer behind a MAC address from the IEEE registry, spot randomised addresses, and convert MAC…
- Email ValidatorIn Utilities