Better webmail solution

Web_Rob

Member
Nov 30, 2006
18
0
151
I am wondering if there is a better way I can have my customers check their webmail? It seems like such a hassle for them to have to login to cPanel and choose what client they want and all that. Does anyone have a better way to do this?
 

Silver_2000

Well-Known Member
Mar 31, 2002
337
1
318
domain.com/webmail works for me

Also most people will save a bookmark to the client they use.
 

jpetersen

Well-Known Member
Dec 31, 2006
113
5
168
One option would be to use mod_rewrite, which you could use to have your users simply browse to domain.com/email then be taken directly to their webmail login. You will need to know beforehand which webmail client they will be using. This example covers SquirrelMail.

Place the following in an .htaccess file in their public_html directory:

Code:
RewriteEngine on
RewriteRule ^email$ https://[b]domain.com[/b]:2096/3rdparty/squirrelmail/index.php [R=permanent,NC,L]
Of course, you will need to replace "domain.com" in the example above with their actual domain. Then, have them browse to domain.com/email, and they will be redirected to the secure login for SquirrelMail.

NeoMail: https://domain.com:2096/neomail/neomail.pl
Horde: https://domain.com:2096/horde/index.php


If this is for an Addon Domain, place the .htaccess file in their addon domain's directory (e.g., /home/username/public_html/addon_dir/.htaccess).

* Note that I used "email" instead of "webmail", because cPanel already has a ScriptAlias in httpd.conf to handle requests made to "/webmail"

Code:
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
 

darklord1

Well-Known Member
Jul 8, 2006
58
0
156
cPanel Access Level
Root Administrator
Have you tried the e-mail login?

Cpanel will automatically make you an e-mail account with your cpanel username and password, so to check, make an e-mail that is set, for example. [email protected] with password of password.

Your login will be [email protected] then your password will be password. That will allow you to login to your e-mail and you will not be able to move through anyother part of cpanel. Notice that your login name is your e-mail not just the first part, that is how it is supposed to work. hope this helps you.

If you enter your cpanel info, yes you will be given access but that is not what you need.

Have your clients follow the same basic setup as I just sudjested, and then you will have no issues.