|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: *Very* Virtual Domains
Subject: Re: *Very* Virtual Domains
From: Wietse Venema (wietse
porcupine.org)
Date: Mon Dec 06 1999 - 12:17:45 CST
- Next message: Jeff Wolfe: "Re: Log file reads: "unknown service: smtp/tcp""
- Previous message: Wietse Venema: "Re: Log file reads: "unknown service: smtp/tcp""
- In reply to: wangb
email.online.ha.cn: "Re: *Very* Virtual Domains"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
wangb
email.online.ha.cn:
> 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?
Hm. In /etc/postfix/master.cf you can specify ${nexthop} on the
pipe mailer's command line. ${nexthop} defaults to the recipient's
domain name but you can override it in the Postfix transport table.
Playing with ${nexthop} allows you to set up one mail delivery
agent in /etc/postfix/master.cf that delivers for multiple domains.
Wietse
> Wang Bo
>
> On Wed, 1 Dec 1999, Frank Dziuba wrote:
>
> > >
> > > I want to setup a system where usernames are of the form 'user
domain'.
> > >
> > > Then I want to route mail destined for 'someuser
somedomain.com' to the
> > > mailbox 'someuser
somedomain-com'. (Notice the lack of period...)
> > >
> > > Is this possible? If not, how do you suggest doing things so that their
> > > can be both a someuser
somedomain.com and someuser
otherdomain.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 bob
somedomain.com
> >
> > 3) Modify your popmail program so that when it authenticates a user entered
> > as 'user
somedomain.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.
> >
> >
>
>
>
>
- Next message: Jeff Wolfe: "Re: Log file reads: "unknown service: smtp/tcp""
- Previous message: Wietse Venema: "Re: Log file reads: "unknown service: smtp/tcp""
- In reply to: wangb
email.online.ha.cn: "Re: *Very* Virtual Domains"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This archive was generated by hypermail 2b27 : Mon Dec 06 1999 - 12:18:47 CST