From owner-freebsd-questions Mon Jul 8 04:03:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA25370 for questions-outgoing; Mon, 8 Jul 1996 04:03:26 -0700 (PDT) Received: from hustle.rahul.net (hustle.rahul.net [192.160.13.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id EAA25356 for ; Mon, 8 Jul 1996 04:03:21 -0700 (PDT) Received: by hustle.rahul.net with UUCP id AA08386 (5.67b8/IDA-1.5 for questions@FreeBSD.ORG); Mon, 8 Jul 1996 04:03:05 -0700 Received: (from jim@localhost) by starshine (8.6.11/8.6.9) id CAA01859; Mon, 8 Jul 1996 02:11:58 -0700 From: Jim Dennis Message-Id: <199607080911.CAA01859@starshine> Subject: Re: mailbox To: dwhite@resnet.uoregon.edu Date: Mon, 8 Jul 1996 02:11:57 -0700 (PDT) Cc: malvin@webscape.net, questions@FreeBSD.ORG In-Reply-To: from "Doug White" at Jul 7, 96 11:36:18 pm X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > On Sat, 6 Jul 1996, Malvin C. wrote: > > > I like to inquire if it is possible to setup a single login account > > while at the same time having multiple mailboxes each having their own > > passwd. > > I don't know of any way to do this under the current mail system. You > can have multiple email addresses for one account (through aliases) but > they are not separately password protected, they end up all in the same > mailbox. > > Doug White | University of Oregon Doug, your slipping. You have the user access a single login account but have the backend configured with each of the mailboxes as a different account. Then you create a script that goes something like this: #! /usr/bin/bash # mailbox script [ -z "$1" ] \ && su -c "$1" $mailreader $mua_args \ || echo ${0}: "usage: $0 mailbox -- must specify which box" Not the user types: mailbox foo (assuming the name mailbox for the script and 'foo' for one of the mailboxes) 'su' then asks for a password and launches an MUA. A similar effect could be obtained by configuring a particular MUA as the login shell for this set of users and using 'su - $1' Yet another effect could be obtained by using 'popclient'. Technically these all require Unix accounts to be created -- but this is a backend fact that need not be visible to the user. Another method would be to create a set of sendmail aliases that fed into files (rather than addresses) -- the syntax for that is simply: aliasname: /where/ever/you/want/to/store/it/full/path/to/file Now you have several choices about how to provide access to these files. A set of entries in /etc/group with passwords and a port of the 'newgrp' command, a few lines of suid perl, access controlled through your httpd's htaccess file (or it's equivalent) whatever. There are some POP servers that maintain a separate password/user database. One could install and configure that -- and use popclient for the access. There are lots of options. Jim Dennis