procmail
[Top] [All Lists]

Re: Procmail Can't Create Logfile

2002-06-07 06:19:20
On Fri, Jun 07, 2002 at 01:10:00AM -0700, Professional Software
Engineering wrote:
At 01:03 2002-06-07 -0400, Derek Battams did say:
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.

Are you positive that the procmail binary which is suit root is the binary 
that is actually being invoked, and that there isn't a different binary 
sitting in some other directory (say, because the distro you're using 
chooses to put things elsewhere)?  /usr/bin vs. /usr/local/bin or somesuch?

{08:57am} [derek(_at_)penguin] (/etc)>whereis procmail
procmail: /usr/bin/procmail /usr/share/man/man1/procmail.1
{08:57am} [derek(_at_)penguin] (/etc)>ls -l /usr/bin/procmail
-rwsr-sr-x    1 root     mail        70324 Jun  7 08:35 /usr/bin/procmail*

What _exactly_ is your LDA configuration in postfix (the procmail 
arguments).  Postfix may not be passing a -d argument and instead be 
invoking it _as_ the user (that shouln't necessarily cause this sort of 
problem, but it'd be useful to know).  IIRC, Postfix does invoke the LDA 
_as_ the user, so if the actual invoked binary isn't suid, you'd be getting 
_exactly_ what you're experiencing now.

From Postfix's main.cf:

mailbox_command = /usr/bin/procmail


As a first test, this is my /etc/procmailrc file:

LOGFILE=/etc/procmail.log
COMSAT=no

It shouldn't really matter here, but who _owns_ /etc/procmailrc, and what 
are the perms on it?

{09:00am} [derek(_at_)penguin] (postfix)>ls -l /etc/procmailrc
-rw-r--r--    1 root     root          102 Jun  7 08:48 /etc/procmailrc
 
When you track this one down, I'd like to know - it'd be a useful test to 
add to procdiag (actually, so would the LDA check for postfix).

I've now even rebuilt an RPM from my distro's (Trustix Secure Linux)
source RPM of v3.15.2 and I get the same results, yet on my production
system the suid procmail binary works as expected.  The only thing I did
to the tar file from procmail.org and to the src RPM was add the
suggested change to src/authenticate.c as suggested here:

http://www.rosat.mpe-garching.mpg.de/mailing-lists/procmail/2002-03/msg00248.html

The one liner is suppose to force procmail to use Maildirs as the
default mailbox for users (which is working according to 'procmail -v').
Other than that I did nothing else to the tar file or the src RPM other
than following appropriate directions for building and installing.

This one's really got me stumped! :-(  Any help at all would be greatly
appreciated.

Thanks,

Derek
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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