Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124


Auto-forwarding email rules in Exchange Online can be exploited by attackers to exfiltrate sensitive data. If a compromised account has auto-forwarding enabled, all incoming emails can be silently redirected to an external address, posing a serious security risk. To prevent this, it is essential to block auto-forwarding rules at the organization level.
In this article, we will walk through the steps to prevents auto-forwarding to external domains, enhancing the security of your Microsoft 365 environment.
Attackers often use auto-forwarding as part of their tactics to :
By blocking auto-forwarding, organizations can mitigate the risk of unauthorized data transfer and maintain control over email communications.
To block auto-forwarding, you can create a mail flow rule (also known as a transport rule) in Exchange Online.
Click Save to apply the rule.I – Introduction
Auto-forwarding email rules in Exchange Online can be exploited by attackers to exfiltrate sensitive data. If a compromised account has auto-forwarding enabled, all incoming emails can be silently redirected to an external address, posing a serious security risk. To prevent this, it is essential to block auto-forwarding rules at the organization level.
In this article, we will walk through the steps to prevents auto-forwarding to external domains, enhancing the security of your Microsoft 365 environment.
Attackers often use auto-forwarding as part of their tactics to :
By blocking auto-forwarding, organizations can mitigate the risk of unauthorized data transfer and maintain control over email communications.
To block auto-forwarding, you can create a mail flow rule (also known as a transport rule) in Exchange Online.

Another layer of protection is to disable auto-forwarding at the tenant level using PowerShell.
Connect to Exchange Online PowerShell:
Connect-ExchangeOnline
Disable Auto-Forwarding to External Domains:
Set-RemoteDomain Default -AutoForwardEnabled $false
This ensures that even if users attempt to set up forwarding rules, they will be blocked at the tenant level.





To check for existing forwarding rules, run the following PowerShell command:
Get-Mailbox | Get-InboxRule | Where-Object {$_.ForwardTo -ne $null -or $_.RedirectTo -ne $null} | Select Name, Identity, ForwardTo, RedirectTo
If you find unauthorized forwarding rules, you can remove them manually or automate their removal.
Blocking auto-forwarding rules in Exchange Online is a critical step in preventing data exfiltration and protecting organizational security. By implementing mail flow rules, disabling forwarding at the tenant level, or creating outbound policy, organizations can significantly reduce the risk of unauthorized data leaks.
By taking proactive measures, IT administrators can ensure that sensitive information remains within their control, enhancing the overall security posture of their Microsoft 365 environment.
Stay secure, stay protected 🔒
Thanks