Search code examples
powershellexchange-serverexchange-server-2010

Powershell Script to get all To and From addresses in Exchange 2010


I am installing a new Barracuda spam appliance this weekend and would like to write a script to look through all of the mailboxes and export the From and To email addresses. From there I plan to parse out the domains and create a base Whitelist for the spam appliance for those domains.

Is this even possible?


Solution

  • Run Get-MessageTrackingLog, and extract the addresses from the Sender and Recipients properties of the log entries