Page 1 of 1

Multiple domains, web and mail

Posted: 01 Feb 2007, 15:31
by jamerson
Hi!
First post here. I have just ordered a Bubba.
What I will need to do once I get it is to have it host several domains.

I have managed to do this one time on debian, but I lost a lot of sleep that time. Could someone describe which files need to be edited to do this and what to edit in them?

I remember that when I was done I only needed to add a new site and tell where the root for it was. And it was really easy to add email addresses to each domain.

I know that google is my friend, but there is just too much information!

Someone here can probably explain this more beautifully than has been done before!

/jamerson

Posted: 02 Feb 2007, 09:00
by johannes
Hi,

To get the email part to work it's actually just to add a second host (space separated) to the "handle mail for domain" field in the web UI. This makes postfix accept email from both (or all, if more than two) domains. They aren't separated though, thus: user1@domain1 and user1@domain2 will end up in the same mailbox.

This is as far as I can help, hope someone else can fill in the blanks (i.e. how to configure apache).

Posted: 02 Feb 2007, 09:25
by tor
Hi jamerson,

A quick addition to Johannes reply.

Regarding multiple web-hosts i think you can look at my comment on virtual hosts in this thread.

Just create a new file with a virtual host for each domain you want to use and follow the instructions on how to get it working. If you dont require https on those sites just leave out the second half of the file.

/Tor

Posted: 02 Feb 2007, 13:40
by jamerson
Good stuff, tor, good stuff.

That's just what I needed. I would like a more sophisticated email user handling than Johannes suggestion, though.

Anyone?

Posted: 20 Feb 2007, 18:10
by jamerson
Tor: Isn't it possible to have multiple virtualdomains in the same file?
<virtualhost>
bla bla bla
</virtualhost>

<virtualhost>
bla bla bla
</virtualhost>

I remember I used to have this setup.

/pelle

Posted: 21 Feb 2007, 08:51
by tor
jamerson:

Of course you can put this in one file. The reason for splitting them up is purely for organizational purposes. It will work just as good in one file.

/Tor