Change default email to Roundcube

I have the newest build of ehcp and I was wondering how I can change my mail.mydomain.com to point to the RoundCube mail sign in page. I've given up trying to connect google apps with ehcp so I've resulted to using the built in mail which in my case is squirrel mail and RoundCube, I don't want to use squirrel mail though. Thanks for any replies.

open apachetemplate file in ehcp dir
find section with "webmail.yourdomain.com"
change paths to .../webmail2
save
after that, ehcp gui->options->sync domains

this way, you will be using roundcube for all your domains.

I get a server error when I do that, here is what I have in the file you said to modify, I made all the webmail2 changes:

ServerName webmail.{domainname}
ServerAlias mail.{domainname}
ServerAlias email.{domainname}

DocumentRoot {ehcpdir}/webmail2

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined

php_admin_value open_basedir {ehcpdir}/webmail2
php_admin_value upload_tmp_dir {ehcpdir}/webmail/data
php_admin_value session.save_path {ehcpdir}/webmail/data

Sory,
on php_admin_value parts,
remove all php_admin_value's,
and add folowing:

php_admin_value open_basedir {ehcpdir}/webmail2;/usr/share/roundcube

Thanks, I'm still getting a server error, there is no roundcube directory in the ehcpdir, there is only webmail2 and I tried to put that as well with no luck. Also, the webmail2 folder in the ehcpdir is only a shortcut link that goes to /usr/share/roundcube, I also tried to edit the apachetemplate to that with no luck, is there any way I can reroute my mail.mydomain.com adress to an outside url like: http://google/a/mydomain.com thanks again!

Thanks for the help but it isn't working. Would a created subdomain that is mail.mydomain,com interfere with anything should I delete it? It's still isn't working though, here is what I have now, can you check and see if there is anything wrong with it?

ServerName webmail.{domainname}
ServerAlias mail.{domainname}
ServerAlias email.{domainname}

DocumentRoot {ehcpdir}/webmail2;/usr/share/roundcube

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined

php_admin_value open_basedir {ehcpdir}/webmail2;/usr/share/roundcube

Thanks for your help

can anyone else help out with this? what is the point of having roundcube when the only way to access it is though your ip address which is insecure? Why isn't roundcube default in ehcp, its a way better webmail app than squirrel mail. If anyone else has any other ideas that would be great. I did everything stated on here and more and the furthest I got was a server error and a roundcube favicon in the browser, but that's it.

I have same problem with change default webmail. I cannot quite into apache template to correctly path. I had check out your instruction and it doesn't help.