Is there an easily configurable way to inject data into IIS 6 SMTP logs?
Posted
by
Lorcan O'Neill
on Server Fault
See other posts from Server Fault
or by Lorcan O'Neill
Published on 2012-04-02T09:58:52Z
Indexed on
2012/04/02
11:33 UTC
Read the original article
Hit count: 241
I am using IIS 6 SMTP server to send out some mail on our behalf. I am also storing each message we send in a SQL table - with a UUID representing each message. I would like to be able to inject additional data into the SMTP logs located in SMTPSVC1 - an additional field which would contain this UUID in the event of a RCPT cs-method call. This is so that I can check a one-to-one relationship between messages sent in SQL and messages actually sent through SMTP.
If possible, I would like to avoid writing a C++ custom logger as some sites I've viewed have suggested.
Is there an easily configurable way to inject this data into IIS 6 logs? Even if it was only the ability to perform a regex on the data/headers of the outgoing email, that would be enough.
Thanks!
© Server Fault or respective owner