Microsoft Defender for Office 365
Troubleshooting

Control external email forwarding and fix 5.7.520 errors

In brief

The article was retitled and updated with 5.7.520 troubleshooting keywords. It clarifies the history and current behavior of Automatic - System-controlled forwarding and revises the policy-outcome table.

What Defender admins need to know

Administrators troubleshooting blocked automatic forwarding or 5.7.520 Access Denied errors have clearer guidance on how outbound spam policy and remote domain settings affect message delivery.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Control automatic external email forwarding from cloud mailboxes

You can use outbound spam filter policies to control automatic forwarding to external recipients. Three settings are available:

  • Automatic - System-controlled: This value is the default. This value is now the same as Off - Forwarding is disabled. When this value was originally introduced, it was equivalent to On - Forwarding is enabled. Over time, thanks toIn 2021, the principles of secure by default, the effect of this value was eventually changed to Off - Forwarding is disabled for all customers.new organizations and for existing organizations that weren't actively using the Automatic - System-controlled value. For existing organizations that were already using the value, it can remain equivalent to On - Forwarding is enabled. Because the behavior can differ by organization, configure On - Forwarding is enabled or Off - Forwarding is disabled instead of Automatic - System-controlled. For more information, see automatic email forwarding in Exchange Online.
  • On - Forwarding is enabled: Automatic external forwarding is allowed and not restricted.
  • Off - Forwarding is disabled: Automatic external forwarding is disabled and results in a non-delivery report (also known as an NDR or bounce message) to the sender.
Scenario Result
  • You configure remote domain settings to allow automatic forwarding.
  • Automatic forwarding in the outbound spam filter policy is set to *Off - Forwarding is disabled.
Automatically forwarded messages to recipients in the affected domains are blocked.
  • You configure remote domain settings to allow automatic forwarding.
  • Automatic forwarding in the outbound spam filter policy is set to Automatic - System-controlled.
Automatically forwarded messages to recipients inThe result depends on how Automatic - System-controlled works in your organization. To avoid this ambiguity, configure the affected domains are blocked.

As described earlier,
Automatic - System-controlled used to mean On, but the setting changed over time to mean Off in all organizations.

For absolute clarity, you can configure your
outbound spam filter policy to On - Forwarding is enabled or *Off - Forwarding is disabled.
  • Automatic forwarding in the outbound spam filter policy is set to On - Forwarding is enabled
  • You use mail flow rules or remote domains to block automatically forwarded email.
Automatically forwarded messages to affected recipients are blocked by mail flow rules or remote domains.

You can use this behavior (for example) to allow automatic forwarding in outbound spam filter policies, but use remote domains to control the external domains that users can forward messages to.