Re: Setting-up virtual hosts and email addresses on Linux
From: Edward Lee epl (me_at_linnix.com)
Date: 16 Mar 2004 10:01:44 -0800
Dan <email@example.com> wrote in message news:<firstname.lastname@example.org>...
> On 15 Mar 2004 09:52:20 -0800, email@example.com (Alex) wrote:
> >Hi all,
> >I'm setting up a web server, and though I know how to do virtual hosts
> >in Apache, how do I setup mail to virtual hosts in sendmail (or any
> >mail server really)? For example, if a client wants mystuff.com, I
> >can get www.mystuff.com setup just fine, but I have no idea how to
> >setup firstname.lastname@example.org or any other email address.
We use email@example.com, firstname.lastname@example.org, etc. as user names in /etc/passwd
> You can set up your email to work in two different ways. The simplest
> way is such that every email user has a Linux user account. To give
> 'me' an email account, you simply create a user account for him. This
> works regardless of the number of hosts or domains you have. A
> problem only arises if you have different 'me's on different domains,
> say me@my_domain.com and me@another_domain.net. You've got two
Yes, almost every domain wants sales: email@example.com, firstname.lastname@example.org, etc.
> different email addresses, but you can only have one user account for
> 'me'. But often this isn't a problem. I've got Postfix handling
The problem is that the customer needs to login as me_too@your_domain.com,
but they want me@their_domain.com
> several domains for me, and I use this approach. This is the default
> method for most mail servers.
> If you truly need different hosts, then you set up a database to store
> your email accounts and mail. I believe that qmail does it this way
> by default.
> > Any how-to's or
> >anything about this?
> Have a look at www.postfix.org or www.exim.org. I believe that
> qmail, www.qmail.org, sets up a database for virtual domains, although
> the other MTAs can also be configured to do so.