Forum Discussion

Nitin_Singh's avatar
Nitin_Singh
Copper Contributor
Aug 31, 2022

List of all different emails that are auto forwarded to the mail enabled Public folder address

Hi Can someone help me to know how can i get list of all different emails that are automatically forwarded to the mail enabled public folder address in office365 / ExchangeOnline . Any powershell co...
  • VasilMichev's avatar
    VasilMichev
    Sep 02, 2022
    Covering MEPFs is a bit tricker, as server-side filtering doesn't work. So you can do something like this:

    Get-MailPublicFolder | ? {$_.ForwardingAddress} | select Alias,ForwardingAddress

    For groups, you need to check membership instead. And you might want to cover mail flow rules/inbox rules, if you are unsure of the type of forwarding configured.