From: Ron Johnson on 5 Mar 2010 12:50 On 2010-03-05 03:57, Camaleón wrote: > On Thu, 04 Mar 2010 16:34:46 -0600, Ron Johnson wrote: >> On 2010-03-04 08:15, Camaleón wrote: > >>> Mmmm, what MTA/POP3/IMAP design are you using? >> fetchmail/postfix/spamassassin/maildrop >> >> $ grep spam /etc/postfix/master.cf >> smtp inet n - n - - \ >> smtpd -o content_filter=spamfilter: >> spamfilter unix - n n - - pipe flags=Rq user=spamfilter \ >> argv=/usr/local/bin/spamfilter.sh \ >> -f ${sender} -- ${recipient} > > Mmmm... are you using spamd/spamc? The spamfilter.sh script runs spamc. $ cat /usr/local/bin/spamfilter.sh #!/bin/bash /usr/bin/spamc | /usr/sbin/sendmail -i "$@" exit $? > I ask because I think spamd/spamc can change its uid to read/write into > the users folders but it seems you are invoking spamfilter as user > "spamfilter" and maybe that user has not the rights to read the users > config files :-? > [snip] > > Try by running "spamassassin -D --lint" and watch the "config: read file" > output lines. > > Look, when I run "spamassassin -D --lint" as the user calling spamd > (sm02) I get: > > *** > [8059] dbg: config: read file /etc/spamassassin/65_debian.cf > [8059] dbg: config: read file /etc/spamassassin/local.cf > [8059] dbg: config: using "/home/sm02/.spamassassin/user_prefs" for user > prefs file > *** > > But when runned as "root" I get: > > *** > [8066] dbg: config: read file /etc/spamassassin/65_debian.cf > [8066] dbg: config: read file /etc/spamassassin/local.cf > *** > > It cannot read the user's config file. > You're right, it looks like SA isn't running from each individual user. me(a)haggis:~$ spamassassin -D --lint 2> SA-debug.output.txt me(a)haggis:~$ grep user_prefs SA-debug.output.txt Mar 5 11:32:48.538 [11220] dbg: config: using \ "/home/me/.spamassassin/user_prefs" for user prefs file Mar 5 11:32:48.538 [11220] dbg: config: read \ file /home/me/.spamassassin/user_prefs root(a)haggis:~# spamassassin -D --lint 2> SA-debug.output.txt root(a)haggis:~# grep user_prefs SA-debug.output.txt root(a)haggis:~# -- Ron Johnson, Jr. Jefferson LA USA "If God had wanted man to play soccer, he wouldn't have given us arms." Mike Ditka -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/4B91426B.4090903(a)cox.net |