SMTP error codes
2xx and 3xx codes: success and continuation
-
220
Success- Meaning
- The server is ready to accept commands
- Official text
- <domain> Service ready
- Standard
- RFC 5321, RFC 3207
The server sends this code as soon as the connection opens, along with the server name. The code also appears in reply to the STARTTLS command, worded Ready to start TLS, before the switch to an encrypted connection. When the code doesn't arrive and the connection closes, check that the server is reachable and that the port isn't blocked.
-
221
Success- Meaning
- The server is closing the connection
- Official text
- <domain> Service closing transmission channel
- Standard
- RFC 5321
This is the normal reply to the QUIT command at the end of the session between the servers. The code is fine and doesn't indicate a problem.
-
250
Success- Meaning
- The action was completed
- Official text
- Requested mail action okay, completed
- Standard
- RFC 5321
This is the most common positive reply. After the message content is sent, it confirms that the receiving server has taken responsibility for the message, and it sometimes includes the message ID on the receiving server, which helps you find it in the logs. A 250 reply doesn't guarantee that the message will reach the inbox, because spam filtering sometimes happens after the message is accepted.
-
251
Success- Meaning
- The recipient isn't local, and the message will be forwarded
- Official text
- User not local; will forward to <forward-path>
- Standard
- RFC 5321
The server accepts the message and forwards it to another address of the recipient on its own. No action is needed on the sender's side.
-
252
Success- Meaning
- The recipient can't be verified, but the message will be accepted
- Official text
- Cannot VRFY user, but will accept message and attempt delivery
- Standard
- RFC 5321
This is the reply to the VRFY command, which checks whether an address exists. Many servers don't reveal whether an address exists, to make address harvesting harder, so they reply 252. The code doesn't tell you whether the mailbox exists.
-
354
Awaiting content- Meaning
- The server is ready to receive the message content
- Official text
- Start mail input; end with <CRLF>.<CRLF>
- Standard
- RFC 5321
This is the reply to the DATA command. The sender transfers the headers and the message body, and ends with a line that contains only a period. After the period, the server replies 250 when the message is accepted, or an error code when it's rejected.
4xx codes: temporary errors
-
421
Temporary- Meaning
- The service isn't available right now, and the server is closing the connection
- Official text
- <domain> Service not available, closing transmission channel
- Standard
- RFC 5321
The receiving server is overloaded, under maintenance, or temporarily limiting the connection rate from the sender's IP address. The sender's mail server retries automatically, and there's no need to send the message again. When the code keeps coming back from the same provider, check how many messages are sent to it and the domain's authentication settings.
-
450
Temporary- Meaning
- The mailbox isn't available right now
- Official text
- Requested mail action not taken: mailbox unavailable
- Standard
- RFC 5321
The mailbox is busy or temporarily blocked for policy reasons. A common method is greylisting: the server rejects the first attempt from an unknown sender and accepts the retry. The sender's server retries automatically, and the message usually arrives after a short delay.
-
451
Temporary- Meaning
- The action was aborted because of an error on the receiving server
- Official text
- Requested action aborted: local error in processing
- Standard
- RFC 5321
A temporary error on the receiving side, such as a failed DNS lookup or a filtering service failure. The sender's server retries on its own schedule. When the message still isn't delivered after several days of retries, the sender gets a final bounce message.
-
452
Temporary- Meaning
- Not enough storage space on the server
- Official text
- Requested action not taken: insufficient system storage
- Standard
- RFC 5321
The receiving server can't accept the message right now because it's short on space. The standard also defines 452 as the correct code when the number of recipients in one message exceeds the server's limit, and in that case the sender's server sends the remaining recipients over another connection. Many providers reply 452 with the enhanced code 4.2.2 when the recipient's mailbox is full.
-
454
Temporary- Meaning
- Encryption or authentication isn't available right now
- Official text
- TLS not available due to temporary reason
- Standard
- RFC 3207, RFC 4954
In reply to the STARTTLS command, the code means that the server can't start encryption right now. During authentication, 454 with the enhanced code 4.7.0 means a temporary server error, not a wrong password. Wait and try again, and when the code comes back on every login attempt from your email client, contact your email provider.
-
455
Temporary- Meaning
- The server can't accommodate the parameters sent
- Official text
- Server unable to accommodate parameters
- Standard
- RFC 5321
The server recognizes the parameters added to the MAIL FROM or RCPT TO commands, but can't accommodate them right now. A later retry may succeed. When the server doesn't recognize the parameter at all, it replies 555 instead.
5xx codes: permanent errors
-
500
Permanent- Meaning
- Unrecognized command or syntax error
- Official text
- Syntax error, command unrecognized
- Standard
- RFC 5321
The server didn't recognize the command, or the line is too long. The code sometimes appears when software or a script connects to the server with an encryption type that doesn't match the port, such as a connection that's encrypted from the start on a port that expects STARTTLS. Check the port and the encryption type in the settings.
-
501
Permanent- Meaning
- Syntax error in the command parameters
- Official text
- Syntax error in parameters or arguments
- Standard
- RFC 5321
The command is recognized, but the value sent with it is invalid, such as an email address with a space or an illegal character, or an invalid server name in the HELO or EHLO command. Check the addresses and the server name in the settings of the software or script that sends the mail.
-
502
Permanent- Meaning
- The server doesn't support the command
- Official text
- Command not implemented
- Standard
- RFC 5321
The server doesn't implement the command, such as VRFY or EXPN, which are disabled on many servers. When the code comes in reply to the AUTH or STARTTLS command, the server or the selected port doesn't support authentication or encryption, so check the port in the software settings.
-
503
Permanent- Meaning
- Bad sequence of commands
- Official text
- Bad sequence of commands
- Standard
- RFC 5321
The commands were sent in the wrong order, such as RCPT TO before MAIL FROM. When all recipients were rejected, the DATA command also gets 503, and the real reason appears in the replies to the recipients. On some servers, the code also appears when sending requires authentication and the software didn't authenticate. In that case, turn on outgoing server authentication in the account settings.
-
504
Permanent- Meaning
- The command parameter isn't supported
- Official text
- Command parameter not implemented
- Standard
- RFC 5321, RFC 4954
The server doesn't support the parameter that was sent, such as an authentication method that isn't available in the AUTH command. Choose a different authentication method in the software settings, or let the software choose the method.
-
521
Permanent- Meaning
- The server doesn't accept mail at all
- Official text
- Host does not accept mail
- Standard
- RFC 7504
The server replies 521 as soon as the connection opens, instead of 220, when it isn't meant to receive mail. Check that the domain's MX record points to the correct mail server and not to another server.
-
530
Permanent- Meaning
- Encryption or authentication is required before the command
- Official text
- Must issue a STARTTLS command first
- Standard
- RFC 3207, RFC 4954
The server requires you to start encryption with STARTTLS, or to authenticate with a username and password (530 with the enhanced code 5.7.0), before you send the message. In your email client settings, choose SSL/TLS or STARTTLS encryption, and turn on outgoing server authentication.
-
534
Permanent- Meaning
- The authentication method is too weak
- Official text
- Authentication mechanism is too weak
- Standard
- RFC 4954
The server rejects the selected authentication method because, under its policy, it isn't secure enough. Choose a different authentication method in the software settings. With large providers, the code also appears when they require a browser sign-in or an app password.
-
535
Permanent- Meaning
- The authentication credentials are invalid
- Official text
- Authentication credentials invalid
- Standard
- RFC 4954
The username or password is wrong. Check that the username is the full email address, and type the password again. If the password was changed recently, update it on all devices and apps, because repeated attempts with the old password can cause a temporary block.
-
550
Permanent- Meaning
- The action wasn't taken because the mailbox is unavailable
- Official text
- Requested action not taken: mailbox unavailable
- Standard
- RFC 5321
This is the most common permanent code. Per the standard, it covers a mailbox that wasn't found, missing access, or a policy rejection, so the enhanced code and the text after it show the actual reason: 5.1.1 for an address that doesn't exist, 5.7.1 for a policy rejection, and 5.7.20 to 5.7.26 for a sender authentication failure. You'll find the enhanced codes in the cards further down the page.
-
551
Permanent- Meaning
- The recipient isn't local to the server
- Official text
- User not local; please try <forward-path>
- Standard
- RFC 5321
The server doesn't accept mail for the address, and its reply sometimes gives another address to send to. When a new address appears, send to it and update the contact's details.
-
552
Permanent- Meaning
- Storage allocation or allowed message size exceeded
- Official text
- Requested mail action aborted: exceeded storage allocation
- Standard
- RFC 5321
The recipient's mailbox is full (5.2.2), or the message size exceeds the receiving server's limit (5.2.3 or 5.3.4). When the message is large, make the attachments smaller or send a download link. When the mailbox is full, let the recipient know another way so they can free up space.
-
553
Permanent- Meaning
- The mailbox name isn't allowed
- Official text
- Requested action not taken: mailbox name not allowed
- Standard
- RFC 5321
The address has invalid syntax, or the server doesn't allow sending from the sender's address. Check that the address is spelled correctly, with no spaces or extra characters. When the code comes back while sending from an email client, check that the sender address belongs to the mailbox you log in to the server with.
-
554
Permanent- Meaning
- The transaction failed
- Official text
- Transaction failed (when the connection opens: No SMTP service here)
- Standard
- RFC 5321, RFC 7504
A general rejection, usually for policy reasons: content flagged as spam, an IP address on a blocklist, or a blocked sender address. The standard also recommends 554 when the server rejects a specific connection as soon as it opens. The reason appears in the text after the code, and it sometimes includes a link to an explanation or to a blocklist removal request.
-
555
Permanent- Meaning
- MAIL FROM or RCPT TO parameters aren't recognized
- Official text
- MAIL FROM/RCPT TO parameters not recognized or not implemented
- Standard
- RFC 5321
The command was sent with an extra parameter that the server doesn't recognize or support, such as a declared message size, when the server didn't announce support for the matching extension. Fix the settings of the software or library that sends the mail.
-
556
Permanent- Meaning
- The domain doesn't accept mail
- Official text
- Domain does not accept mail
- Standard
- RFC 7504
A server along the way detected that the recipient's domain doesn't accept mail at all, usually from a Null MX record, where the MX record points to just a dot. Check that the recipient's address is spelled correctly. If your own domain needs to receive mail, delete the Null MX record and set up an MX record for your mail server.
Enhanced codes: address and mailbox
-
5.1.1
Permanent- Official text
- Bad destination mailbox address
- Common basic code
- 550
The recipient's address doesn't exist on the receiving server. Check the spelling, especially the part before the @ sign, and confirm with the recipient that the address is current. In mailing systems, remove such an address from the list, because repeated sending to addresses that don't exist hurts the sender's reputation.
-
5.1.2
Permanent- Official text
- Bad destination system address
- Common basic code
- 550 or 553
The recipient's domain doesn't exist or can't receive mail, for example because of a typo in the domain name or an expired domain. Check the part after the @ sign. If it's your domain, check that it's registered and has a valid MX record.
-
5.1.10
Permanent- Official text
- Recipient address has null MX
- Common basic code
- 556
Per the official registry, the recipient's domain has a Null MX record, which means it announces that it doesn't accept mail. Some providers also use this code for a recipient that wasn't found. In both cases, check the spelling of the address first.
-
5.2.1
Permanent- Official text
- Mailbox disabled, not accepting messages
- Common basic code
- 550
The mailbox exists but has been disabled, for example the account of an employee who left or an account that hasn't been used for a long time. Contact the recipient another way and ask for an alternative address.
-
5.2.2
Permanent- Official text
- Mailbox full
- Common basic code
- 552
The recipient's mailbox is full, and the message will be accepted after the recipient frees up space or increases the mailbox size. If your own mailbox is the full one, delete old messages with large attachments, and empty the trash and the spam folder.
-
4.2.2
Temporary- Official text
- Mailbox full
- Common basic code
- 452
The recipient's mailbox is full, and the receiving server reports it as a temporary error. The sender's server keeps retrying on its own schedule, and the message will be delivered if the mailbox frees up in that time.
-
5.2.3
Permanent- Official text
- Message length exceeds administrative limit
- Common basic code
- 552
The message is larger than the limit set on the receiving server or the mailbox. Make the attachments smaller or compress them, or share them with a download link. An attachment grows by about a third when it's sent, because of its encoding, so a file close to the limit can go over it.
Enhanced codes: system and network
-
5.3.4
Permanent- Official text
- Message too big for system
- Common basic code
- 552 or 554
The message is larger than the maximum size the receiving server can accept, regardless of any specific mailbox. Make the attachments smaller, or share them with a download link.
-
4.4.1
Temporary- Official text
- No answer from host
- Common basic code
- 451
The sender's server couldn't connect to the receiving server, or got no reply from it, and it keeps trying. If the issue persists, check that the recipient's MX record points to a working server and that port 25 on that server is open to connections.
-
4.4.2
Temporary- Official text
- Bad connection
- Common basic code
- 421
The connection opened but dropped midway, for example because of a network error or a timeout. A retry usually succeeds, and no action is needed.
-
4.4.7
Temporary- Official text
- Delivery time expired
- Common basic code
- Appears in the bounce message
The message waited in the sender's server queue for too long, and the retries ended without delivery. Even though the code starts with 4, the message won't be delivered anymore. The bounce message usually shows the last error received from the receiving server, which explains the reason. Fix it and send the message again.
-
5.4.1
Permanent- Official text
- No answer from host
- Common basic code
- 550
Per the official registry, the code means that the receiving server didn't answer. Some mail services use it in rejections worded Recipient address rejected: Access denied or Relay Access Denied, when the address doesn't exist on the recipient's side or when the server doesn't accept mail for it. Check the recipient's address and the MX record of their domain.
-
5.4.4
Permanent- Official text
- Unable to route
- Common basic code
- 550 or 554
The sender's server couldn't find where to deliver the message, usually because the recipient's domain has no MX record or A record, or the records are wrong. Check the domain's DNS records.
-
5.4.6
Permanent- Official text
- Routing loop detected
- Common basic code
- 554
The message went around in a loop between servers, usually because of mail forwards that point to each other, for example a mailbox that forwards to an external address that forwards back to it. Check the forwarding settings in both mailboxes and remove one of them.
Enhanced codes: protocol and content
-
5.5.1
Permanent- Official text
- Invalid command
- Common basic code
- 500, 502, or 503
The command is invalid or was sent at the wrong stage. Check the settings of the software or script that sends the mail, especially the port and the encryption type.
-
5.5.2
Permanent- Official text
- Syntax error
- Common basic code
- 500, 501, or 550
A syntax error in a command or parameter. Per the SPF standard, the code is also used when the sender's SPF record is invalid (permerror), for example when the domain has two SPF records, or when the record requires more than ten DNS lookups.
-
4.5.3
Temporary- Official text
- Too many recipients
- Common basic code
- 451 or 452
One message has more recipients than the server accepts in one connection, and the sender's server sends the remaining recipients over another connection. When the code starts with 5, split the recipient list into several messages. For sending to large lists, use an email marketing server.
-
5.6.1
Permanent- Official text
- Media not supported
- Common basic code
- 550 or 554
The receiving server doesn't support the message's content type or encoding, or an attachment is of a blocked type. Send the file in another format, or share it with a download link.
Enhanced codes: security and policy
-
5.7.0
Permanent- Official text
- Other or undefined security status
- Common basic code
- 530 or 550
A rejection for security reasons with no more specific classification. When sending from an email client, the code usually comes with 530, when authentication is required before sending. In other cases, read the text after the code, which gives the reason.
-
4.7.0
Temporary- Official text
- Other or undefined security status
- Common basic code
- 421 or 454
A temporary limit for security reasons, for example when the receiving server slows down an unknown sender, or after several failed login attempts. The sender's server keeps trying. When the code comes up in an email client, wait a few minutes and check the login details before trying again.
-
5.7.1
Permanent- Official text
- Delivery not authorized, message refused
- Common basic code
- 550
The receiving server refused the message under its policy. Common reasons: the sending IP address is on a blocklist, the content was flagged as spam, the recipient blocked the sender, or there was an attempt to relay mail through a server that doesn't allow it. The text after the code shows the reason. Rejections under a DMARC policy also often come with 550 5.7.1.
-
4.7.1
Temporary- Official text
- Delivery not authorized, message refused
- Common basic code
- 451 or 454
A temporary policy rejection, for example greylisting or rate limiting for a new sender. The sender's server keeps trying, and the message is usually accepted on one of the next attempts. When the code keeps coming back for hours, check the reputation of the IP address and the domain's authentication settings.
-
5.7.8
Permanent- Official text
- Authentication credentials invalid
- Common basic code
- 535
The username or password is wrong. Check that the username is the full email address and that the password is up to date on all devices and apps.
-
5.7.9
Permanent- Official text
- Authentication mechanism is too weak
- Common basic code
- 534
The selected authentication method isn't strong enough under the server's policy. Choose another method in the software settings, or sign in with the method your provider requires, such as OAuth2 or an app password.
Sender authentication: SPF, DKIM, and DMARC
-
5.7.23
Permanent- Official text
- SPF validation failed
- Common basic code
- 550
The IP address that sent the message isn't listed in the SPF record of the sender's domain. Add every service that sends mail on behalf of the domain to the record, such as the mail server, the mailing system, and the website, and keep only one SPF record.
-
5.7.24
Temporary or permanent- Official text
- SPF validation error
- Common basic code
- 451 or 550
The SPF check didn't complete because of a record error or a DNS failure. When the code starts with 4, the failure is temporary and the message will be sent again. When it starts with 5, check the record syntax and the number of DNS lookups it requires.
-
5.7.20
Permanent- Official text
- No passing DKIM signature found
- Common basic code
- 550
The message has no valid DKIM signature. Check that signing is turned on in the sending server and that the public key record is published in DNS in full, under the domain's selector._domainkey name. Split a long record into several strings within the same TXT record.
-
DMARC policy rejection
Permanent- Example text in the standard
- 550 5.7.1 Email rejected per DMARC policy for example.com
- Standard
- RFC 9989
The domain in the sender address published a p=reject policy, and the message didn't pass an SPF or DKIM check aligned with that domain. Make sure every service that sends on behalf of the domain signs with DKIM using the domain itself, or sends from an IP address listed in the SPF record. Before you move to p=reject, start with p=none and follow the reports.
-
5.7.25
Permanent- Official text
- Reverse DNS validation failed
- Common basic code
- 550
The sending IP address has no PTR record (reverse DNS), or the name in it doesn't point back to the same address. A PTR record is set by whoever holds the IP address, usually the server provider, and not in the domain's DNS zone. The server name in the EHLO command should match the name in the record.
-
5.7.26
Permanent- Official text
- Multiple authentication checks failed
- Common basic code
- 550
The message failed more than one authentication check, for example both SPF and DKIM. Large email providers also use this code for messages rejected under the domain's DMARC policy. Set up SPF and DKIM for every service that sends on behalf of the domain, and make sure the domain in the sender address (From) matches the domain that passed the checks.
-
5.7.27
Permanent- Official text
- Sender address has null MX
- Common basic code
- 550
Per the official registry, the domain of the sender address has a Null MX record, so replies can't be returned to it, and the server rejects the message. Some providers also use this code for an SPF failure in bulk sending. Check the MX and SPF records of the sender's domain.
No matching codes.
How to read an SMTP error message
When a mail server rejects a message, the sender gets a bounce message with an error line from the receiving server, for example:
550 5.1.1 <user@example.com>: Recipient address rejected: User unknownThe line has three parts. The basic code (550) is a three-digit number defined in the SMTP standard. The enhanced code (5.1.1) specifies the type of problem, and the text after it is written by the receiving server and sometimes includes a link to an explanation. The first digit is the same in both codes, and the second digit of the enhanced code shows the subject:
- X.1 Sender or recipient address
- X.2 Recipient's mailbox
- X.3 Mail system of the receiving server
- X.4 Network and routing
- X.5 SMTP protocol
- X.6 Message content
- X.7 Security and policy
Temporary or permanent error
- 2xx: The action succeeded.
- 3xx: The server is waiting for more input, such as the message content.
- 4xx: Temporary error. The sender's mail server keeps the message in its queue and retries automatically, and per the standard it keeps trying for at least four to five days before it sends a bounce message.
- 5xx: Permanent error. The server won't retry, and sending the same message again will be rejected again until the cause is fixed.
Who fixes the error
The bounce message goes to the sender, but the fix depends on the cause. A wrong address, an oversized message, and authentication errors are fixed on the sender's side. A full mailbox, a disabled mailbox, or a block set by the recipient are handled on the recipient's side, so let the recipient know another way. Rejections because of SPF, DKIM, DMARC, or a blocklist are fixed in the settings of the sender's domain and mail server. When you contact support, include the full bounce message, not just the code. Port and encryption settings for email clients are listed on the email client settings page.
Rejections related to sender authentication
Large email providers check every incoming message against the DNS records of the sender's domain, and reject messages that fail the checks. For your mail to be accepted, set up the following records for every domain that sends mail:
- SPF: one TXT record that lists the servers and services authorized to send on behalf of the domain. Check an existing record with the SPF record checker, and create a new record with the SPF record generator.
- DKIM: a digital signature that the sending server adds to every message, with its public key published in a TXT record. Split a long key into several strings with the long TXT record splitter.
- DMARC: a record that sets what the receiving server does with a message that fails, and where to send reports. Check it with the DMARC record checker, and create it with the DMARC record generator.
- Reverse DNS (PTR): a record that links the IP address of the sending server to its name. It's set by whoever holds the IP address, not in the domain's DNS zone.
To check the result, send a test message to a mailbox at another provider, copy the message's full headers, and check the SPF, DKIM, and DMARC results with the email header analyzer. All the record types are explained on the DNS record types page.
With our business email service, the SPF record and DKIM signing are set up automatically, and a DMARC record is set up on request. For bulk mailing to large lists, each of our email marketing servers has its own IP address, so the reputation of your sending address isn't affected by other customers' mailings.
SMTP error codes FAQ
What's the difference between a 4xx error and a 5xx error?
A code that starts with 4 means a temporary error: the sender's mail server keeps the message in its queue and tries to send it again automatically, usually for several days. A code that starts with 5 means a permanent rejection, and the server won't try again. In that case, fix the cause, such as a wrong address or a missing SPF record, and only then send the message again.
What does the error 550 5.7.1 mean?
The receiving server refused the message under its policy, and the reason appears in the text after the code. Common reasons are an IP address on a blocklist, content flagged as spam, a message that failed the SPF, DKIM, and DMARC checks, or a sender the recipient blocked. Start by checking the domain's SPF and DMARC records with the SPF record checker and the DMARC record checker, and once they're valid, check whether the sending IP address is on a blocklist.
Why is a message rejected with 550 5.1.1 when the address looks right?
The code 5.1.1 means that the receiving server didn't find the mailbox. Even when the address looks right, it may have an extra character, the mailbox may have been deleted, or the domain may have moved to another email provider while its MX record still points to the old server. Confirm the address with the recipient, and check the MX record of their domain with the DNS record lookup tool.
How do I keep messages from being rejected because of SPF, DKIM, and DMARC?
Set up one SPF record for the domain that includes every service sending on its behalf, turn on DKIM signing in each of those services, and publish a DMARC record. Start with the DMARC policy p=none, so you get reports before you make it stricter. With our business email service, the SPF record and DKIM signing are set up automatically, and a DMARC record is set up on request.
Do I need to resend a message that got a temporary error?
No. When a code that starts with 4 comes back, the sender's mail server keeps trying to send the message automatically, and it's usually delivered after a short delay. A final bounce message arrives only when all the attempts have failed over several days. Meanwhile you may get a notice that delivery is delayed, and it doesn't require any action.