From owner-freebsd-isp Thu Jul 15 8:56:42 1999 Delivered-To: freebsd-isp@freebsd.org Received: from pleb.cs.uct.ac.za (pleb.cs.uct.ac.za [137.158.132.206]) by hub.freebsd.org (Postfix) with ESMTP id 8504715585 for ; Thu, 15 Jul 1999 08:56:24 -0700 (PDT) (envelope-from khetan@link.freebsd.os.org.za) X-Disclaimer: Contents of this e-mail are the writer's opinion X-Disclaimer2: and may not be quoted, re-produced or forwarded X-Disclaimer3: (in part or whole) without the author's permission. Received: from localhost (khetan@localhost) by pleb.cs.uct.ac.za (8.9.3/8.9.3) with SMTP id RAA05012; Thu, 15 Jul 1999 17:55:23 +0200 (SAT) (envelope-from khetan@link.freebsd.os.org.za) Date: Thu, 15 Jul 1999 17:55:22 +0200 (SAT) From: Khetan Gajjar X-Sender: khetan@pleb.cs.uct.ac.za Reply-To: Khetan Gajjar To: Stephane.Lentz@ansf.alcatel.fr Cc: freebsd-isp@FreeBSD.ORG Subject: Re: sendmail virtusertable In-Reply-To: <19990715170012.A4814@nsfws7.ansf.alcatel.fr> Message-ID: X-Mobile: +27 82 9907663 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 15 Jul 1999 Stephane.Lentz@ansf.alcatel.fr wrote: >::virtusertable >staff@mycompany.com us@localdomain.com > >::aliases >us: root, me@home.com, foo@foobar.com I faced the same problem, because I wanted users to manage their own domain e-mail on my box (and if possible, hack webmin so that they don't require shell a/c's or anything more than the ability to click). What I did was created a set of alias files for each domain, and allowed the appropriate users rights to edit those files and rebuild them. As it stands right now, because I partially trust the users (there are only 4), they all have read/write access to the master virtusertable, but it would be trivial to create multiple input virtusertables, cat them together to create the master inputfile and rebuild the database periodically. The same goes for the aliases, I suppose. Does anyone have another (better) way of doing this (and do not suggest another MTA ;-) Eg. Currently : a.co.za.alias writeable and readable by user a (manual) b.co.za.alias writeable and readable by user b (manual) a.co.za.alias and b.co.za.alias are defined in /etc/sendmail.cf seperately (not a performance issue for two or three files, I'd imagine) virtusertable.inputfile writeable and readable by user a and b, and they can generate virtusertable.db (manual) Preferred : a.co.za.alias and a.co.za.virtusertable writeable and readable by user a b.co.za.alias and b.co.za.virtusertable writeable and readable by user b master.alias defined in /etc/sendmail.cf cat a.co.za.alias b.co.za.alias > master.alias (cronned) cat a.co.za.virtusertable b.co.za.virtusertable > master.virtusertable (cronned) makemap hash virtusertable < master.virtusertable (cronned) --- Khetan Gajjar (!kg1779) * khetan@iafrica.com ; khetan@os.org.za http://www.os.org.za/~khetan * Talk/Finger khetan@chain.freebsd.os.org.za FreeBSD enthusiast * http://www2.za.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message