Search mail boxes in Exchange 2007

Is it possible to search all mailboxes and stores on the Exchange 2007 server for a particular email from or too any users email?

i.e. I want to see any user who has received an email from

Who is Participating?
Joseph DalyConnect With a Mentor Commented:
Yes you can do this.

Something along the lines of

Get-mailbox * | export-mailbox -senderkeywords "some search term" –targetmailbox Searchmailbox -targetfolder foldername

What this command will do is search all mailboxes for the specified search term. It will then pull a copy of that message into the target mailbox into the folder that you specify.

The command line switches can be found here
The best way to handle this is to use message tracking and add in all servers for your search scope.  You will need to ensure that message tracking was enabled at the time the message was sent.  Check the settings per this article and it also guides you through the use of message tracking.

Part 2 (linked below) explains using the GUI to search for the message:
Imtiaz HashamTechnical Director / IT ConsultantCommented:
You can not see people's mailboxes
Joseph DalyCommented:
Message tracking will work only if the tracking logs are still available. If the message was sent or received after the period for logs it will not help.

The powershell above searches all mail in the mailboxes.

Both could possibly work for you just depends on your situation.
Imtiaz HashamTechnical Director / IT ConsultantCommented:
The log will not show you the email in the mailbox
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.