On Mon, Nov 22, 2004 at 09:14:01PM -0700, RYAN vAN GINNEKEN wrote:
> Peter Stuge wrote:
> >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. 

Sounds like a lot of work.

[..]

> I want to keep it very simple right now postfix looks to a file like this
> 
> [EMAIL PROTECTED] ketingc     sculpturaldesign.ca/keaingc/

Hm, is that an extra "ketingc" in the middle, or is that really valid
syntax?


> [EMAIL PROTECTED]           classicautographics.com/sharpd/
> [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

I don't know much about Postfix so I can't say if some kind of SQL
database system would magically solve all your problems, but from
reading a little on postfix.org it seems that it wouldn't.

All right, virtual_uid_maps and virtual_gid_maps have the information
about uid (and hence supplementary groups) and gid that are needed by
a checkpassword implementation.

The virtual_mailbox_maps file has the working directory.

Assuming there's an easy way to query these postfix configuration
directives and databases (virtual_mailbox_base, virtual_mailbox_maps,
virtual_uid_maps and virtual_gid_maps) it doesn't look like a lot of
work to add this compatibility into bchkpw. (Or make pchkpw.) However,
I find practically zero information about integrating other software
with Postfix on www.postfix.org, so finding how to actually do the
table lookups will require some effort.

If you can help by finding out how to do this, that would be great.


//Peter

Reply via email to