Workflow Tools Control Yard

Home / Email and M365

SMTP status code lookup

Paste a bounce line from a non-delivery report or a mail log, such as 550 5.1.1 User unknown, or type a code such as 421 or 5.2.2. The page reads the three-digit reply code and the enhanced status code after it.

Reply codes

Every SMTP reply starts with a three-digit code. The first digit says how the command went:

CodeVerdictWhat it means
2xxSuccessThe action is done.
3xxWaiting for moreAccepted so far; the server needs more input, such as the message itself.
4xxTemporary failureNot done this time; the same request may succeed if it is tried again later.
5xxPermanent failureNot done; the same request will fail again until something changes.

The second digit says what the reply is about:

CodeAboutCodes in the list below
x0xSyntax500, 501, 502, 503, 504
x1xInformation211, 214
x2xConnections220, 221, 421, 521
x3xNot specifiedNone
x4xNot specifiedNone
x5xMail system250, 251, 252, 354, 450, 451, 452, 455, 550, 551, 552, 553, 554, 555, 556

The codes RFC 5321 lists, with the two that RFC 7504 added:

CodeMeaningDefined in
211System status, or a reply to a request for help.RFC 5321
214A help message.RFC 5321
220Service ready: the greeting of the server when a connection opens.RFC 5321
221Service closing the connection, in answer to QUIT.RFC 5321
250Requested action done.RFC 5321
251User not local; the server will forward the message.RFC 5321
252The server cannot check the user, but will take the message and try to deliver it.RFC 5321
354Send the message; end it with a line holding only a period.RFC 5321
421Service not available; the server is closing the connection.RFC 5321
450Not done: the mailbox is unavailable for now, for example busy or blocked by policy.RFC 5321
451Stopped: a local error in processing.RFC 5321
452Not done: not enough storage on the server.RFC 5321
455The server cannot accommodate the parameters.RFC 5321
500Syntax error: command not recognized.RFC 5321
501Syntax error in the parameters or arguments.RFC 5321
502Command not implemented.RFC 5321
503Bad sequence of commands.RFC 5321
504Command parameter not implemented.RFC 5321
521This host does not accept mail at all.RFC 7504
550Not done: the mailbox is unavailable, for example not found, no access, or refused by policy.RFC 5321
551User not local; the server names the address to try.RFC 5321
552Stopped: storage allocation exceeded.RFC 5321
553Not done: mailbox name not allowed, for example bad syntax.RFC 5321
554Transaction failed, or, when the connection opens, no SMTP service here.RFC 5321
555MAIL FROM or RCPT TO parameters not recognized or not implemented.RFC 5321
556The domain of the address does not accept mail.RFC 7504

Enhanced status codes

An enhanced status code such as 5.7.1 has three numbers: the class, the subject and the detail. The class repeats the verdict of the reply code; the subject says which part of the system the problem is in. A code whose detail is not in the registry below still has a class and a subject, and the page reads those.

CodeClassDefined in
2.x.xSuccessRFC 3463
4.x.xPersistent Transient FailureRFC 3463
5.x.xPermanent FailureRFC 3463
CodeSubjectDefined in
x.0.xOther or Undefined StatusRFC 3463
x.1.xAddressing StatusRFC 3463
x.2.xMailbox StatusRFC 3463
x.3.xMail System StatusRFC 3463
x.4.xNetwork and Routing StatusRFC 3463
x.5.xMail Delivery Protocol StatusRFC 3463
x.6.xMessage Content or Media StatusRFC 3463
x.7.xSecurity or Policy StatusRFC 3463

The codes in IANA's registry, last updated 6 Dec 2024. X stands for the class, 4 or 5 (2 for the few that report success):

CodeMeaningDefined in
X.0.0Other undefined statusRFC 3463
X.1.0Other address statusRFC 3463
X.1.1Bad destination mailbox addressRFC 3463
X.1.2Bad destination system addressRFC 3463
X.1.3Bad destination mailbox address syntaxRFC 3463
X.1.4Destination address ambiguousRFC 3463
X.1.5Destination address validRFC 3463
X.1.6Destination mailbox moved, no forwarding addressRFC 3463
X.1.7Bad sender's mailbox address syntaxRFC 3463
X.1.8Bad sender's system addressRFC 3463
X.1.9Message relayed to non-compliant mailerRFC 3886
X.1.10Recipient address has null MXRFC 7505, RFC 7504
X.2.0Other or undefined mailbox statusRFC 3463
X.2.1Mailbox disabled, not accepting messagesRFC 3463
X.2.2Mailbox fullRFC 3463
X.2.3Message length exceeds administrative limitRFC 3463
X.2.4Mailing list expansion problemRFC 3463
X.3.0Other or undefined mail system statusRFC 3463
X.3.1Mail system fullRFC 3463
X.3.2System not accepting network messagesRFC 3463, RFC 7504
X.3.3System not capable of selected featuresRFC 3463
X.3.4Message too big for systemRFC 3463
X.3.5System incorrectly configuredRFC 3463
X.3.6Requested priority was changedRFC 6710
X.4.0Other or undefined network or routing statusRFC 3463
X.4.1No answer from hostRFC 3463
X.4.2Bad connectionRFC 3463
X.4.3Directory server failureRFC 3463
X.4.4Unable to routeRFC 3463
X.4.5Mail system congestionRFC 3463
X.4.6Routing loop detectedRFC 3463
X.4.7Delivery time expiredRFC 3463
X.5.0Other or undefined protocol statusRFC 3463
X.5.1Invalid commandRFC 3463
X.5.2Syntax errorRFC 3463
X.5.3Too many recipientsRFC 3463
X.5.4Invalid command argumentsRFC 3463
X.5.5Wrong protocol versionRFC 3463
X.5.6Authentication exchange line too longRFC 4954
X.6.0Other or undefined media errorRFC 3463
X.6.1Media not supportedRFC 3463
X.6.2Conversion required and prohibitedRFC 3463
X.6.3Conversion required but not supportedRFC 3463
X.6.4Conversion with loss performedRFC 3463
X.6.5Conversion failedRFC 3463
X.6.6Message content not availableRFC 4468
X.6.7Non-ASCII addresses not permittedRFC 6531
X.6.8UTF-8 string reply not permittedRFC 6531
X.6.9UTF-8 header message cannot be transferredRFC 6531
X.6.10Deprecated duplicate of X.6.8RFC 6531
X.7.0Other or undefined security statusRFC 3463
X.7.1Delivery not authorized, message refusedRFC 3463
X.7.2Mailing list expansion prohibitedRFC 3463
X.7.3Security conversion required but not possibleRFC 3463
X.7.4Security features not supportedRFC 3463
X.7.5Cryptographic failureRFC 3463
X.7.6Cryptographic algorithm not supportedRFC 3463
X.7.7Message integrity failureRFC 3463
X.7.8Authentication credentials invalidRFC 4954
X.7.9Authentication mechanism too weakRFC 4954
X.7.10Encryption neededRFC 5248
X.7.11Encryption required for requested mechanismRFC 4954
X.7.12Password transition neededRFC 4954
X.7.13User account disabledRFC 5248
X.7.14Trust relationship requiredRFC 5248
X.7.15Priority level too lowRFC 6710
X.7.16Message too big for specified priorityRFC 6710
X.7.17Mailbox owner changedRFC 7293
X.7.18Domain owner changedRFC 7293
X.7.19RRVS test cannot be completedRFC 7293
X.7.20No passing DKIM signature foundRFC 7372, RFC 6376
X.7.21No acceptable DKIM signature foundRFC 7372, RFC 6376
X.7.22No valid author-matched DKIM signature foundRFC 7372, RFC 6376
X.7.23SPF validation failedRFC 7372, RFC 7208
X.7.24SPF validation errorRFC 7372, RFC 7208
X.7.25Reverse DNS validation failedRFC 7372
X.7.26Multiple authentication checks failedRFC 7372
X.7.27Sender address has null MXRFC 7505
X.7.28Mail flood detecteddraft-levine-mailbomb-header
X.7.29ARC validation failureRFC 8617
X.7.30REQUIRETLS support requiredRFC 8689

Exchange Online codes

Microsoft 365 sends codes of its own, and gives some registry codes its own meaning: in its bounces 5.1.10 means that no recipient has the address. Microsoft's list, with its descriptions and causes:

CodeMicrosoft's descriptionPossible cause
432 4.3.2STOREDRV.Deliver; recipient thread limit exceededThe ability of the recipient mailbox to accept messages is throttled because it's receiving too many messages too quickly. Throttling is done so that a single recipient's mail processing doesn't unfairly affect other recipients who are sharing the mailbox database.
4.4.7Message expiredThe message in the queue expired. The sending server tried to relay or deliver the message, but the action wasn't completed before the message expiration time. This message can also indicate that a message header limit was reached on a remote server, or some other protocol timeout occurred during server communication.
4.4.8MX hosts of <domain> failed MTA-STS validationThe destination MX host isn't the expected host per the domain's Strict Transport Security (STS) policy.
4.4.316Connection refused [Message=Socket error code 10061]Microsoft 365 or Office 365 is trying to send a message to an email server outside Microsoft 365 or Office 365, but all attempts to connect are failing because of a network connection issue at the external server's location.
450 4.4.317Cannot connect to remote server [Message=UntrustedRoot]During the Transport Layer Security (TLS) handshake, Exchange Online can't verify the authenticity of a leaf certificate sent without the full certificate chain by a remote email server.
4.5.3Too many recipientsThe message has more than 200 SMTP envelope recipients from the same domain.
4.7.5Remote certificate failed MTA-STS validation. Reason: <validityStatus>The destination mail server's certificate must chain to a trusted root Certificate Authority and the Common Name or Subject Alternative Name must contain an entry for the host name in the STS policy.
4.7.26Access denied, a message sent over IPv6 [2a01:111:f200:2004::240] must pass either SPF or DKIM validation, this message is not signedThe sending message sent over IPv6 must pass either SPF or DKIM.
4.7.321starttls-not-supported: Destination mail server must support TLS to receive mail.DNSSEC checks passed. However, upon establishing the connection, the destination mail server doesn't respond to the STARTTLS command. The destination server responds to the STARTTLS command, but the TLS handshake fails.
4.7.322certificate-expired: Destination mail server's certificate is expired.DNSSEC checks passed. However, upon establishing the connection, the destination mail server provides an expired certificate.
4.7.323tlsa-invalid: The domain failed DANE validation.Records are DNSSEC authentic, but one or multiple of these scenarios occurred: The destination mail server's certificate doesn't match the authentic TLSA record requirements.Authentic TLSA record is misconfigured.Destination domain is being attacked.Any other DANE failure.
4.7.324dnssec-invalid: Destination domain returned invalid DNSSEC recordsThe destination domain indicated that it was DNSSEC-authentic, but Exchange Online wasn't able to verify it as DNSSEC-authentic.
4.7.325certificate-host-mismatch: Remote certificate MUST have a common name or subject alternative name that matches the hostname (DANE)This error occurs if the presented certificate identities (CN and SAN) of a destination SMTP target host don't match any of the domains or MX host.
4.7.500-699Access denied, please try again laterSuspicious activity was detected and sending was temporarily restricted for further evaluation.
4.7.850-899Access denied, please try again laterSuspicious activity was detected on the IP in question, and the address is temporarily restricted while being further evaluated.
5.0.350Generic error, x-dg-ref header is too long, or Requested action not taken: policy violation detected (AS345)5.0.350 is a generic catch-all error code for a wide variety of nonspecific errors from the recipient's email organization. The specific x-dg-ref header is too long message is related to Rich Text-formatted messages. The specific Requested action not taken: policy violation detected (AS345) message is related to nested attachments.
5.1.0Sender deniedThis NDR commonly occurs when someone saves an email message to a file in Outlook, opens it offline, and then replies. The message property preserves only the legacyExchangeDN attribute when Outlook delivers the message. Therefore, the lookup could fail.
5.1.1Bad destination mailbox addressThe following conditions might cause this failure: The sender incorrectly entered the recipient's email address.The recipient's email address doesn't exist in the destination email system.The recipient's mailbox was moved, and the sender's Outlook recipient cache didn't update.An invalid legacy domain name (DN) exists for the recipient's mailbox Active Directory Domain Service.
5.1.8Access denied, bad outbound senderThe account was blocked for sending too much spam. Typically, this problem occurs because the account was compromised (hacked) by phishing or malware.
5.1.10Recipient not foundSMTP address lookup didn't find the recipient's <SMTP Address>.
550 5.1.20Multiple From addresses are not allowed without Sender addressAn email message has multiple email addresses in the From field, but no email address in the Sender field.
5.1.90Your message can't be sent because you've reached your daily limit for message recipientsThe sender exceeded the recipient rate limit, as described in Sending limits.
5.2.2Submission quota exceededThe sender exceeded the recipient rate limit or the message rate limit as described in Sending limits.
5.2.121Recipient's per hour message receive limit from specific sender exceededThe sender exceeded the maximum number of messages that they're allowed to send per hour to a specific recipient in Exchange Online.
5.2.122Recipient's per hour message receive limit exceededThe Microsoft 365 or Office 365 recipient exceeded the number of messages that they can receive per hour from all senders.
5.3.190Journaling on-premises messages to Microsoft 365 or Office 365 not supported when Journaling Archive is disabledJournaling on-premises messages to Microsoft 365 or Office 365 isn't supported for this organization because Journaling Archive isn't enabled in the organization's settings.
5.4.1Relay Access DeniedThe mail server that's generating the error doesn't accept mail for the recipient's domain. Mail server or DNS misconfiguration causes this error.
5.4.1Recipient address rejected: Access deniedThe recipient's address doesn't exist.
5.4.6 or 5.4.14Routing loop detectedA configuration error caused an email loop. On-premises Exchange server generates error 5.4.6 (you see this code in hybrid environments). Exchange Online generates error 5.4.14. By default, after 20 iterations of an email loop, Exchange interrupts the loop and generates an NDR to the sender of the message.
5.4.8MX hosts of <domain> failed MTA-STS validationThe destination MX host wasn't the host expected per the domain's STS policy.
5.4.300Message expiredThe email message wasn't delivered in time. The destination server didn't respond, or an error occurred, and the NDR could not be delivered to the sender.
5.5.0550 5.5.0 Requested action not taken: mailbox unavailableThe recipient's <SMTP Address> domain is @hotmail.com or @outlook.com and it wasn't found by SMTP address lookup.
5.6.11Invalid charactersYour email program added invalid characters (bare line feed characters) to a message that you sent.
5.7.1Delivery not authorizedThe sender of the message isn't allowed to send messages to the recipient.
5.7.1Unable to relayThe sending email system isn't allowed to send a message to an email system that isn't the final destination of the message.
5.7.1Client was not authenticatedThe sending email system didn't authenticate with the receiving email system. The receiving email system requires authentication before message submission.
5.7.5Remote certificate failed MTA-STS validation. Reason: <validityStatus>The destination mail server's certificate must chain to a trusted root Certificate Authority and the Common Name or Subject Alternative Name must contain an entry for the host name in the STS policy.
5.7.12Sender was not authenticated by organizationThe sender's message is rejected because the recipient address is set up to reject messages sent from outside its organization. Only an email administrator for the recipient's organization can change this configuration.
5.7.23The message was rejected because of Sender Policy Framework violationThe destination email system uses SPF to validate inbound mail, and an issue affects your SPF configuration.
5.7.25Access denied, the sending IPv6 address [2a01:111:f200:2004::240] must have a reverse DNS recordThe sending IPv6 address must have a reverse DNS record to send email over IPv6.
5.7.57Client was not authenticated to send anonymous mail during MAIL FROMYou configured an application or device to send (relay) email messages in Microsoft 365 or Office 365 using the smtp.office365.com endpoint, and an issue affects the configuration of the application or device.
5.7.64TenantAttribution; Relay Access DeniedYou use an inbound connector to receive messages from your on-premises email environment, and something changed in your on-premises environment that makes the inbound connector's configuration incorrect.
5.7.124Sender not in allowed-senders listThe sender doesn't have permission to send to the distribution group because the sender isn't in the group's allowed-senders list. Depending how the group is set up, even the group's owner might have to be added to the allowed sender list in order to send messages to the group.
5.7.133Sender not authenticated for groupThe recipient address is a group distribution list that's set up to reject messages sent from outside its organization. Only an email administrator for the recipient's organization or the group owner can change this configuration.
5.7.134Sender was not authenticated for mailboxThe recipient address is a mailbox that's set up to reject messages sent from outside its organization. Only an email administrator for the recipient's organization can change this configuration.
5.7.13 or 135Sender was not authenticated for public folderThe recipient address is a public folder that's set up to reject messages sent from outside its organization. Only an email administrator for the recipient's organization can change this configuration.
5.7.136Sender was not authenticatedThe recipient address is a mail user that's set up to reject messages sent from outside its organization. Only an email administrator for the recipient's organization can change this configuration.
5.7.232Your message can't be sent because your trial tenant has exceeded its daily limit for sending email to external recipients (tenant external recipient rate limit)The number of external recipients emailed in a 24-hour period exceeds the external recipient rate limit in Exchange Online. The limit applies per trial tenant.
5.7.233Your message can't be sent because your tenant exceeded its daily limit for sending email to external recipients (tenant external recipient rate limit)The number of external recipients emailed in a 24-hour period exceeds the external recipient rate limit in Exchange Online. The limit applies per tenant.
5.7.236Your message can't be sent because your tenant has exceeded its daily limit for sending email to external recipients from your tenant's onmicrosoft.com domainsYour organization exceeded the limit of sending emails to 100 external recipients from your organization's onmicrosoft.com (MOERA) domain within a 24-hour rolling window. This limit is enforced per tenant.
5.7.321starttls-not-supported: Destination mail server must support TLS to receive mail.DNSSEC checks passed. However, upon establishing the connection, the destination mail server doesn't respond to the STARTTLS command. The destination server responds to the STARTTLS command, but the TLS handshake fails.
5.7.322certificate-expired: Destination mail server's certificate is expired.DNSSEC checks passed. However, upon establishing the connection, the destination mail server provides a certificate that's expired.
5.7.323tlsa-invalid: The domain failed DANE validation.Records are DNSSEC authentic but one or more of the following things occurred: The destination mail server's certificate doesn't match what is expected per the authentic TLSA record. The authentic TLSA record is misconfigured. The destination domain is being attacked. The certificate start date is in the future. Any other DANE failure.
5.7.324dnssec-invalid: Destination domain returned invalid DNSSEC recordsThe destination domain indicated it was DNSSEC authentic but Exchange Online wasn't able to verify it as DNSSEC authentic.
5.7.325certificate-host-mismatch: Remote certificate MUST have a common name or subject alternative name matching the hostname (DANE)This error occurs if the presented certificate identities (CN and SAN) of a destination SMTP target host don't match any of the domains or MX host.
5.7.367Remote server returned not permitted to relayThis error occurs because of SPF or DKIM authentication failures in forwarded or relayed emails. This problem occurs more frequently in mail flows that include non-Microsoft gateways.
5.7.501Access denied, spam abuse detectedThe sending account was banned because of detected spam activity.
5.7.502Access denied, banned senderThe sending account was banned because of detected spam activity.
5.7.503Access denied, banned senderThe sending account was banned because of detected spam activity.
5.7.504[email@contoso.com]: Recipient address rejected: Access deniedThe recipient address that you're trying to contact isn't valid.
5.7.505Access denied, banned recipientThe recipient that you're trying to contact isn't valid.
5.7.506Access Denied, Bad HELOYour server is trying to introduce itself (HELO according to RFC 821) as the server it's trying to connect to, rather than its own fully qualified domain name.
5.7.507Access denied, rejected by recipientThe recipient's organization blocked the IP from which you're trying to send.
5.7.508Access denied, [$SenderIPAddress] has exceeded permitted limits within $range rangeThe sender's IPv6 range tried to send too many messages in too short a time period.
5.7.509Access denied, sending domain [$SenderDomain] does not pass DMARC verification and has a DMARC policy of reject.The sender's domain in the 5322.From address doesn't pass DMARC.
5.7.510Access denied, [contoso.com] does not accept email over IPv6The sender is trying to transmit a message to the recipient over IPv6, but the recipient doesn't accept email messages over IPv6.
5.7.511Access denied, banned senderThe IP that you're trying to send from was banned.
5.7.512Access denied, message must be RFC 5322 section 3.6.2 compliantMessage was sent without a valid "From" email address.
5.7.513Service unavailable, Client host [$ConnectingIP] blocked by $recipientDomain using Customer Block list (AS16012607)The recipient domain added your sending IP address to its custom block list.
5.7.520Access denied, Your organization does not allow external forwarding. Please contact your administrator for further assistance. AS(7555)When Exchange Online detects that a message is forwarded automatically, and an outbound spam filter policy blocks the forwarding activity, the message is restricted and this NDR is sent to the sender.
5.7.606-649Access denied, banned sending IP [IP1.IP2.IP3.IP4]The IP that you're trying to send from was banned.
5.7.703Your message can't be delivered because messages to XXX, YYY are blocked by your organization using Tenant Allow Block List.Someone in your organization sent mail to an email address or domain that's blocked in the Tenant Allow/Block List. The whole message is blocked for all internal and external recipients of the message, even if only one recipient email address or domain is defined in a block entry.
5.7.705 5.7.7085.7.705 Access denied, tenant has exceeded threshold, 5.7.708 Access denied, traffic not accepted from this IPMost of the traffic from this tenant is detected as suspicious. Therefore, a ban is put on the sending ability of the tenant.
5.7.750Service unavailable. Client blocked from sending from unregistered domainsA suspicious number of messages from unprovisioned domains is coming from this tenant.
5.7.800Access denied, banned senderThe EHLO, P1, or P2 sender domain of this message was banned because of detected spam activity.
421 4.3.240The maximum number of concurrent server connections has exceeded a per authenticated source limit, closing transmission channel.The sender opened too many simultaneous authenticated connections to the service, and exceeded the allowed limit of 250.
450 4.4.244The HVE message can't be submitted because the recipient rate limit was exceeded.The sender tried to send many messages to a small number of recipients within a short time window, and caused this submission to be throttled.
535 5.7.142XOAUTH2 authentication failed. Token will expire soon.The OAuth access token that's used for authentication was close to expiration and was rejected. The client must request a new token, and retry authentication.
535 5.7.143XOAUTH2 authentication failed. Expired token.The client tried to authenticate by using an OAuth access token that's already expired.
535 5.7.144XOAUTH2 authentication failed. Invalid API permissions.An invalid token that has the wrong permission is set on the app that's registered to use HVE with OAuth.
550 5.1.241The message can't be delivered because the recipient is an HVE account. HVE accounts do not have associated mailboxes and can only send messages.The recipient address belongs to an HVE account that's designed for sending only, and it can't receive email messages.
550 5.2.240The email account is not set up properly for the HVE service. Contact your administrator.The sending account isn't set up correctly for the HVE service. Therefore, the message submission was rejected.
550.5.2.241The HVE account is not properly set up for billing. Contact your administrator.The HVE account doesn't have a valid billing configuration.
550 5.6.240One of MIME Headers is not allowed.The message contains a MIME header that isn't permitted.
550 5.6.241Mandatory From Header is missing or invalid.The message is missing a valid From header, or the From header is incorrectly formatted.
550 5.7.240The application is not allowed for use with an HVE account. Contact your administrator.The application that's used to send the message isn't authorized for HVE accounts.
550 5.7.241Trial tenant is not able to use HVE. Contact your administrator.The sender is using a trial tenant that isn't supported for HVE.
550 5.7.242Inactive tenant is not able to use HVE. Contact your administrator.The sender is using an inactive tenant that isn't supported for HVE.
550 5.7.243This tenant is blocked from using HVE. Contact your administrator.The tenant is blocked from using HVE.
550 5.7.244Message rejected. External sending is not supported for HVE accounts. This message cannot be delivered to external recipients. Please remove any external recipients and try sending again.HVE accounts can't send messages to external recipients.
550 5.7.245External sending is not supported for HVE accounts. The message can't be delivered to this recipient.HVE accounts can't send messages to external recipients.
550 5.7.246Removed external recipients that were not originally specified on submission.External recipients that weren't explicitly specified in the message (for example, through distribution list expansion) were removed because HVE doesn't support external recipients.

Sources

More Email and M365 tools