How to Read SMTP Error Codes: A Beginner's Guide
SMTP error codes look cryptic but follow a clear pattern. Learn to read the digits, the enhanced status and the text, and decide what to do next.
10 min readUpdated Nov 22, 2026By XPASS Editorial Team

When an email fails, you often get a message full of numbers and phrases such as 550 5.1.1 or 421 4.7.0 and a long technical sentence you have never seen before. It is tempting to ignore it and just resend. But these codes are one of the most useful tools you have, because they come from the receiving server and tell you, in a standard format, what it decided and often why. Once you know the pattern, you can read most errors in under a minute and decide whether to wait, fix a setting or contact someone. This guide is written for beginners who manage a business mailbox or a small domain.
Where SMTP codes come from
Email is delivered by a conversation between two servers using the Simple Mail Transfer Protocol, defined in RFC 5321. The sending server connects to the receiving server and the two exchange short commands and replies. Each reply starts with a three-digit code followed by human-readable text. A simplified conversation looks like this:
- The sender says hello and introduces itself.
- It names the return address and receives a reply such as 250, meaning accepted.
- It names the recipient and receives another reply. Here a rejection of the address can appear.
- It sends the message content and receives a final reply that says whether the message was accepted for delivery.
If any step fails, the receiving server answers with a 4xx or 5xx code and the sender produces an error. When you use a mail program, you might see that error directly. When the message was already handed to a relay server, you will usually receive a separate bounce message later. That bounce normally quotes the remote server's reply, which is why it is the best place to look. If you want the bigger picture of what bounces are and how they are categorised, the article on what an email bounce is and its types covers it.

The structure of a reply code
Every SMTP reply is three digits. Each digit has a role.
The first digit is the outcome class:
| First digit | Meaning | What to do |
|---|---|---|
| 2 | Success | Nothing. The step was accepted. |
| 3 | Intermediate, waiting for more | Normal in the conversation, for example before the message body is sent. |
| 4 | Temporary failure | The server may accept it later. Senders usually retry automatically. |
| 5 | Permanent failure | The server refused. Fix the cause before sending again. |
The second digit gives the category: 0 for syntax, 1 for information, 2 for the connection, and 5 for the mail system status. You rarely need to memorise it, but it helps when you see an unfamiliar code.
The third digit refines the meaning within the category.
Most of the time you only need the first digit plus the text. The first digit decides whether time may solve the problem or whether you must act. That distinction is the same one explained in the guide on hard bounces and soft bounces: temporary errors are soft, permanent errors are hard.
Enhanced status codes
Many servers add a second code made of three numbers separated by dots, such as 5.1.1 or 4.2.2. These enhanced status codes give more detail in a consistent format. They have the same three parts:
- Class: 2, 4 or 5, matching success, temporary failure and permanent failure.
- Subject: the general area. For example 1 relates to addressing, 2 to the mailbox, 3 to the mail system, 4 to network and routing, 5 to the mail protocol, 6 to message content and 7 to security or policy.
- Detail: the specific condition within that area.
So 5.1.1 reads as permanent failure, addressing problem, the specific condition being a bad destination mailbox address. And 4.2.2 reads as temporary failure, mailbox problem, mailbox full.
Receiving providers also use their own text and sometimes their own numbering after the standard parts, so do not assume two providers use the same wording. The code gives the category and the text tells you the detail.
The codes you will meet most often
This table covers the replies beginners see most. Wording varies by server.
| Code | Usual meaning | Typical next step |
|---|---|---|
| 220 | Server ready at connection start | None. Normal. |
| 250 | Requested action completed | None. Normal. |
| 354 | Start sending message content | None. Normal. |
| 421 | Service not available or connection closed, often a temporary refusal or rate limit | Wait and let the system retry. Reduce your sending speed if it repeats. |
| 450 | Mailbox unavailable, temporary | Retry later. Common with greylisting. |
| 451 | Local error in processing, temporary | Retry later. If it persists, check the receiving side. |
| 452 | Insufficient storage or too many recipients | Retry later or send fewer recipients at once. |
| 550 | Mailbox unavailable or message refused, permanent | Check the address, then the policy text. |
| 551 | User not local | Check the address. |
| 552 | Message exceeds storage or size limit | Make the message smaller or ask the recipient to free space. |
| 553 | Mailbox name not allowed or malformed | Correct the address format. |
| 554 | Transaction failed, often a policy or spam decision | Read the text. Check authentication and reputation. |
Remember that 550 and 554 are broad. The text after the number is what separates a typo in an address from a blocklist entry.
Common patterns and what they usually mean
These are typical situations, described in general terms. Always compare with the actual text you receive.
The address does not exist. A 550 with 5.1.1 and wording like user unknown or recipient address rejected. Check for typos, a closed account or a recently changed address. Do not keep retrying.
The mailbox is full. A 552 or 4.2.2 style reply with wording about quota. Because full mailboxes can clear, treat a 4.2.2 as temporary and a 5.2.2 as a stronger refusal. Contact the recipient another way.
Message too large. A 552 or 5.3.4 with a size mention. Compress or share a link rather than attaching a big file.
Authentication or policy failure. A 550 or 554 with 5.7.1 and wording about SPF, DKIM, DMARC, policy or unauthenticated mail. This points to your sending setup. The standards involved are SPF in RFC 7208 and DMARC in RFC 7489. Check that your domain's records are present and aligned with the service that sends your mail.
Rate limiting or low trust. A 421 or 450 with 4.7.0 and wording about too many connections or deferral. Slow down, send smaller batches and spread them over time. A new domain often meets this.
Blocklist or reputation. A 554 or 550 mentioning a blocklist or reputation. Look up the sending IP and domain on the named list and follow its removal process.
Reverse DNS or connection checks. A refusal mentioning the hostname or reverse lookup of the sending IP. This is a server configuration matter for whoever runs the sending server.
Greylisting. A 450 or 451 with wording asking you to try again later. Some servers deliberately refuse the first attempt from an unknown sender and accept the retry. This usually resolves itself within minutes to hours.
A reading routine you can repeat
Use this routine every time.
- Find the full text. Open the bounce or the log and copy the whole reply, including numbers.
- Read the first digit. 4 means temporary, 5 means permanent.
- Read the enhanced code if present. Note the subject: addressing, mailbox, system, network, protocol, content or security.
- Read the human text. Look for key words such as user unknown, quota, policy, authentication, blocked, spam, size or too many.
- Decide the owner. Is it the recipient's problem such as a wrong address or full mailbox, your problem such as authentication or content, or neither such as a temporary glitch?
- Act on one thing. Fix the address, change the setting, shrink the message, slow down or wait. Then test again with a single message.
- Record the result. Keep the code, the time and what you changed. Patterns help when you contact support.
If you manage mailboxes that are being moved between servers, see the notes on IMAP mailbox migration precautions because migration mistakes can also produce confusing errors.
Errors that are not SMTP delivery errors
Not every email problem is an SMTP reply from a remote server. Mail programs also report errors that look similar.
- Cannot connect to server. Usually a wrong server name, port, network block or the service being down. No remote reply was received.
- Authentication failed on sending. Your login to your own outgoing server was refused. Check the username, password and whether the account requires a special app password.
- Relay denied. Your server refused to send for you because you are not logged in or not allowed. Enable authentication in your mail program.
- Certificate or TLS warnings. The connection could not be secured as expected. Do not ignore these; check the server name and settings.
- Receiving problems with IMAP or POP. These concern reading mail, not sending it, and use different protocols and error messages.
Telling these apart saves time, since a login problem on your side will never be solved by contacting the recipient.
Limits and what to watch for
- Texts are not standardised. The numbers follow standards, but wording differs between providers and changes over time. Do not rely on an exact sentence.
- Some servers hide the reason on purpose. To avoid helping attackers, a server may give a vague refusal. In that case start with the basics: address, authentication, volume and content.
- A single code can have several causes. For example a 550 may mean a bad address, a policy block or a blocklist. Read the text before acting.
- Do not resend in a loop. Repeating a permanently rejected message can damage your sender reputation. Fix first, then send one test.
- Copy the information carefully when asking for help. Include the code, time, sender, recipient domain and the full text, but remove private content before sharing a bounce with anyone outside your organisation.
- Respect the receiving side's decisions. Do not try to trick a server that refuses you. Fix the cause instead.
A worked example
Suppose you send a quotation to a customer and a few minutes later a message arrives in your inbox with this text: 550 5.1.1 The email account that you tried to reach does not exist. Read it step by step. The first digit is 5, so the failure is permanent and resending the same message will not help. The enhanced code 5.1.1 points to addressing, and the text confirms the mailbox is not found. The owner of the problem is therefore the address, not your server. You compare the address with the customer's last email, find a missing letter in the domain name, correct it and send one fresh message. No settings needed changing, and the whole diagnosis took under a minute.
Now compare a second case: 421 4.7.0 Try again later, closing connection, received while you send a larger batch. The first digit is 4, so the failure is temporary. The subject 7 suggests security or policy, and the text suggests the receiving side is limiting you. The owner here is your sending pattern. You pause, split the batch into smaller groups and spread them over several hours. Same method, different outcome.
Summary
SMTP error codes follow a consistent structure. The first digit tells you whether the failure is temporary or permanent, the enhanced code points to the area such as addressing, mailbox, content or policy, and the text gives the detail. With a short routine of copying the full reply, reading the digit, the enhanced code and the text, deciding who owns the problem and changing one thing at a time, most errors become understandable and fixable. Keep records of what you see, and avoid resending in a loop. When you want mailboxes with clear delivery handling for your own domain, the business email page is a good place to look at the options.
Frequently asked questions
What does the first digit of an SMTP code mean?
The first digit gives the outcome class. 2 means success, 3 means the server is waiting for more input, 4 means a temporary failure that may succeed if retried, and 5 means a permanent failure that retrying will not fix.
What is the difference between 550 and 450?
Both usually concern a mailbox or policy problem, but 450 is temporary and the sending server will normally retry, while 550 is permanent and the message is returned to the sender.
What do codes like 5.1.1 mean?
These are enhanced status codes with three parts: class, subject and detail. For example 5.1.1 means a permanent failure related to the address, specifically that the destination mailbox does not exist.
Should I retry a message after a 5xx error?
Not until you have fixed the cause. A 5xx reply means the receiving server refused the message for a lasting reason such as a wrong address, a policy block or failed authentication. Sending the same message again unchanged usually gets the same result.
Where can I find the error text for a failed email?
Look at the bounce or delivery status message sent back to the sender's mailbox, the mail client's error dialog, or the mail server's log. The bounce usually quotes the remote server's reply word for word.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Want email on your own domain?
Business email with your domain name, priced per mailbox.
See business emailKeep reading

Business Email Guides
What Is an Email Bounce and What Types Exist?
A bounce is a failure notice for an email that could not be delivered. Learn the types, the causes behind them and the right response to each.
10 min read

Business Email Guides
Hard Bounce vs Soft Bounce: What Is the Difference?
Hard bounces are permanent failures and soft bounces are temporary ones. Learn how to tell them apart and set simple rules for what to do with each.
9 min read

Business Email Guides
Migrating a Mailbox Over IMAP: What to Watch For
IMAP migration copies messages and folders between two mail servers, but it does not move everything. Here is how to plan, run and verify a move without losing mail.
10 min read