Date: Wed, 6 Sep 2000 12:13:25 +0200 From: Hanspeter Roth Bsag <roth@bsag.ch> To: Francesco Casadei <fcasadei@inwind.it> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: procmail diverts mail to daemon's mailbox Message-ID: <20000906121325.A16361@bs11.bsag.ch> In-Reply-To: <20000906112739.A1396@goku.kasby>; from fcasadei@inwind.it on Wed, Sep 06, 2000 at 11:27:39AM %2B0200 References: <20000905211717.A8472@bs11.bsag.ch> <20000906112739.A1396@goku.kasby>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 06, 2000 at 11:27:39AM +0200, Francesco Casadei wrote: > On Tue, Sep 05, 2000 at 09:17:17PM +0200, Hanspeter Roth Bsag wrote: > > Hello, > > > > I've setup a simple .procmailrc for Root: > > > > # .procmailrc > > > > :0 > > /var/mail/root > > > > But all mail for root get's to /var/root/daemon. > > > > What's wrong? > > > > -Hanspeter > > end of the original message > > I'm running qmail and it does not permit to deliver mail directly to > root for security reasons: you must define a user that receive mail Why is it a security issue for root to receive mail? > for root, mailer-daemon and postmaster. The file .procmailrc in /root > is not even read, because the mail is delivered to another user > (daemon in your case). > > I don't know what MTA you're running, but maybe it has the same > (correct) behaviour. I'm still running sendmail. I think /root/.procmailrc is read. But now I've noticed that daemon is the last entry in /etc/passwd with /root as login directory. > > Try to put the following .procmailrc in the home directory of the > user which receive mail for root (e.g. daemon): > > :0 > * ^TO.*root > /var/mail/root > > Remeber to do the following (as root): > > touch /var/mail/root > chown daemon:daemon /var/mail/root > I only did the chown command and it works. Thank you very much. Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000906121325.A16361>