Here's where I am now... if I simply install the RPM or tarball as is
(with no Maildir support such that the default mailbox as reported by
'procmail -v' is /var/spool/mail/<user>) then procmail runs suid root as
expected. However, when I add the single line:
#define MAILSPOOLHOME "/Maildir/"
to src/authenticate.c as suggested by:
http://www.rosat.mpe-garching.mpg.de/mailing-lists/procmail/2002-03/msg00248.html
and rebuild the RPM or the tarball (from procmail.org) then install it
procmail does not appear to run suid root (but the desired result of the user's
default mailbox as reported by 'procmail -v' being /home/<user>/Maildir/ is
correct). This leads me to believe that procmail is dropping root privs
early for some reason. Any idea as to what would make that happen?
Help appreciated,
Derek
On Fri, Jun 07, 2002 at 01:03:43AM -0400, Derek Battams wrote:
I just installed procmail 3.15.2 from the source tar file. I then setup
postfix to use procmail as the LDA. Everything seemed fine except that I
can't create a log file. As a first test, this is my /etc/procmailrc
file:
LOGFILE=/etc/procmail.log
COMSAT=no
So then I sent a mail to my regular user account and it delivers the
mail just fine, but it will not create the log file and in the maillog
file I get this error:
Error while writing to "/etc/procmail.log"
If I change the directory to /tmp then it creates the file, but it does
so with the recipient as the owner of the file, not root as expected.
Which is why it is unable to create the logfile in /etc.
Doesn't the /etc/procmailrc file get run as root? Why would procmail be
trying to create this log as the recipient? The procmail executable is set
suid root:
-rwsr-xr-x 1 root root 67476 Jun 6 23:38 procmail
Why is it trying to create the logfile as the recipient instead of root?
Help appreciated,
Derek
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail