You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Ilan Aisic <il...@pointer.co.il> on 2004/03/17 17:14:49 UTC

Running spamd with --user-config

Hi,
I've just modified SPAMDOPTIONS to run with --user-config and
restarted spamd.  For some reason it ignores my
$HOME/.spamassassin/user_prefs.

I sat the directory to be readonly to all but it's still ingored.
I've attached to spamd with `strace` on my Linux and I can see that it is
not
going to the home dir but rather attempts to open it from the root:

stat64("//.spamassassin/user_prefs", 0x804bd78) = -1 ENOENT (No such file or
directory) 


Any hint how to rectify this?

--ilan


RE: Running spamd with --user-config

Posted by Ilan Aisic <il...@pointer.co.il>.
I continued to debug this and when I ran spamd with -D I realized that it
probably doesn't have the user for some reason.
The log shows that every connection is treated as if coming from user
"nobody". 
My MTA is `exim`.  Perhaps I should change something in its setup.
Any help?

The log segment:
logmsg: connection from localhost.localdomain [127.0.0.1] at port 37526
logmsg: info: setuid to nobody succeeded
debug: read_scoreonly_config: cannot open "//.spamassassin/user_prefs": No
such file or directory
debug: user has changed


> -----Original Message-----
> From: Ilan Aisic [mailto:ilan@pointer.co.il] 
> Sent: Wednesday, March 17, 2004 6:15 PM
> To: spamassassin-users@incubator.apache.org
> Subject: Running spamd with --user-config
> 
> 
> Hi,
> I've just modified SPAMDOPTIONS to run with --user-config and 
> restarted spamd.  For some reason it ignores my 
> $HOME/.spamassassin/user_prefs.
> 
> I sat the directory to be readonly to all but it's still 
> ingored. I've attached to spamd with `strace` on my Linux and 
> I can see that it is not going to the home dir but rather 
> attempts to open it from the root:
> 
> stat64("//.spamassassin/user_prefs", 0x804bd78) = -1 ENOENT 
> (No such file or
> directory) 
> 
> 
> Any hint how to rectify this?
> 
> --ilan
> 
>