Found a resource at http://support.lunarpages.com/knowledge_bases/article/20 for my webmail problem.

1. Create subdomain: webmail.domain.com

2. add .htaccess file below to forward to to horde email.  Even non-https.  Yeah!!

To Redirect to the Horde Webmail Client:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.yourdomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.yourdomain.com$
RewriteRule ^(.*)$ http://yourdomain.com:2095/horde/$1 [R=301,L]

To Redirect to the Squirrel Mail Client:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.yourdomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.yourdomain.com$
RewriteRule ^(.*)$ http://yourdomain.com:2095/3rdparty/squirrelmail/index.php$1 [R=301,L]

Secure ya want????

You can also use a secure login to the webmail as well, for the line:

RewriteRule ^(.*)$ http://yourdomain.com:2095/horde/$1 [R=301,L]

change this to:

RewriteRule ^(.*)$ https://yourdomain.com:2096/horde/$1 [R=301,L]

same applies for Squirrel Mail:

RewriteRule ^(.*)$ http://yourdomain.com:2095/3rdparty/squirrelmail/index.php$1 [R=301,L]

change this to:

RewriteRule ^(.*)$ https://yourdomain.com:2096/3rdparty/squirrelmail/index.php$1 [R=301,L]

Leave a Reply