OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: *Very* Virtual Domains

Re: *Very* Virtual Domains


Subject: Re: *Very* Virtual Domains
From: wangbemail.online.ha.cn
Date: Mon Dec 06 1999 - 01:46:45 CST


I think the transport map can implement the virtual domain deleiver.
if there is just one virtual domain, we can maildrop with userdb
or other MDA to deliever the virtual domain mail. but if there
are many virtual domain, the way must configure many transport in
master.cf, it is not a good idea. but if we can use a parameter(or ENV)
to tell MDA the mail is belong to which vitual domain, we can use one
transport item in master.cf, to deleiver many vitural domain's mail.
how about the idea?

Wang Bo

On Wed, 1 Dec 1999, Frank Dziuba wrote:

> >
> > I want to setup a system where usernames are of the form 'userdomain'.
> >
> > Then I want to route mail destined for 'someusersomedomain.com' to the
> > mailbox 'someusersomedomain-com'. (Notice the lack of period...)
> >
> > Is this possible? If not, how do you suggest doing things so that their
> > can be both a someusersomedomain.com and someuserotherdomain.com. (In
> > other words, two adam's, working for two different companies.)
> >
>
> We do this for our virtual ISP program. The caveat is that of course you
> have to make sure the user has NO shell access because they would be confused.
>
> 1) when a user is added, create a placeholder account, like SD1234 meaning
> 'somedomain = SD' and '1234' is the usernumber.
>
> 2) Put a map in virtusertable of postfix to handle incoming mail. as in
> SD1234 bobsomedomain.com
>
> 3) Modify your popmail program so that when it authenticates a user entered
> as 'usersomedomain.com' it looks up the mapping in virtusertable and
> then changes the username to the 'real' user before proceeding.
>
> 4) If you host personal web sites, modify the apache server to remap '~user'
> to the real user via the virtusertable.
>
> 5) Do the same with FTP. WSFTP has some hooks for this.
>
> 6) Obviously your account creation/deletion program has to work with these
> changes too.
>
>



This archive was generated by hypermail 2b27 : Mon Dec 06 1999 - 02:47:26 CST