[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SpamAssassin not following private whitelist commands



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@haggis:~$ spamassassin -D --lint 2> SA-debug.output.txt
me@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@haggis:~# spamassassin -D --lint 2> SA-debug.output.txt
root@haggis:~# grep user_prefs SA-debug.output.txt
root@haggis:~#

--
Ron Johnson, Jr.
Jefferson LA  USA

"If God had wanted man to play soccer, he wouldn't have given
us arms."  Mike Ditka


Reply to: