Peter Stuge wrote:

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


Thanks peter

"How exactly is your virtual domain and virtual user system set up?"

I don't know anymore i got servers all over town and domains everywhere mostly i use my computerking server as the base for virtual domains. Until recently real UNIX accounts on computerking.ca were the easy answer for BINC, POSTFIX, and mostly Squirrel mail but some domains have there own servers now. That means if I or they (users)change a password for say classicautographics.com were their home accounts and samba are located. I also have to set up another real account on the computerking.ca server and try to keep the passwords in sync. Not to mention which services are hosted where I do not want to have to setup all services in all locations. Maybe all services in one location then replicate that server to all for redundancy.


I want to keep it very simple right now postfix looks to a file like this



[EMAIL PROTECTED]
sculpturaldesign.ca/sculpturaldesign/
[EMAIL PROTECTED]
sculpturaldesign.ca/sculpturaldesign/
[EMAIL PROTECTED] ketingc     sculpturaldesign.ca/keaingc/
[EMAIL PROTECTED]                 sculpturaldesign.ca/ob1/

[EMAIL PROTECTED]            classicautographics.com/classic/
[EMAIL PROTECTED]         classicautographics.com/classic/
[EMAIL PROTECTED]           classicautographics.com/sharpd/
[EMAIL PROTECTED]        classicautographics.com/pearson/
[EMAIL PROTECTED]         classicautographics.com/jeevest/

[EMAIL PROTECTED]                    ybotstudios.com/andersont/
[EMAIL PROTECTED]                  ybotstudios.com/andersont/

on the left virtual domains hosted from computerking.ca on the right
virtual mailboxes that that are located at /usr/local/etc/postfix but i
can make postfix put them anywhere using this section of the main.cf file

virtual_alias_domains = sculpturaldesign.ca, ybotstudios.com
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

virtual_mailbox_domains =  classicautographics.com
virtual_mailbox_base = /usr/local/etc/postfix/vhosts/
virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:200
virtual_gid_maps = static:200

There is also a virtual alias file that uses real unix user accounts and
works fine.   Mabey i need sql data base it that hard to setup would
that do what i need.   Please help

.






Reply via email to