How to verify and manually turn off forwarding that is set via On Demand Migration for Email (ODME).
To verify the current status of the mail forwarding, use this Exchange PowerShell commandlet:
Get-Mailbox Identity <firstname.lastname@example.org> | Ft ForwardingSMTPAddress
This is the command that is performed to set forwarding based on your selection within ODME when running a migration.
Set-Mailbox -Identity <email@example.com> -DeliverToMailboxAndForward $false -ForwardingSMTPAddress firstname.lastname@example.org
The following command can be used to manually remove the forwarding task that ODME performs:
Set-Mailbox -Identity <email@example.com> -DeliverToMailboxAndForward $false -ForwardingSMTPAddress $null