Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

global subdomain

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

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

Junior Member

10+ Year Member

joined:Jan 14, 2002
votes: 0

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?


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

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0

Hi Allen,

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



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

New User

10+ Year Member

joined:Jan 3, 2004
votes: 0

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.
12:20 pm on Jan 3, 2004 (gmt 0)

Senior Member from MT 

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 1, 2003
votes: 0

You can set up wildcard subdomains.


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

New User

10+ Year Member

joined:Dec 22, 2003
votes: 0

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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members