title: Exchange - export all incoming and outgoing email addresses to csv
body: <p>I have a client who wants to mine their MS Exchange data to capture all incoming e-mail addresses (and outgoing).  Outlook isn't an option, and we tried Add a Contact but we need a different solution.</p>
  
  <p>I know we can export all of the mailboxes smtp addresses - but we don't need that.. When a new e-mail comes in to a specific mailbox, we want to harvest it.  Obviously we would only do it for specific users lest we bring the server to it's knees.  </p>
  
  <p><strong>We don't want to use Outlook</strong>.. Rather, we want a server side solution, Powershell etc, that exports to a CSV for post processing purposes. And we don't want this to be a part of any archive process either (unless it doesn't actually complete an archive process - not my rules, the client's..)</p>
  
  <p>Using exchange 2007 - but would rather move to 2010 etc..</p>
  
  <p>Is there any way to export these external addresses via powershell to a csv file on a nightly,  if not weekly basis, for specific or all mailboxes?  (GUI is not an option either)... </p>