cpanel email: redirect or rewrite help

-Anti- - July 23, 2008 - 22:13

Not directly related to drupal, but might help some people if it's solved:

Usually my users (who are teachers) access their webmail by using an icon on our website which
links to: https://domain.com:2096/3rdparty/roundcube/index.php

This misses out the cpanel splash screen (which confusingly offers 3 email clients & config options),
and takes them straight to their roundcube client after logging on.

However, I've just discovered that 'cpanel 11' has a new feature: webmail on port 80
This is useful for when they're on holiday in hotels or cafes and can't access port 2095/2096.

The address: http://webmail.domain.com automatically accesses the port 80 webmail.
That is great because it is easily memorable for them. However, after log-in, they are taken to
the splash screen: http://webmail.domain.com/webmail/x3/?login=1

Can anyone show me how to redirect/rewrite:

http://webmail.domain.com <= to => http://webmail.domain.com/3rdparty/roundcube/index.php

Thanks.

cpanel email: redirect help

Peterrad - December 11, 2008 - 02:00

the simplest wat to achive this is to login to Cpanel and create a subdomain called webmail.domain.com, once this is done then go into redirects and create the redirect from http://webmail.domain.com <=> http://webmail.domain.com/3rdparty/roundcube/index.php. thats it.

however when I did this "http://webmail.domain.com/3rdparty/roundcube/index.php" does not work I had to use http://mail.domain.com/3rdparty/roundcube/index.php fo it to work, but that might just be my Host....

Pete

You shouldn't create

-Anti- - December 14, 2008 - 20:08

You shouldn't create subdomains using these 'specially designated' ones. It will overwrite the account's settings so that the special ones don't work as they should. The only way to reset them is to reset the entire account.

Eg. if cpanel is setup to provide port 80 email at mail.domain.com (which is extremely handy for your colleagues to access their email in a hotel or cybercafe whilst on holiday), then setting up a subdomain at mail.domain.com (so that you can redirect it to one of the email clients) will mean that you cannot access your email over port 80 any more. Even if you delete the subdomain, mail.domain.com will simply give an error until the account is completely reset. I forget which subdomains are special, but there are at least three of them - they are not very well documented, and there is no protection for them built in to cpanel; it just overwrites without warning.

 
 

Drupal is a registered trademark of Dries Buytaert.