What 550 5.0.350 means
Microsoft documents 5.0.350 as 'a generic wrapper that's used by Exchange Online for a wide variety of non-specific errors that are typically returned by the recipient's email organization.' Your Microsoft 365 mailbox handed the message to the recipient's server, that server said no, and Microsoft reported it under this code.
So 5.0.350 on its own tells you almost nothing. Open the bounce and find the 'Diagnostic information for administrators' section: it contains the original reply from the remote server, often with its own code such as 550 5.7.1 or 550 5.1.1. That inner code is the one to look up.
Microsoft names two specific forms. 'x-dg-ref header is too long' comes from Rich Text (TNEF) formatted messages that carry nested attached emails. 'Requested action not taken: policy violation detected (AS345)' means an attachment contains 20 or more embedded files.
What the bounce looks like
The wording providers document for this code. Your bounce may add an IP address, a session ID or a help link after it.
550 5.0.350 x-dg-ref header is too long 550 5.0.350 Requested action not taken: policy violation detected (AS345) Why cold emailers see 550 5.0.350
- The recipient's spam filter or gateway (Mimecast, Proofpoint, Barracuda, a custom server) rejected the message and Microsoft passed on a generic code.
- The recipient's server rejected the address or the domain for its own reasons, which you'll only see in the diagnostic text.
- A message sent from Outlook in Rich Text Format with attached emails ('x-dg-ref header is too long').
- An attachment with 20 or more embedded files (AS345). Rare in cold email, which shouldn't carry attachments at all.
How to fix 550 5.0.350
- Read the 'Diagnostic information for administrators' section of the bounce and look up the inner code with the SMTP error code lookup.
- If the inner reply is a spam or reputation block, treat it like that code: slow down, check that SPF, DKIM and DMARC pass, and remove links and attachments from the first touch.
- For 'x-dg-ref header is too long', switch Outlook to HTML formatting instead of Rich Text and resend.
- For AS345, remove embedded files from the attachment, or better, send a link instead of an attachment.
- If there's no inner reply at all, the problem sits with the recipient's mail system. Reach the person another way rather than resending the same message.
Retry or suppress?
It depends on the inner reply. If the remote server said the address doesn't exist, suppress it. If it was a spam, policy or formatting rejection, keep the contact and fix what was rejected first.
Reading the code
The basic code 550
means "Mailbox unavailable or message refused (permanent)" under RFC 5321. In 5.0.350, the 5 is the class (permanent failure) and the 0 is the subject (other or undefined). The detail number 350 isn't in the RFC 3463 / IANA registry; it's specific to the provider, so the text after the code carries the meaning.
- Class 5
- Permanent failure
- Resending the same message won't work. Something about the message, the recipient or the sender has to change first.
- Subject 0
- Other or undefined
- No more specific category is available.
- Detail 5.0.350
- Provider-specific
Check the rest of your setup
Paste the headers of a message that did get through into the email header analyzer to confirm SPF, DKIM and DMARC pass, and check your domain with the SPF, DKIM & DMARC checker. The deliverability checklist covers the rest of a healthy sending setup.
Got a different bounce? Paste it into the SMTP error code lookup to decode it.