Exchange Online mail delivery (NDR)

Exchange Online NDR 550 5.0.350: generic error from the recipient's mail system

NDR 550 5.0.350 is a generic wrapper for errors returned by the recipient's mail organization. Check for the x-dg-ref header or AS345 text in the bounce.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

NDR 550 5.0.350 is a non-delivery report (also called a bounce message or delivery status notification) generated by Exchange Online. Microsoft describes 5.0.350 as a generic wrapper. It is used for a wide variety of non-specific errors, and those errors are typically returned by the recipient's email organization rather than by Exchange Online itself. Because the code is generic, the code alone does not tell you what went wrong. The extra text in the bounce message does.

Microsoft documents two specific situations behind this code. The first is the text "x-dg-ref header is too long". The second is the text "Requested action not taken: policy violation detected (AS345)". If neither text appears in the report, the cause lies with the recipient's mail system and the original error in the report is the main clue.

Common causes

  • The message was sent in Rich Text format from Outlook, it has at least one attachment, and one of the attachments is itself an email message that contains at least one attached email message. The "x-dg-ref header is too long" text appears in the report.
  • The message contains an attachment, for example a Word file, with 20 or more embedded files such as Excel or Word files. The report contains "Requested action not taken: policy violation detected (AS345)".
  • Another error returned by the recipient's email organization that Exchange Online wrapped in 5.0.350. The report does not name a specific known cause.

How to fix it

1. Read the full bounce message

Open the non-delivery report and look for the two texts above. Use the information in the report to decide which case applies. Microsoft's guidance is built around those texts, so this step decides which of the next steps is relevant.

2. Switch Outlook to HTML formatting for the x-dg-ref case

If the report contains "x-dg-ref header is too long", use HTML formatting for messages in Outlook instead of Rich Text Format. Microsoft points to its article on changing the message format to HTML, Rich Text Format, or plain text. Then send the message again.

3. Remove embedded files for the AS345 case

If the report contains "Requested action not taken: policy violation detected (AS345)", remove some embedded files from the attachment. Microsoft explains that this issue occurs when an attachment has 20 or more embedded files. Resend the message with fewer embedded files.

4. Administrators: review TNEF settings

Microsoft explains that in a Rich Text message the attachment's binary large object (BLOB) becomes part of the header stream in the X-MS-TNEF-Correlator header field. If the attachment is large, the header line becomes too long and the receiving server rejects the message. In Exchange Online, administrators can control TNEF settings (also called Transport Neutral Encapsulation Format, Outlook Rich Text Format or Exchange Rich Text Format) in remote domains and in the properties of mail contacts or mail users.

5. Forward the report for other cases

If the report contains neither text, forward the NDR to your admin. The Diagnostic information for administrators section of the bounce message contains the original error from when Microsoft 365 tried to send the message to the external email server or service, and it can help identify the issue. As a general step, contact the recipient by another route and ask their mail administrator to check the original error.

If nothing works

Microsoft states that for other 5.0.350 errors there is typically nothing support can do, because the problem lies with the recipient's email system. Collect the full bounce message, including the diagnostic section, and pass it to the recipient's mail administrator.

What we checked

One official Microsoft Learn page was read on 2026-11-25: the article on NDR error 550 5.0.350 in Exchange Online. It defines 5.0.350 as a generic wrapper, describes the x-dg-ref and AS345 cases, and gives the HTML formatting and embedded file fixes. The error was not reproduced for this page.

Last checked: 2026-11-25.

Official sources

Questions people ask

What does NDR 550 5.0.350 mean?

Microsoft describes 5.0.350 as a generic wrapper used by Exchange Online for a wide variety of non-specific errors that are typically returned by the recipient's email organization. The extra text in the bounce message shows what actually went wrong.

What does "x-dg-ref header is too long" mean?

It is a specific case of 5.0.350. It happens with Rich Text formatted messages that have an attachment, where one attachment is itself an email that contains another attached email. Sending the message in HTML format avoids it.

Can Microsoft support fix other 5.0.350 errors?

Microsoft says there is typically nothing support can do, because the problem lies with the recipient's email system. The original error text in the bounce message is the best lead.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.