5.7.520: External forwarding is not allowed (Microsoft 365)

At a glance

A 5.7.520 bounce from Microsoft 365 means a mailbox in your organization tried to forward mail automatically to an outside address, and your organization's policy blocks that. The original message was delivered to the mailbox; only the forwarded copy was stopped.

What it means

This is Microsoft's code, not one from the IANA registry. Microsoft's Exchange Online NDR reference describes it as an organization that does not allow external forwarding: Microsoft 365 detected automatic forwarding to an outside recipient, and the outbound policy blocked it.

Organizations block this on purpose. Automatic forwarding is one way mail leaves a company without anyone noticing, for example when an attacker who took over a mailbox adds a forwarding rule.

Common causes

How to fix it

If you are the user:

  1. Remove the forwarding rule, or ask your admin whether forwarding to that address can be allowed.
  2. To reach your mail from elsewhere, use the organization's apps or webmail instead of forwarding.

If you are the admin:

  1. Find the mailbox and the rule or forwarding setting that triggered it.
  2. Confirm the forwarding is wanted and that the account is not compromised. If you did not expect the rule, treat it as a security incident.
  3. If it is wanted, allow it in the outbound spam filter policy for that user or group, and check the remote domain settings for the destination domain.
  4. Keep the policy narrow: allow forwarding only for the people and destinations that need it.
  5. Remember that forwarded mail can fail SPF at the destination; see 5.7.367.

Similar problems

A forwarding setup that sends mail back and forth between two systems ends as a loop, reported as 554 5.4.6. An outside sender refused by an internal-only group or mailbox gets 5.7.133.

What to do with the address

Nothing. The forwarding target address is not the issue, and the original message already reached the mailbox.

See every bounce code in the dictionary.

Many bounces from addresses that do not exist can be avoided: check an address with our free email checker, or clean a whole list before you send.

How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text.

Updated · Maintained by the email-validation.org team