Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2006
    Posts
    168

    Default RoundCube Log In - too many clicks

    Is there a way to setup RoundCube within cPanel or WHM so that a user can log in to 1 page without having to click on the RoundCube link after passing credentials to the popup? Trying to make it easier to use RoundCube.

  2. #2
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default

    When users are logged in directly to the webmail client like roundcube you will be denying your webmail users the functionalities like change password , Forwarding options etc ( though it can be done through cpanel )


    You can configure your server to use cookie-based authentication . You can do so by going to WHM -> Server Configuration -> Tweak Settings and select the following setting:

    Disable Http Authentication for cPanel/WebMail/WHM Logins (forces cookie authentication)
    When this is done the pop-up window will not appear which makes it easier

    Now getting into your actual issue ,
    How to login to roundcube directly ?

    1) Login in to your cPanel interface.
    2) Create subdomain, i.e webmail.domain.com ( domain.com is your actual domain name)

    Your subdomain folder path should be public_html/webmail

    3) Create .htaccess file in the document root of subdomain "public_html/webmail"

    which should contain

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

    Replace domain.com with your actual domain name .

    Now when you access webmail.domain.com it should redirect you to the roundcube page . domain.come/webmail should be working as before .

    If you wish to change it for all users ( I don't recommend this as it denies the funtions I explained before) there are some ways to edit webmail custom pages which cpaneldave has explained some time before .


    Create a file called /root/roundcuberedirect.html that contains this:

    Code:

    <cpanel Email="check_roundcube()">
    <h2>Redirecting to Roundcube WebMail.....please click <a href="<cpanel print="$CPVAR{'roundcube'}">/index.php">here</a> if you are not redirected in 5 seconds.</h2>
    <script type="text/javascript">
    function goToRoundCube(){
    document.location.href="<cpanel print="$CPVAR{'roundcube'}">/index.php";
    }
    </script>
    <script>goToRoundCube();</script>

    Then, create a text file called /scripts/postupcp that contains this:

    Code:

    #!/bin/sh
    (cp /root/roundcuberedirect.html /usr/local/cpanel/base/webmail/x3/index.html)

    After those are created, the html file containing the meta-refresh will be copied in place of the webmail home page each time you update cPanel. run /scripts/postupcp to switch the files
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

Similar Threads & Tags
Similar threads

  1. Track Redirect link clicks
    By mumbles27 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-16-2011, 09:02 AM
  2. Log into Roundcube without popup
    By glicky in forum E-mail Discussions
    Replies: 5
    Last Post: 08-04-2008, 09:07 AM
  3. mysql slow-log-query - wrong log?
    By Grzeslaw in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-04-2007, 10:58 AM
  4. tail: cannot open `/var/log/mysqld.log' for reading: No such file or directory
    By Silver_2000 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-02-2006, 12:25 PM
  5. Replies: 2
    Last Post: 06-09-2006, 10:02 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube