From owner-freebsd-questions Wed Sep 6 2:57:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay2.inwind.it (relay2.inwind.it [212.141.53.73]) by hub.freebsd.org (Postfix) with ESMTP id 8112D37B423 for ; Wed, 6 Sep 2000 02:57:35 -0700 (PDT) Received: from [212.141.250.95] (212.141.250.95) by relay2.inwind.it (5.1.046) id 39AF9CE3000460AF for freebsd-questions@FreeBSD.ORG; Wed, 6 Sep 2000 11:57:33 +0200 Received: (qmail 1608 invoked by uid 1000); 6 Sep 2000 09:27:39 -0000 Date: Wed, 6 Sep 2000 11:27:39 +0200 From: Francesco Casadei To: Hanspeter Roth Bsag Cc: freebsd-questions@FreeBSD.ORG Subject: Re: procmail diverts mail to daemon's mailbox Message-ID: <20000906112739.A1396@goku.kasby> Mail-Followup-To: Hanspeter Roth Bsag , freebsd-questions@FreeBSD.ORG References: <20000905211717.A8472@bs11.bsag.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000905211717.A8472@bs11.bsag.ch>; from roth@bsag.ch on Tue, Sep 05, 2000 at 09:17:17PM +0200 X-Operating-System: FreeBSD 4.1-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > 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 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. 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 Francesco Casadei To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message