Koozali.org: home of the SME Server

Virtual Hosting

Quade

Virtual Hosting
« on: September 23, 1999, 07:55:45 PM »
Kim, et al.

Is there a way to edit the config files to allow a limited relaying or virtual host situation for the mail server?  Last week, Kim told me which files to edit so Apache could accept virtual hosting, and that worked like a dream (thanks a million, btw), and I'm wondering if there exists such an easy fix for the mail server...

I have quade@thegeekhouse.com (my house), and I want mail to go to the same account if someone sends mail at quade@bleakhouse.com (my band) or quade@iasuma.com (my folks' company).  Currently, I get the following (cute) message:

Hi. This is the qmail-send program at mail.thegeekhouse.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
:
Sorry. Although I'm listed as a best-preference MX or A for that host,
it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)

Now, all my domains point to the same IP, and the MX records point to mail.thegeekhouse.com.  e-smith just won't accept other domains.  

Help!!!!!!!

--Quade

Kim Morrison

RE: Virtual Hosting
« Reply #1 on: September 23, 1999, 11:51:52 PM »
Hi Quade,

Good news.  All you need to do is create the account, and then set up .forward files.  See the exchange on the bboard between Joseph and Patrick Kessen that began on September 9 for full details.

Cheers,

Kim

Charlie Brady

RE: Virtual Hosting
« Reply #2 on: September 24, 1999, 10:07:25 AM »
As it says below, "control/locals" needs to contain the domain name you want to accept mail for. /var/qmail/control/locals is where the file is. If you want different usernames for the different virtualdomains, you will need to do more tweaking. Read through the fine documentation for qmail - start with the FAQ.

Quade wrote:
-------------------------------

Is there a way to edit the config files to allow a limited relaying or virtual host situation for the mail server?

...

Currently, I get the following (cute) message:

...

Sorry. Although I'm listed as a best-preference MX or A for that host,
it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)

Gordon Rowell

RE: Virtual Hosting
« Reply #3 on: September 30, 1999, 04:14:28 PM »
If you're looking at setting up more than one or two virtual
hosts, have a look at vmailmgr as it handles the various files
you need to create automagically.

http://em.ca/~bruceg/vmailmgr/

And if you're trying to run maillings lists, grab ezmlm-idx

ftp://ftp.id.wustl.edu/pub/patches/

They would both be good to think about for future releases.

There are web interfaces for both which could be plugged into
the e-smith manager fairly easily.

Gordon

Keith Bellows

RE: Virtual Hosting
« Reply #4 on: October 04, 1999, 10:57:11 AM »
In the message above Quade references a solution for Apache configuration to support virtual hosting.  (Last week, Kim told me which files to edit so Apache could accept virtual hosting, and that worked like a dream (thanks a million, btw)

I have searched all the through the bulletin board for that advise and cannot find it.  I am presently evaluating a couple of other gateway type servers and really think that I like e-smith's best, except for the lack of virtual hosting!!

Could you point me in the right direction to the response to that post.

thanks a bunch.
keith

Kim Morrison

RE: Virtual Hosting
« Reply #5 on: October 04, 1999, 07:22:01 PM »
Hi Keith,

Are you referring to the exchange between Quade and I on server side includes?  It's below (the full exchange had a subject heading "server side includes" and was a week or two ago... :-)

Have fun and good luck with your evaluation!

Kim


Kim Morrison wrote:

> Hi Quade,
>
> Well, you are going to be happy.  This is a full version of
> apache, Quade.
>
> If you are willing to edit the config files manually there is
> no reason you can't set up virtual hosting. My hedging on the
> subject of virtual hosting had to do with not being able to set
> it up using the console/web-based interface.
>
> The apache config files are under template control, so you must
> edit the templates not the original files.  The templates are
> located in the sub directory /etc/e-smith/templates where
> you'll find template versions of all the config files.  Once
> you've modified the templates as you like, you can generate the
> real config files from the templates by executing the following
> command:
>
> /sbin/e-smith/signal-event manager-misc
>
> This makes the e-smith system think that someone changed
> something with the web-based manager and to update the files
> accordingly.
>
> Have fun!
>
> Kim

Keith Bellows

RE: Virtual Hosting
« Reply #6 on: October 05, 1999, 12:34:46 PM »
Excellent.  I kept saying to myself if it's apache why can't it virtua?  Now I know!  thank you so much for the iinformation.  I am almost to the point of recommending e-smith over the other as I really like the idea of open source!!  (been using Linux off and on since 94)  Very impressed with your product!!!

keith