[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: root and procmail
- To: Leif Larsson <leif.larsson@l3system.se>
- Subject: Re: root and procmail
- From: Andreas Kahari <ak+openbsd@freeshell.org>
- Date: Wed, 1 Oct 2003 04:56:43 +0100
- Cc: misc@openbsd.org
- Content-Disposition: inline
- Mail-Followup-To: Leif Larsson <leif.larsson@l3system.se>,misc@openbsd.org
- References: <1064949883.2306.14.camel@localhost.localdomain>
- User-Agent: Mutt/1.4.1i
On Tue, Sep 30, 2003 at 09:24:44PM +0200, Leif Larsson wrote:
> Im trying to run a procmail "recipe" as root.
> Problem is, when i mail to root the message ends up in /var/mail/daemon.
> Everyhting works fine if i run the same setup as a normal user.
>
> Im running 3.3 with localhost.cf.
>
> My /root/.forward:
> "|exec /usr/local/bin/procmail -f-"
>
>
> My /root/.procmailrc:
> VERBOSE=yes
> LOGFILE=$MAILDIR/from
>
> :0
> /root/xxx
>
>
> The LOGFILE is not being created.
> Running procmail by hand works (ie echo "hello" | procmail )
> I know that running procmail as root could be a bad thing.
Is there any particular reason you really want root to do this?
Usually, all mail for the root/hostmaster/webmaster (etc.) is
redirected to an ordinary user using mail aliases. See the
/etc/mail/aliases file.
--
Andreas Kähäri
East Anglia, England