Whats is the best way to track if users are sending emails to a particular external domain?

We are running exchange 2013 and need to have a way to search to see if certain users are sending emails to a particular external domain.
is there a way via exchange to accomplish this?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zaheer IqbalTechnical Assurance & ImplementationCommented:
Ajit SinghCommented:
Searching Message Tracking Logs by Sender or Recipient Email Address:

Not sure but check cmdlet something like this:

Get-MessageTrackingLog -resultsize unlimited |where-object {$_.Recipients -like “*@domain.com” -AND $_.EventId -eq “Send”} |ft -auto >>C:\External mails.txt

Open in new window

Hope this helps!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
vmichAuthor Commented:
Is there a way in this command to add a particular external domain to search just like there is for just one user?
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

vmichAuthor Commented:
Sorry about that I see it in the info now how to add the domain..
Zaheer IqbalTechnical Assurance & ImplementationCommented:
Get-MessageTrackingLog -Recipients *@gmail.com
vmichAuthor Commented:
search message tracking
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

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.