Search code examples
sql-serversql-server-2008exchange-serverexchange-server-2010

Exchange 2010 message tracking log to database


I have Exchange 2010 running and i need to track all the emails. I have made a program to get emails from Exchange and do what i need, but the problem is, that if user deletes email or moves it to archive, i can't access it.
Is there a way to make Exchange to write message tracking log to database? Or at least a way to launch program when email is received?


Solution

  • Is good that you wrote an application to do this, but you shouldn't had. Exchange already has Mailbox Audit Logging features and that what you should use, see Understanding Mailbox Audit Logging. You can configure Journaling which automatically records all incomming and outgoing mails. This is a complex topic and rather than re-invent the wheel, I recommend reading about what is already available.