A customer asked us the somewhat strange question to make an export off ALL the email addresses their company has ever mailed with.
Not the addresses of their own mailboxes, but all external addresses of their customers, suppliers etc. I guess the tracking logs won't suffice, it won't go back that far.
I need a Powershell command to "scan / search" all mailboxes and all email items. For each email item, the sender and receiver address has to be exported to a file. I am aware that is users have deleted emails, these addresses won't show up in the export since the data is not in the email database anymore.
No problem if it has duplicates, I can filter out duplicates later with some tool. Customer uses Exchange 2007.