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.
VasilMichev
Aug 31, 2022MVP
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"}
Get-Mailbox -Filter {ForwardingSmtpAddress -eq "smtp:email address removed for privacy reasons"}
- Nitin_SinghSep 01, 2022Copper 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
- VasilMichevSep 01, 2022MVPFirst, 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?
- Nitin_SinghSep 02, 2022Copper ContributorI need to find out all objects(mailboxes or Groups or Other mail enabled PF) details either mail address or display name that have auto-forwarding set to the concerned target PF address (mail delivered to testing01 PF address).