How to Access Webmails

Posted on March 3, 2009
Filed Under Linux Hosting, Web-hosting, Windows VPS |

In this article I will explain you how to login directly into Squirrelmail/Horde of any account by using “webmail.yourdomain.com”

Before starting with webmail you will have to create a subdomain that should be redirected to your preferred Webmail client that is Squirrelmail/Horde. By following the below steps you can easily create subdomain through Cpanel:-

1) First login into your Cpanel.

2) Now, just select the sub-domain option, and create the subdomain. Example: webmail.yourdomain.com.

3) Once it is done click on File Manager option of Cpanel.

4) By selecting the folder image beside the text “public_html” change the path to “public_html”

5) Change the path to folder that was created by your subdomain. For example it would be the “webmail” folder.

6) After you change the path inside this directory to webmail you will see “.htaccess” file however, if you are unable to see then you will have to create it manually.

Steps to create .htaccess file are as follows:-

a) Create .htaccess by selecting the “Create New File” option from Cpanel.

b) In the top right corner of the File Manager interface. Choose “Text Document” and name it “.htaccess”.

c) Refresh the File Manager and you will see that [.htaccess] in the listing of that directory.

10) Now click on the text title for the .htaccess file on the left side of the screen and a menu appears in the top right of the screen.

11) Choose the “Edit File” option, a new window opens and add the following lines there:

How to redirect “webmail.yourdomain.com” to the Squirrel Mail Client?

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

How to redirect “webmail.yourdomain.com”to the Horde Webmail Client?

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

Update me when site is updated

Comments

Leave a Reply