Search accoss all mailboxs in Exchange 2007

Posted on 2011-03-25
Last Modified: 2013-01-03
We have a single server Exchange 2007 setup. We need to search all stores / mailboxes for any emails sent to or recived from a particualr person (external email address), we then need to extract all the emails (not delete) and move to an Admin mailbox (or some other place) to be reviewed for legal reasons. Is this possible and how? Details instruction please.
Question by:ITInterConnect
  • 3
LVL 39

Expert Comment

by:Adam Brown
ID: 35219563
This is pretty tricky without third party software or journalling. If you were utilizing a Journalling account, this would be easy, since journalling allows you to send a copy of all emails to a specific user account as they are received (You may want to get this set up for the future, but there are some legal issues that can come up, so be careful about it).

If you don't have journalling already, the best way I can think of doing it is to run the Message Tracking utility in the toolbox to figure out which users received messages from the person in question (Your tracking logs may need to go back pretty far for this to work right). Once you have the users that received mail from the individual, the only way to pull them out, realistically, is to access their Exchange Mailbox through OWA or Outlook, find the email, and forward it from there.

Accepted Solution

OctInv earned 500 total points
ID: 35220375
You can achieve this by using Exchange Management Shell cmlts:

get-mailbox -server NameofMailboxServer | export-mailbox -TargetMailbox "NameofMailboxtoImportInto" -targetFolder exportedmail -SenderKeyWords ""

Expert Comment

ID: 35220384
The above command will search for mail sent from a person, if you also want to search for messages sent to that person it is a simple change:

get-mailbox -server NameofMailboxServer | export-mailbox -TargetMailbox "NameofMailboxtoImportInto" -targetFolder exportedmail -RecipientKeyWords ""

Assisted Solution

OctInv earned 500 total points
ID: 35220411
And even narrow it down with keyword searches within the messages from that user:

get-mailbox -server NameofMailboxServer | export-mailbox -TargetMailbox "NameofMailboxtoImportInto" -targetFolder exportedmail -SenderKeyWords "" -AllContentKeyWords ("word1","word2","word3")

Powershell is your best friend when it comes to managing Exchange 2007 upwards.

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question