[Mimedefang] Mimedefang/logwatch interaction

Jim McCullars jim at info.uah.edu
Tue Feb 20 15:15:11 EST 2007



On Tue, 20 Feb 2007, Philip Prindeville wrote:

> Can anyone think of any other methods to detect messages queued
> locally rather than accepted over a socket?  I.e. messages read
> from stdin?

   I think that if sendmaill is invoked via a command line and the message
read from STDIN, MIMEDefang will not see it at all.  It will use submit.cf
rather than sendmail.cf and submit.cf does not have a milter call.  MD
won't see it until it connects locally via a socket to deliver and by then
you have lost the fact that it was originally submitted by a program.

   You can either scan the headers and look for something like:

Received: (from user at localhost)
        by foo.domain.com (8.13.6/8.13.6/Submit) id l1KJwRrX018411

(note the "/Submit" in the version number)

or just assume that anything generated locally is OK and put this in
filter_relay:

   if ($ip eq "127.0.0.1") {
     return ('ACCEPT_AND_NO_MORE_FILTERING', "ok")
   }


   HTH...

Jim McCullars
University of Alabama in Huntsville





More information about the MIMEDefang mailing list