Date: Thu, 15 Jul 1999 17:55:22 +0200 (SAT) From: Khetan Gajjar <khetan@link.freebsd.os.org.za> To: Stephane.Lentz@ansf.alcatel.fr Cc: freebsd-isp@FreeBSD.ORG Subject: Re: sendmail virtusertable Message-ID: <Pine.BSF.4.02A.9907151744490.4870-100000@pleb.cs.uct.ac.za> In-Reply-To: <19990715170012.A4814@nsfws7.ansf.alcatel.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9907151744490.4870-100000>