1

Topic: webmail.mydomain.tld

I was wondering how todo so i can access the webmail at webmail.mydomain.tld instead of mail.mydomain.tld/mail...

The A record is setup and ready to use, getting this message at the moment:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.

2

Re: webmail.mydomain.tld

Corex wrote:

I was wondering how todo so i can access the webmail at webmail.mydomain.tld instead of mail.mydomain.tld/mail...

The A record is setup and ready to use, getting this message at the moment:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.

You have to use apache virtual domain. Say you have the domain curse.org and you want to have webmail at webmail.curse.org
you would point your A record for webmail at the server, and using the apache virtual domain, it would track which domain request was sent, and feed a different folder based on that.

However, the easier solution i have devised is:
In CentOS, the default path of apache serving (ie webmail.curse.org) is /var/www/html
there is an index.html file there.
Replace it with your own html file that uses javascript to redirect the browser to https://webmail.curse.org/webmail from the original starting point of webmail.curse.org


Here is the javascript code for that:

<script type="text/javascript">
<!--
window.location = "https://webmail.curse.org/webmail"
//-->
</script>

Just place that in the head of your index.html document.
Enjoy!

3

Re: webmail.mydomain.tld

The simple way: Change DocumentRoot setting in apache to the webmail directory.

4

Re: webmail.mydomain.tld

Centos 5.x - This way will work globally for all domains bound to the to same IP. Just repeat for each apache IP.

DNS: create cname of webmail for each domain name to point to domains a record IP. (insure you increment zone serial #)

Apache host entry:

<VirtualHost xx.xx.xx.xx:80>
ServerAlias webmail.*.*
DocumentRoot /var/www/squirrelmail/
</VirtualHost>

All domains with DNS cname webmail pointed to the hosting server can now use http://webmail.xyz.com
You could also run the webmail needs on a different IP in a seperate included conf.d conf file thus keeping hosting and mail seperated or add the directive into the existing squirrelmail/roundcube/ssl conf files.

Richard