How to make Roundcube as a default mail client for all domains

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

In "WHM Home » Server Configuration » Tweak Settings", under the "Mail" tab, you can disable the other Webmail clients by ensuring the following options are not selected:

"Enable Horde Webmail"
"Enable SquirrelMail webmail"

Currently, the only native option available to avoid having to click on the Roundcube option is to have the "AutoLoad" feature active on each account.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Thanks Michael for this quite good help.

Though not 100%, may be cPanel needs to use some common sense logic of eliminating choice page if only single mail client option is there by default.....!
We encourage you to open feature requests for features you would like to see in future versions of cPanel at:

Submit A Feature Request

Thank you.
 

mhofer

Member
May 10, 2013
16
0
1
cPanel Access Level
Root Administrator
Hi Gauravk

What you want is actually possible, for example with a custom direct login page, see:
/http://www.dropdeaddick.com/files/cpanel-webmail-login.php
cPanel Webmail Direct Login Script

change following two lines (comment out squirrel-mail, uncomment roundcube):

# $mail_app = '/3rdparty/squirrelmail/'; // Read Mail Using SquirrelMail
$mail_app = '/3rdparty/roundcube/'; // Read Mail Using RoundCube


If you have some html skills you can also add this to a custom cPanel login theme for all your clients, see documentation for more info:
How to Create Custom-Branded Login Pages

the important line is the following hidden form-field:
<input type="hidden" name="goto_uri" value="/3rdparty/roundcube/" />


downside:
users wont have access to the cPanel features like redirects, spam-settings etc.
We have written a small roundcube addon which adds a link to the default cpanel page in roundcubes settings tab, however this will be deleted on each roundcube update and i did not have time to solve this yet, so maybe add a feature request for this too?
 

kristofferR

Member
Oct 20, 2012
6
0
1
cPanel Access Level
Root Administrator
downside:
users wont have access to the cPanel features like redirects, spam-settings etc.
We have written a small roundcube addon which adds a link to the default cpanel page in roundcubes settings tab, however this will be deleted on each roundcube update and i did not have time to solve this yet, so maybe add a feature request for this too?
This page details how you can add addons to your Roundcube installation without it being removed with each update of Roundcube:
Customizing Roundcube Webmail.

Could you share the addon you've created? It sound perfect for my needs!
 

STS Admin

Well-Known Member
Jul 8, 2012
46
0
56
India
cPanel Access Level
Root Administrator
You can also do a custom installation of roundcube on a separate account and add custom vhost entries in apache configuration files to access it as webmail.domain.com. It's going require a little manual work, but with this you can even modify the roundcube core files as per your requirement and cpanel updates will cause nothing to it.

Sample Vhost entry
<VirtualHost *:80>
ServerName webmail
ServerAlias webmail.*
DocumentRoot /home/webmail/public_html
....
....
...
</VirtualHost>
 

mhofer

Member
May 10, 2013
16
0
1
cPanel Access Level
Root Administrator
Could you share the addon you've created? It sound perfect for my needs!
Sorry for not replying sooner, if you're still in need, you can download it here:
/https://dl.dropboxusercontent.com/u/17325872/roundcube_cpanel_plugin.tar.gz

extrat and put it insite the roundcube plugin directory and add the plugin in the config file of roundcube. translations may be needed