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?
Run Get-MessageTrackingLog, and extract the addresses from the Sender and Recipients properties of the log entries