From owner-freebsd-questions Sat Sep 22 5:15:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id E1B4F37B406 for ; Sat, 22 Sep 2001 05:15:12 -0700 (PDT) Received: from hades.hell.gr (patr530-a081.otenet.gr [212.205.215.81]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f8MCExn15543; Sat, 22 Sep 2001 15:15:00 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f8MCExH05153; Sat, 22 Sep 2001 15:14:59 +0300 (EEST) (envelope-from charon@labs.gr) Date: Sat, 22 Sep 2001 15:14:58 +0300 From: Giorgos Keramidas To: David Banning Cc: questions@FreeBSD.ORG Subject: Re: procmail setup question Message-ID: <20010922151458.A608@hades.hell.gr> References: <200109210405.f8L459T00576@d.tracker> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200109210405.f8L459T00576@d.tracker> User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-URL: http://labs.gr/~charon/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Banning wrote: > PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:. > MAILDIR=/var/mail # You'd better make sure it exists > DEFAULT=$MAILDIR/david > LOGFILE=$MAILDIR/from > LOCKFILE=$HOME/.lockmail > > :0 > * ^To.*bob@* > bob > > :0 > * ^X-Apparently-To.*davidbanning@* > /usr/david/bsd > > the problem is that the mailbox "bob" has it's ownership > taken over by me, "david". Then bob can't access his mailbox. > I run fetchmail as user "david", which all my default mail > goes to. You will be much better off creating an account for bob, and either letting him pop his own mail, or do something like: :0 H *^To.*bob@ ! bob@localhost This way any mail that is supposed to reach a mailbox readable by bob, will actually do reach such a mailbox. His own :-) > Any mail file created by procmail seems to have it's ownership changed > by the person running fetchmail (which in-turn, runs procmail.) Yes, this is done for a good reason too. Imagine procmail writing on random people's mailboxes. That sounds insecure! Creating a new account and delivering to that account though seems ok [In fact, I do this whole 'deliver once more' trick with procmail all the time to forward some of the lists I'm subscribed to my sister's account. This way it's only me who needs to be subscribed, and we both receive the mail in our own personal mailboxes.] -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message