How does Microsoft classify errors (5.1.0, 5.2.2, 5.7.1)?

Still have a question, spotted an error, or have a better explanation or a source we should cite?

Your email just bounced back from a Microsoft address with a code like 5.7.1 or 5.2.2 and you're trying to figure out what it actually means. Good news: Microsoft's error codes follow a consistent pattern once you know how to read them.

Every code has three parts. The first digit is 5 for a permanent failure or 4 for a temporary one that is worth retrying. The second digit tells you the category. The third digit (and any extra digits) gets more specific about what went wrong.

Here's what each category covers:

5.1.x. Address problems

  • 5.1.0: Generic address failure. Microsoft says the recipient address is badly formatted or could not be found. Check it, and suppress it if it is wrong.
  • 5.1.1: The destination mailbox doesn't exist. This is your classic hard bounce. Remove this address from your list.
  • 5.1.8: Bad outbound sender. Microsoft blocked your own account from sending because it sent too much spam, usually after being hacked. Secure the account. This is about your account, not the recipient.
  • 5.1.10: Recipient not found. Similar to 5.1.1 but often seen when the domain exists and the mailbox simply doesn't.
  • 5.4.1: At Microsoft 365, "Recipient address rejected: Access denied" means the address doesn't exist at that company. Remove it, the same as 5.1.1. If the text says "Relay Access Denied" instead, their server doesn't take mail for that domain, a setup fault at their end.

5.2.x. Mailbox problems

  • 5.2.1: The mailbox exists but it's disabled or not accepting messages right now.
  • 5.2.2: The mailbox is full. This is a soft bounce situation. You can retry, but if it stays full, eventually you should suppress it. If you send from Microsoft 365 and 5.2.2 comes back on your own outgoing mail, it means something else. You hit your own sending limit.
  • 5.2.121: You've hit the recipient's per-hour message limit. You're sending too many emails to this one address in a short window.

5.7.x. Security and permissions

  • 5.7.1: Delivery not authorized. This is Microsoft's catch-all block code. It can mean your IP is blocked, your domain has a bad reputation, or your authentication is failing. It can also mean the recipient is a group that does not take your mail, or that you were not allowed to relay. It is you who is refused, not the address, so do not suppress on 5.7.1 alone.
  • 5.7.12, 5.7.124 and 5.7.133: The address is a group or a mailbox that only takes mail from inside the company or from approved senders. You can't fix this. Remove it from marketing sends.
  • 5.7.13 or 5.7.135: At Microsoft 365, the address is a public folder that only takes mail from inside its company. Remove it from marketing sends.
  • 5.7.23: SPF failed. Your sending server is not in your domain's SPF record. Add your sending service to the record.
  • 5.7.509: DMARC validation failure. Your message failed the DMARC check at Outlook. Check your SPF, DKIM, and DMARC alignment before resending anything.
  • 5.7.511: Your sending IP was banned. Email delist@microsoft.com with the full bounce message and your IP.
  • 5.7.513: The recipient's company put your IP on its own block list. Only that company can lift it, so contact them. Don't suppress the whole domain blindly.
  • 5.7.606: Your sending IP is on a banned list. You'll need to go through Microsoft's delisting process.
  • 5.7.708: Microsoft isn't accepting traffic from this IP, because most of the mail from that Microsoft 365 account looked suspicious. You only see it when you send out of Microsoft 365. Check for a hacked account or an open relay, then contact Microsoft support.
  • 5.7.750: You're sending from a domain that isn't registered in your Microsoft 365 account. Add and verify every domain you send from.

Other Microsoft 365 codes

  • 5.0.350: A catch-all error from the recipient's company. It can mean many things. Read the text after the code.
  • 5.4.6 or 5.4.14: Routing loop. The mail went round in circles between servers. Microsoft says a setup fault on the sending side, the receiving side or both causes it, often an automatic forwarding rule. Gmail uses 554 5.4.6 when a message passes through more than 50 servers. If it keeps happening for one address, suppress it.
  • 5.6.11: Invalid characters. The message contains bare line feed characters, a coding fault in the email. Fix the template or your sending code.

Temporary Microsoft codes

  • 4.3.2: The person's mailbox is getting too many messages too fast, so Microsoft is pacing it. Not about your reputation. Your sender retries.
  • 4.4.316: Connection refused. Let your sender retry. If it never clears, the domain may be dead.
  • 4.7.500-699 and 4.7.850-899: Microsoft saw suspicious activity and is holding your mail for now. Let your sender retry. It usually lifts on its own.

If you're seeing 5.7.x codes in volume, that's the most urgent category. Address problems (5.1.x) usually just mean a bad list. Mailbox problems (5.2.x) are often temporary. But security blocks from Microsoft can affect your entire sending stream if you don't catch them early.

Now if 5.7.509 is showing up, run your domain through our free DMARC parser to check what's in your record, and follow up with the SPF checker to make sure your sending domains are aligned. If you're stuck on a 5.7.606 or 5.7.708 and need help working through a Microsoft delisting, the SOS hotline is free.

The Email Almanac Field Notes: the most useful email questions, once a month

One email a month. New questions worth reading, real deliverability changes (Gmail and Outlook updates, etc.), and any tool or report that landed since the last issue. No fluff, no upsell.

Contributors

Who worked on this answer

Every name links to their profile. Every company links to their site. Real people, real accountability.

Ask an AI · tailored to your setup

Decode my Microsoft bounce code

I'm getting a Microsoft bounce error code from emails sent to Outlook or Microsoft 365. Based on what I paste below, can you tell me which category it falls into (address, mailbox, or security), what's most likely causing it, and what my next step should be? Here's the bounce message: paste your full bounce message or error code here

Edit the yellow boxes, then send to the AI of your choice.