From owner-freebsd-questions Wed Sep 6 3:13:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns.bsag.ch (ns.bsag.ch [195.246.88.210]) by hub.freebsd.org (Postfix) with ESMTP id D2DC737B422 for ; Wed, 6 Sep 2000 03:13:33 -0700 (PDT) Received: (from hpr@localhost) by ns.bsag.ch (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id MAA16483; Wed, 6 Sep 2000 12:13:26 +0200 Date: Wed, 6 Sep 2000 12:13:25 +0200 From: Hanspeter Roth Bsag To: Francesco Casadei Cc: freebsd-questions@FreeBSD.ORG Subject: Re: procmail diverts mail to daemon's mailbox Message-ID: <20000906121325.A16361@bs11.bsag.ch> References: <20000905211717.A8472@bs11.bsag.ch> <20000906112739.A1396@goku.kasby> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000906112739.A1396@goku.kasby>; from fcasadei@inwind.it on Wed, Sep 06, 2000 at 11:27:39AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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