Date: Thu, 3 Aug 2006 10:38:44 -0700 From: Jeremy Chadwick <freebsd@jdc.parodius.com> To: Gianni <jumpyboy@infinito.it> Cc: ports@freebsd.org, perl@freebsd.org Subject: Re: FreeBSD Port: p5-Mail-SpamAssassin-3.1.3 Message-ID: <20060803173844.GB68605@icarus.home.lan> In-Reply-To: <200608031932.51228.jumpyboy@infinito.it> References: <200608030747.38980.jumpyboy@infinito.it> <44D1A638.3030206@FreeBSD.org> <200608031932.51228.jumpyboy@infinito.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 03, 2006 at 07:32:46PM +0200, Gianni wrote: > They are the same. Why suddenly spamassassin decide he cannot do this: > > Aug 3 19:27:12 bastian spamd[46172]: mkdir /nonexistent: Permission denied > at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin.pm line 1486 > Aug 3 19:27:16 bastian spamd[46172]: mkdir /nonexistent: Permission denied > at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin.pm line 1486 > Aug 3 19:27:16 bastian spamd[46172]: locker: safe_lock: cannot create tmp > lockfile /nonexistent/.spamassassin/auto-whitelist.lock.bastian.ksniffer.org.46172 > for /nonexistent/.spamassassin/auto-whitelist.lock: No such file or directory > Aug 3 19:27:16 bastian spamd[46172]: auto-whitelist: open of auto-whitelist > file failed: locker: safe_lock: cannot create tmp > lockfile /nonexistent/.spamassassin/auto-whitelist.lock.bastian.ksniffer.org.46172 > for /nonexistent/.spamassassin/auto-whitelist.lock: No such file or directory > Aug 3 19:27:16 bastian spamd[46172]: bayes: locker: safe_lock: cannot create > tmp lockfile /nonexistent/.spamassassin/bayes.lock.bastian.ksniffer.org.46172 > for /nonexistent/.spamassassin/bayes.lock: No such file or directory > > > If I restart spamassassin and resend the same email, all is ok. Why this > strange way of doing? Is a FreeBSD 6.x problem? Is it a spamassassin port > problem? > Help me, > Giovanni I've seen this problem on our own production machines. It doesn't appear to be a 6.x problem, since we run 4.x. The problem appears to be that the user in question doesn't have a home directory, and thus when SpamAssassin tries to make the bayes DB, the lockfile, etc. etc. it receives an error. The "Permission denied" messages are probably due to some file operations which are being done in SpamAssassin.pm. The problem only happens when the account in question receives mail. The "account" could be one of many things -- you need to figure out which account is receiving mail which your MTA is trying to deliver mail to. On our systems, this has historically been accounts such as proxy, pop, www, nobody (a very common one), and mysql. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060803173844.GB68605>