Forum Discussion
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 command or process, please let me know.
Thank you in advance.
Regards,
Nitin Singh
- 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.
- The fastest way would be to use a filter based on the PF address, for example:
Get-Mailbox -Filter {ForwardingSmtpAddress -eq "smtp:email address removed for privacy reasons"}- Nitin_SinghCopper Contributor
VasilMichev First of all its an honor to get response from you as many times your replies and shared answers on multiple forum in past have helped me.
I tried your above suggestion but it does not give me any result as seen in below snip.
I have set forwarding on test-migration mail enabled PF to email address testing01 PF address and as per command i ran in snip , i should get result of test-migration PF details in ideal scenario but it finishes without any output result. please advise if i am doing anything wrong or need to modify command again.
TIA
- First, let me check if I understand the query here correctly, are you looking to find out all objects that have some sort of forwarding set to the PF? Or do you want to list individual messages forwarded to the address?