michi@anvil.OZ (Michael Henning) (02/16/89)
We have a requirement to selectively log the contents of incoming and outgoing mail for archive purposes. I have had a play with sendmail.cf, and have come up with the following: In the mailer definition for the different mailers, I change the P field to the path name of the logging program. The logging program can then examine the "To:" and "From:" lines in the header to decide whether this particular mail item needs to go into the archive. It then invokes the mailer that originally was mentioned in sendmail.cf, e.g. /usr/bin/uux, sending the message on stdout. This works fine for the local and the uucp/ACSnet mailers because they all expect the mail on stdin. However, for mail that is forwarded by our gateway to other local machines via the ethernet, the mailer specification uses P=[IPC]. From the sparse documentation, it seems that the IPC mailer actually opens a well known port to get the mail, using SMTP. The question is, can anyone tell me how I can examine mail that is sent through the local ethernet for its contents and selectively log it somewhere ? Thanks a lot in advance for any help, Michi. -- | The opinions expressed are my own, not those of my employer. | | | | Michael (Michi) Henning | | - We have three Michaels here, that's why they call me Michi |