procmail
[Top] [All Lists]

Re: LOGGING WITH POSTFIX

2007-10-21 01:38:17
     Running Fedora Core 3, procmail v3.22 and latest postfix

     In /etc/procmailrc is LOGFILE = /var/log/procmail

     Procmail seems to want to run NOT as suid and so lays
down the log as owned by the user of the first mail that comes
in, and won't there after write any logs for anyone else
in the same file.

     Worked fine with sendmail many years ago.

     Pointers to RFTM welcome.

Hi Homer,

   Does your /etc/procmailrc have anything else in it, like a 
   line that says

      DROPPRIVS=yes

   ?  If so, any recipes or actions after that line will be run
   as the user that the message is being delivered to.

   What's more, once privileges are dropped not all log writing is 
   complete, so if your /etc/procmailrc looks like

      LOGFILE="/var/log/procmail"
      VERBOSE=on

      ...

      DROPPRIVS=yes
      OUTPUT=`/usr/local/scripts/coolscript`

   you're probably only going to get logs for the ellipsis in the
   middle there.  If you don't have DROPPRIVS, you'll only get logs
   until a user's .procmailrc is invoked unless they have write 
   privileges to the original log file.

Chris (a sendmail user)

----------------------------------------------------------------------
Christopher Lindsey          Technical Program Manager
National Center for Supercomputing Applications (NCSA)
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>