Account Security Problems

Find and Remove an Unauthorized Exchange Online Forwarding Rule

Huma Ashraf ChHuma Ashraf Ch Nov 20, 2026 869 views

Question details

Find the source of an unfamiliar forwarding address in an Office 365 alert and remove any unauthorized forwarding.

Find and Remove an Unauthorized Exchange Online Forwarding Rule
Product
Microsoft Exchange Online
Device & OS
not provided
Scenario
An administrator is investigating a forwarding alert for a Microsoft 365 mailbox.
Observed behavior
The unfamiliar address or forwarding rule is not visible in Outlook or the Microsoft 365 admin portal.
Before you start

Identify the affected mailbox and the unfamiliar address from the alert. Use an account with permission to manage Exchange Online mailbox rules and review security activity.

Solution 1Recommended

Inspect and Remove Suspicious Inbox Rules with PowerShell

Use Exchange Online PowerShell to inspect mailbox rules, including hidden rules, when the alert does not match the rules shown in Outlook.

1
Connect to Exchange Online

Open PowerShell, install the module if needed with `Install-Module ExchangeOnlineManagement -Scope CurrentUser`, and run `Connect-ExchangeOnline` to sign in with an authorized administrator account.

2
Inspect mailbox rules

Run `Get-InboxRule -Mailbox user@contoso.com -IncludeHidden | Format-List Name,Identity,Enabled,ForwardTo,RedirectTo,ForwardAsAttachmentTo,Description`, replacing the mailbox address with the affected user. Compare the results with the address in the alert.

3
Remove a confirmed unauthorized rule

After identifying the exact rule, run `Remove-InboxRule -Mailbox user@contoso.com -Identity "Suspicious Rule" -Confirm:$true`, replacing the mailbox and rule name. Review the confirmation prompt before proceeding.

4
Verify the result

Run the `Get-InboxRule` command again and confirm that the unauthorized rule is gone. If no rule matches, continue checking mailbox forwarding and audit activity.

Inspect and Remove Suspicious Inbox Rules with PowerShell
Check for Outlook client-side rules: Using Exchange PowerShell to modify inbox rules can remove client-side Outlook rules. Review the user's rules and the potential impact before making changes.
Free Microsoft Office alternative

Use WPS Office as a Free Alternative for Office Documents

WPS Office is a free, lightweight alternative with a familiar interface for working with Office documents. Its Microsoft Office format compatibility makes it easier to move existing files, although it does not manage or repair Exchange Online forwarding rules.

Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXWork in a familiar interface with a lightweight office suiteUse WPS Writer to document forwarding investigations and account security proceduresMove existing Office documents into a compatible workspace
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I see the forwarding rule in Outlook?

The rule may be hidden, or the alert may refer to a rule that was changed or deleted. Use `Get-InboxRule -Mailbox user@contoso.com -IncludeHidden` to inspect current rules, then review audit activity around the alert time.

What if none of the inbox rules forwards messages?

Check mailbox-level forwarding with `Get-Mailbox -Identity user@contoso.com | Format-List ForwardingAddress,ForwardingSmtpAddress,DeliverToMailboxAndForward`. Also review audit records, sign-in activity, and relevant organization-wide mail flow rules.

Can I remove every rule that looks unfamiliar?

Confirm that a rule is unauthorized before removing it. Inspect its forwarding or redirect actions and consult the mailbox owner where appropriate, then use `Remove-InboxRule` with the correct mailbox and rule identity.

What should I do if the account may be compromised?

Reset the password, revoke active sessions in the Microsoft Entra admin center, review multifactor authentication methods, and investigate sign-in and audit logs. Remove confirmed unauthorized forwarding and verify that it has not returned.