What user are you running spamd as? If you are running it as root (so that users can control their options themselves) then you'll need to do 2 things.
1. create the .spamassassin directory for root so that it can lock files etc (I'm actually not totally sure this is nessessary but I did it anyway) 2. Add DROPPRIVS=yes to your procmailrc so that it changes priviledges when it runs spamc through the pipe. Otherwise you are running spamc as root (which you don't want to do and it won't let you) so it's doing a fall back. If you don't want to run spamd as root. Sounds like you don't b/c this is a gateway box, then you need to run it as a different user and create the .spamassassin directory for that user. Then you'll need to run spamc with the -f [user] flag (I think double check me on that) so that it runs as the user your are specifing. (that being the one that spamd runs as) C Gilles Nedostoupof wrote: > Hi all, > > I'm just setting up a production box where SA is installed to filter all > incoming mail. > My configuration follow : > > I'm using Postfix on RedHat 7.2 to receive all incoming mails for my domain, > the RedHat box is used as a gateway server; there is no user account on it, > I'm using the aliases file from postfix to forward the incoming mail to an > exchange server. This is a site-wide configuration. > > /etc/postfix/aliases > test: "| procmail -a \"user@exchange\"" > > /etc/procmailrc I've set up the following : > VERBOSE=yes > DEBUG=on > > MAILDIR=/spamassassin > LOGFILE=/spamassassin/sa.log > > :0fw > | spamc > > :0 > * ^X-Spam-Status: Yes > /spamassassin/spam > > :0 > ! $1 > > If I disable the procmail filtering, all is working good the mail is > delivered. > > I'm launching spamd by hand to debug it : spamd -c -x -a -D > > Now when I try to send a mail to [EMAIL PROTECTED], the mail is passing > through the smtp, then procmail make the rest... Spamc is connecting to > spamd but before the end of the tests I've this error message in the spamd > stdout debug : " Cannot create tmp lockfile > //.spamassassin/auto-whitelist.lock : No such file or directory " (Where did > it take this // directory???) > > At the start of the deamon I've also theses messages (where the paths are > correct) : " > Debug: 15085 Trying to get lock on /root/.spamassassin/auto-whitelist pass 0 > Debug: Tie-ing to DB file R/W in /root/.spamassassin/auto-whitelist > > In the /var/log/mail/info the only errors that I can see : (Is it fixable?) > Apr 9 15:21:28 gateway spamd[15104]: Still running as root: user not > specified, not found, or set to root. Fall back to nobody. > > In definitive, the mail is delivered but when you look at the header's mail > there is no trace of SpamAssassin. > > I've the same configuration on a Mandrake 8.1 box and there all is working > good, I've checked the diffs between the two and I found nothing. > > Has someone have an idea about this problem? I find nothing anywhere :( > > Thanks a lot! > > Gilles. > > _______________________________________________ > Spamassassin-talk mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/spamassassin-talk > > _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk