Forum Moderators: phranque

Message Too Old, No Replies

global subdomain

Can I automatically create a webmail. subdomain for all domains?

         

Allen

12:10 pm on Dec 10, 2003 (gmt 0)

10+ Year Member



Hi all,

I now have my own server (currently using Apache 1.3.29 and name based virtual hosting), currently with only a few domains on, mostly mine, but hopefully will have more clients sites on soon ;)

I have email set up, and I have webmail. Obviously, to make life easy, I like each domain to have webmail.<domain> address for clients to easily access their webmail.

Currently I'm using a single entry and adding to the ServerAlias line for each domain. However, with only a few domains this lineis already getting long.

Is it possible to create a 'global subdomain'. ie. any domain that gets pointed at my server automatically has the webmail. subdomain?

Allen

jdMorgan

6:32 pm on Dec 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Allen,

I'm not sure how you'd do this, but maybe someone here knows...

<bump>

Jim

dele

12:05 pm on Jan 3, 2004 (gmt 0)

10+ Year Member



If you cannot afford to run a mail server where you can set this up separately, I think what you can do is to have the webmail pointed to another port and have Apache to listen on that port or have the link at the appropriate part of your page like: [****xxx.xxx:2080...] I have seen this done in may places and I have done it it and it works like a magic.

killroy

12:20 pm on Jan 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can set up wildcard subdomains.

SN

fwwebs

3:48 pm on Jan 3, 2004 (gmt 0)

10+ Year Member



I know this isn't exactly what your looking for, but I see few options right away and it might give you an idea or two:

1. Use a directory alias ie. Alias /manual/ "/srv/www/htdocs/manual/"
Any request like [yourserver.com...] or [otherserver.com...] will go to that directory.
2. Create a virtual server with it's own port that will serve up your webmail directory. Another post suggested this. The downside is the ability of users to access the port from behind firewalls. I believe this is similar to the workings of a cPanel server.
3. Create a https server with using the webmail directory or a simple index page pointing with a link.

Another possibility that will give you exactly what your looking for is, running Webmin and Virtualmin. If you don't already have a control panel, Virtualmin will create an Apache virtual server using a template that you can modify. This allows you to give each vitual server the same webmail.domain.com subdomain and if your running DNS you can edit the zone file template to enable the subdomain in DNS as well.