Link to home
Start Free TrialLog in
Avatar of Michael C
Michael C

asked on

Auto-forwarding issue on o365

We have a big problem using o365 Exchange.

1. We would like to know any auto-forwarding rule setup by end user themselves on webmail or Outlook
2. We would like to disable their ability setting up auto-forwarding, and only admin staff can do it on server side to prevent data leakage.
3. Is it possible to disable end user using powershell connecting to the o365 changing their mailbox configuration? and only admin account can do for all.
Avatar of Adam Brown
Adam Brown
Flag of United States of America image

https://blogs.technet.microsoft.com/exchange/2017/12/22/the-many-ways-to-block-automatic-email-forwarding-in-exchange-online/ Has a blog post from MS that covers the ways you can block forwarding. The method you'll want to look at is the RBAC method, though it has limitations. You may want to combine it with the Transport rule method.

To determine which users have forwarding configured, run the following (When prompted for credentials, use an O365 admin account):

$credential = get-credential
$ExchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $credential -Authentication "Basic" -AllowRedirection
Import-PSSession $ExchangeSession

get-mailbox | where {!($_.forwardingsmtpaddress -eq $null) -or !($_.forwardingaddress -eq $null)} | select name

Open in new window

Avatar of Michael C
Michael C

ASKER

Hi Adam

I am quite confusing that there are three place to setup auto-forwarding. One is on Outlook by rule, one is on o365 Webmail, and one is on admin portal server side.

My case is when the user setups on webmail, the Outlook cannot be found, and vice versa.

In your link, which part we should do if we only block OUTLOOK & WEBMAIL, but allow administrator to do it on admin portal?

Thanks a lot....
ASKER CERTIFIED SOLUTION
Avatar of marcus
marcus
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial