Date: Fri, 10 Mar 2006 13:24:37 +0300 From: Sergey Matveychuk <sem@FreeBSD.org> To: Igor Roshchin <str@komkon.org> Cc: perl@FreeBSD.org Subject: Re: p5-Mail-SpamAssassin-3.1.0_6 Message-ID: <441153E5.5040501@FreeBSD.org> In-Reply-To: <200603021814.k22IEgum095698@trantor.komkon.org> References: <200603021814.k22IEgum095698@trantor.komkon.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?441153E5.5040501>