Question : Log Incoming Email on abc usr

Dear Sir.

What i am looking for is .I want to setup something like let say my abc user sends some email i want to maintain a complete log for that user like to whom he send an email, and from where he go that email, I want to be maintaining  log for that , i want to maintain  that log in let say /var/sendmaillog

or anytohter location. please help me in this regard thanks.

SK

Answer : Log Incoming Email on abc usr

jlevie's recommendation on libmilter approach would be a more systematic way to go, but if you like "adventure", take a look at logall.c

http://www.netsys.com/library/sendmail/logall.c

The code itself is self-documented.  This is what jlevie's really mean when he mentioned the modification to the sendmail source.  All you need to do is to include the code in conf.c file.  (I hope I read his tought) :)

I have tested it, and it works fine.  Word of warning, output file would grow real fast, and reall big.

regards.
Random Solutions  
 
programming4us programming4us