You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by jp...@codemist.co.uk on 2005/09/23 11:26:15 UTC

Oddities since change to 3.1

I am getting

Sep 21 09:34:20 snout spamd[28958]: mkdir /nonexistent: Permission denied at /usr/local/share/perl/5.8.4/Mail/SpamAssassin.pm line 1467 
Sep 21 09:34:20 snout spamd[28958]: locker: safe_lock: cannot create tmp lockfile /nonexistent/.spamassassin/auto-whitelist.lock.snout.codemist.co.uk.28958 for /nonexistent/.spamassassin/auto-whitelist.lock: No such file or directory 
Sep 21 09:34:20 snout spamd[28958]: Can't call method "finish" on an undefined value at /usr/local/share/perl/5.8.4/Mail/SpamAssassin/Plugin/AWL.pm line 397. 

This was installed from source like all previous versions of SA, and
this is the first time I have had problems.  I tried to look at teh
UPGRADE file and it did not seem to make much sense to me.

==John ffitch

Re: Oddities since change to 3.1

Posted by John Andersen <js...@pen.homeip.net>.
On Friday 23 September 2005 11:28 pm, jpff@codemist.co.uk wrote:
> I do have a -u to a sensible user and had before with 3.0.  It it just not
> working.  ps ax says
>
> 18741 ?        Ss     0:07 /usr/bin/spamd --max-children 5
> --helper-home-dir -u Debian-exim

You previously said :
"My problem is that I did not change anything from the 3.0.2 setup and
now the system does not work as it did.  The .spamassassin file is in
/root and always has been.  The question is how to make it work again."


Now you tell us that you run SA as user Debian-exim.

Does Debian-exim have root equivelence?  
If so, why not just run as root?  (asked in jest) 
If not, how could it ever have worked as you suggest?






-- 
_____________________________________
John Andersen

Re: Oddities since change to 3.1

Posted by jp...@codemist.co.uk.
I do have a -u to a sensible user and had before with 3.0.  It it just not
working.  ps ax says

18741 ?        Ss     0:07 /usr/bin/spamd --max-children 5 --helper-home-dir -u Debian-exim

==John ffitch
>>>>> "Matt" == Matt Kettler <mk...@evi-inc.com> writes:

 Matt> If you're not doing per-user configs, create yourself a spamd user, and pass
 Matt> that to spamd's -u, then use that user for your sa-learning, and housing your
 Matt> user_prefs, etc.


Re: Oddities since change to 3.1

Posted by Matt Kettler <mk...@evi-inc.com>.
jpff@codemist.co.uk wrote:
> Indeed nobody have /nonexistent as home directory
> 
> My problem is that I did not change anything from the 3.0.2 setup and
> now the system does not work as it did.  The .spamassassin file is in
> /root and always has been.  The question is how to make it work again.

That would have been a bug in SA 3.0.2, because you aren't supposed to be able
to do that.

Spamd should *never* read configfiles from root's homedir. There have been great
lengths taken to make sure it won't, but apparently some of that protection
failed at some point.

This has been an intentional feature since SA 2.31:

http://bugzilla.spamassassin.org/show_bug.cgi?id=547

The docs were even updated in 3.0.3 to be updated to specify you can't use root
when doing spamd -u:
http://bugzilla.spamassassin.org/show_bug.cgi?id=3952


If you're not doing per-user configs, create yourself a spamd user, and pass
that to spamd's -u, then use that user for your sa-learning, and housing your
user_prefs, etc.

Re: Oddities since change to 3.1

Posted by jp...@codemist.co.uk.
Indeed nobody have /nonexistent as home directory

My problem is that I did not change anything from the 3.0.2 setup and
now the system does not work as it did.  The .spamassassin file is in
/root and always has been.  The question is how to make it work again.
==John ffitch

Re: Oddities since change to 3.1

Posted by Matt Kettler <mk...@evi-inc.com>.
jpff@codemist.co.uk wrote:
> I am getting
> 
> Sep 21 09:34:20 snout spamd[28958]: mkdir /nonexistent: Permission denied at /usr/local/share/perl/5.8.4/Mail/SpamAssassin.pm line 1467 
> Sep 21 09:34:20 snout spamd[28958]: locker: safe_lock: cannot create tmp lockfile /nonexistent/.spamassassin/auto-whitelist.lock.snout.codemist.co.uk.28958 for /nonexistent/.spamassassin/auto-whitelist.lock: No such file or directory 
> Sep 21 09:34:20 snout spamd[28958]: Can't call method "finish" on an undefined value at /usr/local/share/perl/5.8.4/Mail/SpamAssassin/Plugin/AWL.pm line 397. 
> 
> This was installed from source like all previous versions of SA, and
> this is the first time I have had problems.  I tried to look at teh
> UPGRADE file and it did not seem to make much sense to me

Do you pass a -u parameter to spamc or spamd?
If not, do you call spamc as root? If so, spamd will scan mail as "nobody" for
safety.

Is nobody's home directory set to /nonexistent?