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: Frank Dziuba (franknetlojix.com)
Date: Wed Dec 01 1999 - 16:58:59 CST


>
> 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 : Wed Dec 01 1999 - 17:48:43 CST