Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to get the TO email address in the smtp log on Windows Server 2003 Exchange?

We have about 14,000 email addresses in our databases, and send out about 100 emails a day to customers. A lot of customers go for months or years between orders so we get about a dozen returned mail messages a day, the errors are the usual, no user by that name, no dns record found, mailbox full etc.

I would like to be able to automatically (using php) find the bad emails by parsing the log.

I already know how to try to do this with php so that's not the question.

I have all the fields checked that the log can show, but when I send an email, the log doesn't show the TO address, just the status code, error message, the other servers name, etc.

Is there a way to show this, OR is there another file that I can be looking at?

share|improve this question
up vote 2 down vote accepted

The message tracking logs are probably your best bet because they contain fairly complete information about the message and delivery attempts and are easily parsed text files.

share|improve this answer
Sweet, didn't know about that feature, probably exactly what I need, thanks! – thegaffney Sep 20 '11 at 21:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.