5.7.520 Microsoft bounce: external forwarding blocked
What 5.7.520 means
Exchange Online stopped an automatically forwarded message because an outbound spam filter policy blocks external forwarding for that mailbox. Only the sender's Microsoft 365 administrator can change the policy.
Message text
Access denied, Your organization does not allow external forwarding. Please contact your administrator for further assistance.
Common causes of 5.7.520
- Mailbox has an automatic forwarding rule to an external address
- Outbound spam filter policy blocks automatic external forwarding
How to fix 5.7.520
- Ask the mailbox's Microsoft 365 administrator to review the outbound spam filter policy for automatic external forwarding.
- Until the policy changes, forward important messages by hand instead of with a rule.
Check your domain
Read the headers of a bounced messageRuns in your browser; nothing is uploaded.
Get your domain's deliverability score
Have the full bounce message? Paste it into the bounce code lookup and it will match the code and the provider for you. Open the bounce code lookup.
How to read 5.7.520
The second part, 5.7.520, is an enhanced status code (RFC 3463 §2) written class.subject.detail. Class 5 is a Permanent failure (5xx): the command was rejected and the sender should not repeat it unchanged (RFC 5321 §4.2.1; RFC 3463 §2).. Subject 7 is security or policy: authentication, authorization or policy refused the message. The detail number refines the subject, and providers may define details of their own, which is why one code can read differently at Gmail, Microsoft and Yahoo.
Do not keep resending the same message: a permanent failure repeats until the cause is fixed. Correct the cause, then send a new message.
Official source: learn.microsoft.com. Last verified 2026-10-29.
Related guides
- How to create an SPF record (syntax and examples)
- How DKIM works and how to publish a DKIM record
- How to set up a DMARC record, from p=none to p=reject
Related codes
- 5.7.136 Microsoft: mail user blocks outside
- 550 5.7.1 Microsoft: delivery not authorized
- 550 5.7.1 Microsoft: unable to relay
- 530 5.7.1 Microsoft: not authenticated
- 5.7.23 Microsoft: SPF violation
- 5.7.25 Microsoft: IPv6 needs reverse DNS
FAQ
What does 5.7.520 mean?
Exchange Online stopped an automatically forwarded message because an outbound spam filter policy blocks external forwarding for that mailbox. Only the sender's Microsoft 365 administrator can change the policy. This is a permanent failure.
How do I fix 5.7.520?
Ask the mailbox's Microsoft 365 administrator to review the outbound spam filter policy for automatic external forwarding. Until the policy changes, forward important messages by hand instead of with a rule.
Is 5.7.520 permanent, and should I retry?
5.7.520 is a permanent failure, so retrying the same message will fail again. Fix the cause first, then send a new message.