From owner-freebsd-stable Sun Nov 1 00:47:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA29345 for freebsd-stable-outgoing; Sun, 1 Nov 1998 00:47:09 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from pop.uniserve.com (pop.uniserve.com [204.244.156.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id AAA29337 for ; Sun, 1 Nov 1998 00:47:06 -0800 (PST) (envelope-from tom@uniserve.com) Received: from shell.uniserve.ca [204.244.186.218] by pop.uniserve.com with smtp (Exim 1.82 #4) id 0zZtA3-0002se-00; Sun, 1 Nov 1998 00:46:59 -0800 Date: Sun, 1 Nov 1998 00:46:55 -0800 (PST) From: Tom X-Sender: tom@shell.uniserve.ca To: Morgan Davis cc: freebsd-stable@FreeBSD.ORG Subject: Re: pw touches mailbox file In-Reply-To: <199811010629.WAA23256@io.cts.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 31 Oct 1998, Morgan Davis wrote: > The 'pw useradd' function includes an undocumented feature of creating > a mailbox file in /var/mail. There is no flag for disabling this, nor > is it really necessary since it'll get created by sendmail anyway. > But alas, it's there. Depends. Some local delivery agents run as the id of the user it is delivering to. In this case, the mailbox needs to be created. > Unfortunately, the assumption about /var/mail being the location for > mailboxes is problematic if /usr/libexec/mail.local has been modified > to use an alternate location (e.g., to support Qualcomm Popper's > hashed spool directory feature -- /var/mail/j/s/jsmith). Yes, or even Cyrus which doesn't use bezerk mailboxes at all, or some form that puts the mailbox within every users home directory. > Suggestion: If pw must create a mailbox file, it should provide an > option for specifying where that file is, or at least write through > mail.local to honor any local configuration changes. At the very > least, it should have a flag for disabling mailbox creation > altogether. At best, there should be "create_mailbox.sh" shell script that it should run. If you use a local delivery agent that doesn't need it, the script will be empty. If Cyrus, the appropiate cyradm command can be in there. > --Morgan Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message