From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 02:59:31 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 921A1106564A for ; Fri, 25 Jul 2008 02:59:31 +0000 (UTC) (envelope-from brian@brianwhalen.net) Received: from entwistle.sonicboom.org (entwistle.sonicboom.org [66.93.34.170]) by mx1.freebsd.org (Postfix) with ESMTP id 5E8E38FC14 for ; Fri, 25 Jul 2008 02:59:25 +0000 (UTC) (envelope-from brian@brianwhalen.net) Received: from [192.168.12.103] (dsl093-034-235.snd1.dsl.speakeasy.net [66.93.34.235]) by entwistle.sonicboom.org (8.14.2/8.14.2) with ESMTP id m6P2bj4b044752; Thu, 24 Jul 2008 19:37:45 -0700 (PDT) (envelope-from brian@brianwhalen.net) Message-ID: <48893C71.90505@brianwhalen.net> Date: Thu, 24 Jul 2008 19:37:37 -0700 From: Brian User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: alydiomc@yahoo.com References: <677836.81175.qm@web52201.mail.re2.yahoo.com> In-Reply-To: <677836.81175.qm@web52201.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Spamassasin running as root! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2008 02:59:31 -0000 lyd mc wrote: > Hi guys, > > My maillog complain like this: > > Jul 25 09:40:06 MAIL spamd[67623]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody > > Jul 25 09:40:13 MAIL spamd[67623]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /nonexistent/.spamassassin/auto-whitelist.lock.MAIL.67623 for /nonexistent/.spamassassin/auto-whitelist.lock: No such file or directory > > I google it and found out that i need to run spamd with '-u ' flag. > > >From BSD guide website spamd has a flag of '-u qscand'. However, there is no detail on how the qscand user has been created. > > How to create a user for spamd correctly or securely? > > > > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > What do you have in /etc/rc.conf, I have spamd_enable="YES" spamd_flags="-u spamd -H /var/spool/spamd" In my case, the spamd user got created automagically. Brian