Ok, so our company hosts several domains on one server. When implementing a software such as roundcube, we like to have one central install that eases the pains fo configuring and maintaining. Each domain hosted simply references the central install via sym-links.
Anyways, whether that makes sense or not, I wanted to setup a way that the login screen would figure out the mail server domain name without me having to manually set it in a config file or the user inputting it at each login. So, I basically switched out line 33 of main.inc.php with this line:
$rcmail_config['default_host'] = 'mail.' . '' . str_replace("www.", "", $_SERVER['HTTP_HOST']);
Basically, it takes the address in the address bar, removes the "www." and adds "mail." to the beginning of the domain name.
Ex) www.yourname.com to yourname.com to mail.yourname.com
I am sure this all seems very basic and straight forward to the more seasoned programmer, but I was excited about getting it to work.
Hope it helps others in some way.
Kevin Landers Bezaleel, DTG