----- Original Message -----
From: "Kris Deugau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 07, 2004 5:02 PM
Subject: Re: sa-stats -u only showing root
> John Fleming wrote:
> > I guess I'm running spamc/spamd as root as judged by other entries in
> > the mail log. However, I've always done it this way, and on my
> > previous Fedora distro (now Debian), my sa-stats user breakdown
> > always worked as expected. Thus I don't know if the present problem
> > is related to running spamc/spamd as root or something else.
>
> How are you calling spamc? You may have to change your setup a little
> to include explicit reference to the real destination user:
>
> spamc -u {user}
>
> where {user} is a variable of some kind filled in by the caller.
I'm calling spamc from procmail, e.g. | /usr/bin/procmail
Unless there's something specific to Debian vs Fedora in this regard, I
didn't have to specify a user for it to work as expected in Fedora.
> Where you get the information, and how you fill it in, depends on your
> specific setup.
>
> > Jul 7 15:03:53 Luke spamd[9239]: info: setuid to root succeeded
> > Jul 7 15:03:53 Luke spamd[9239]: Still running as root: user not
> > specified with -u, not found, or set to root. Fall back to nobody.
>
> These two entries are the critical ones. spamd isn't properly dropping
> permissions to the appropriate user for some reason.
>
> So far as spamd is concerned, the message is destined for root.
Yeah, Postfix remembers where it's headed and delivers to the correct user
mailbox, but spamd isn't logging user-specific information - just logging
everything as root. I'm calling spamc from /etc/procmailrc, ie doing
site-wide procmail. I suppose I could call spamc from each user's
procmailrc instead and use the -u option if necessary. I just didn't have
to do it that way before, so don't understand why now exactly. Thanks -
John