On Mon, Nov 22, 2004 at 07:23:00PM -0700, RYAN vAN GINNEKEN wrote: > > >I wish to set up virtual servers for several domains and am using > > >postfix style vmailboxes these reside in >�> >/usr/local/etc/postfix/vhosts/ > > >and am wondering how to configure binc for this as well what do i > > >use for usernames and password for these accounts. > > > > This isn't within the scope of Binc; Binc relies on a checkpassword > > program for username and password verification. > > Thanks for your response however i am still lost in the world of > having to switch passwords in several places and relay mail through > my main server from offsite. What a pain i just want to have one > server to maintain and one maybe 2 password lists. Need virtual > email postfix works fine without any patches or mods and will > receive mail for any domains dump the mail to whatever file i > choose. > > For BINC i have no idea how to modifiy the checkpassword program to > check these folders that i have created please give me some more > specifics on how to achive this.
Well, it depends a little on what Postfix does/expects and a lot on how you want to specify passwords. (Flatfile, SQL database, etc.) On Mon, Nov 22, 2004 at 07:36:15PM -0700, RYAN vAN GINNEKEN wrote: > >On Mon, Nov 22, 2004 at 08:24:03PM +0100, Andreas Aardal Hanssen wrote: > >>I believe vpopmail and vmailmgr should work quite fine with > >>postfix. > > > >Ok. The original poster wasn't very clear about how Postfix actually > >does implement virtual users, so I figured hacking was neccessary. > > I'm confused why do i have to use vpopmail or vmailmgr can't i just > tell checkpassword to look in a certain folder for it's passwords as > well as the /etc/passwd file. The short answer is no, you can't. As mentioned on cr.yp.to/checkpwd/interface.html near the bottom (I assume you already read it but will repeat) the checkpassword program does a number of things after verifying a good username/password combination; Sets up environment variables USER, HOME and SHELL Sets up supplemental groups Sets up gid Sets up uid And finally, changes to the correct working directory These things are standardized by the checkpassword interface, so any program implementing it will do all of this; and bincimapd depends on it. Besides the cr.yp.to checkpassword there are other checkpassword programs that also implement this interface, and hence are drop-in replacements. One is cmd5checkpw, which will check passwords against a flat file, however it doesn't provide any username mapping AFAIK. The checkpassword from vpopmail, vchkpw, can check passwords against a whole slew of places, including flat files, and it also does user mapping, but it only ever maps to one user; the vpopmail user that owns all virtual domains. checkvpw from vmailmgr only checks flat files according to it's own scheme; in the home directory of the user owning the virtual domain. It also does user mapping, again to the user owning the domain. > Postfix just uses a virtual db file > to route incoming mail from a virtual user to a virtual mailbox And since none of the existing checkpassword implementations can work with this you either have to create a checkpassword program that can, or start using a ready-made virtual domain system that comes with a checkpassword program. Ie. vpopmail or vmailmgr. vpopmail is good when virtual domains shouldn't be tied to real system users, or when there's more than one virtual domain per user/customer. vmailmgr is good when all virtual domains need to be owned by real system users. Unfortunately all virtual domains for that user will be equivalent, which greatly reduces the usefulness of the package IMHO. How exactly is your virtual domain and virtual user system set up? Which files contain what information? If it's simple enough I could put it into a special version of bchkpw. //Peter
