0 XP

External forwarding and 5.7.520

Who controls external forwarding

Automatic forwarding to external addresses is controlled by the outbound spam filter policy, documented with Microsoft Defender for Office 365. It covers both user Inbox rules and admin mailbox (SMTP) forwarding such as ForwardingSmtpAddress. Its setting (AutoForwardingMode) has three values:

  • Automatic - System-controlled: the default. Since 2021 it has meant Off for new organizations and for existing ones that weren't actively forwarding.
  • On.
  • Off: the recommended value.

Microsoft advises setting On or Off explicitly rather than leaving Automatic. Internal forwarding isn't affected by any of these values.

The NDR

A blocked forward returns 5.7.520 Access denied, Your organization does not allow external forwarding, with AS(7555). It is an NDR, not a quarantine and not a silent drop. Don't confuse it with:

  • 5.7.68: Reject Direct Send.
  • 5.7.236: the onmicrosoft.com domain limit of 100 external recipients a day.
  • 5.3.4: headers too large.

Remote domains and mail flow rules

Remote domains (EAC: Mail flow > Remote domains; Set-RemoteDomain) also have an automatic forwarding setting, allowed by default. Turning it off for a remote domain blocks Inbox-rule and Outlook on the web forwarding. It does not block admin-configured mailbox forwarding (ForwardingSmtpAddress) or mail flow rule forwarding.

When the remote domain, mail flow rules and the outbound spam policy disagree, "the block typically wins".

Finding who forwards

The Auto forwarded messages report shows which users forward mail. On-premises users who forward through Exchange Online can be tracked with a mail flow rule that matches the header X-MS-Exchange-Inbox-Rules-Loop.

Check order for a forwarding complaint

  • Is the destination external? Internal failures are not this policy.
  • Did the user get 5.7.520? Then the outbound spam policy blocked it.
  • Is it admin forwarding? The policy still applies, even though remote domains don't block it.

Knowledge check

6 questions on what you just read. Each answer shows the full explanation and its source.

Loading…