Welcome to WebmasterWorld Guest from 188.8.131.52
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?
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.