From owner-freebsd-perl@FreeBSD.ORG Thu Aug 3 17:38:47 2006 Return-Path: X-Original-To: perl@freebsd.org Delivered-To: freebsd-perl@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8DBE16A4E1; Thu, 3 Aug 2006 17:38:47 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [63.240.77.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89F5E43D45; Thu, 3 Aug 2006 17:38:46 +0000 (GMT) (envelope-from jdc@koitsu.dyndns.org) Received: from icarus.home.lan (c-24-6-181-195.hsd1.ca.comcast.net[24.6.181.195]) by comcast.net (sccrmhc13) with ESMTP id <2006080317384501300a6fk4e>; Thu, 3 Aug 2006 17:38:45 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 8DB6F5C03F; Thu, 3 Aug 2006 10:38:44 -0700 (PDT) Date: Thu, 3 Aug 2006 10:38:44 -0700 From: Jeremy Chadwick To: Gianni Message-ID: <20060803173844.GB68605@icarus.home.lan> Mail-Followup-To: Gianni , Sergey Matveychuk , ports@freebsd.org, perl@freebsd.org References: <200608030747.38980.jumpyboy@infinito.it> <44D1A638.3030206@FreeBSD.org> <200608031932.51228.jumpyboy@infinito.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608031932.51228.jumpyboy@infinito.it> X-PGP-Key: http://jdc.parodius.com/pubkey.asc User-Agent: Mutt/1.5.11 Cc: ports@freebsd.org, perl@freebsd.org Subject: Re: FreeBSD Port: p5-Mail-SpamAssassin-3.1.3 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 17:38:48 -0000 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 |