Forum Discussion
Nitin_Singh
Aug 31, 2022Copper Contributor
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...
- Sep 02, 2022Covering 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.
Nitin_Singh
Sep 05, 2022Copper Contributor
Hi Vasil,
It worked and i could export list of PF addresses on which auto forwarding set to other PF mailboxes.
Only thing left is we could not any get any recipient or shared mailboxes or Groups details on which auto forwarding was set to PF mail address through above shared command.
Let me know if this can be also achieved?
TIA
VasilMichev
Sep 05, 2022MVP
Shared mailboxes should be covered by the Get-Mailbox cmdlet above. M365 Groups do not have a "forwarding" attribute, and MEPF cannot be added as members therein, so you can skip them. You can check DG membership and Inbox/mail flow rules.
- Nitin_SinghSep 07, 2022Copper ContributorI was able to fetch list of MEPE on which autoforwarding are setup from backend with your shared command and similarly for mailboxes as well.
Thank you very much for your help VASIL, you are a genius and master of O365 world!!!