[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: root and procmail



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