Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Nov 1998 00:46:55 -0800 (PST)
From:      Tom <tom@uniserve.com>
To:        Morgan Davis <mdavis@cts.com>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: pw touches mailbox file
Message-ID:  <Pine.BSF.4.02A.9811010043430.12025-100000@shell.uniserve.ca>
In-Reply-To: <199811010629.WAA23256@io.cts.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9811010043430.12025-100000>