From owner-freebsd-perl@FreeBSD.ORG Fri Mar 10 10:25:25 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 98F7116A420 for ; Fri, 10 Mar 2006 10:25:25 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from relay-er5.mbrd.ru (relay-er5.mbrd.ru [194.117.71.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C03C43D48 for ; Fri, 10 Mar 2006 10:25:24 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from msd.mbrd.ru ([172.16.33.193]) by relay-er5.mbrd.ru with esmtpa (Exim 4.x) id 1FHenV-0004Dh-J3; Fri, 10 Mar 2006 13:24:37 +0300 Message-ID: <441153E5.5040501@FreeBSD.org> Date: Fri, 10 Mar 2006 13:24:37 +0300 From: Sergey Matveychuk User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Igor Roshchin References: <200603021814.k22IEgum095698@trantor.komkon.org> In-Reply-To: <200603021814.k22IEgum095698@trantor.komkon.org> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: perl@FreeBSD.org Subject: Re: p5-Mail-SpamAssassin-3.1.0_6 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: Fri, 10 Mar 2006 10:25:25 -0000 Igor Roshchin wrote: > Hello! > > I am using p5-Mail-SpamAssassin-3.1.0_6 on a 5.4-R system. > It is installed (upgraded) via portupgrade (on February 16). > I've noticed the following (imho incorrect) behavior. > As installed from the ports using portupgrade it is set to run > as a root (not as spamd user). > After previous installation, I changed the file > /usr/local/etc/rc.d/sa-spamd.sh : > > - command_args="-d -r ${pidfile}" > + command_args="-d -r ${pidfile} -u spamd" > > However, the new installation of the port overwrites this file. > > Is there a more elegant way of specifying '-u spamd' ? Turn off an AS_ROOT option. > Why doesn't port installation use -u spamd (--username spamd) > as a default setting even though it is presently a preferred model > for FreeBSD? Because of problems users can meet. I don't remember exactly what kind of. > I believe the initial installation I had (from packages) - does > install this package that it runs as a spamd user. Why does not > the port do so? I think you're mistaken. > Also, even when the spamd is ran as a spamd users as above, > AWL.pm is trying to write the auto-whitelist into the ~root/.spamassassin > directory instead of ~spamd/.spamassassin. > I was able to specify in local.cf: > auto_whitelist_path /var/spool/spamd/.spamassassin/ > but I suspect there is some correct way of dealing with this > so that AWL.pm correctly recognizes the "spamd" username. I think it was one of the reasons for turning AS_ROOT on by default. -- Sem.