Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
  1. #1
    Member
    Join Date
    Apr 2005
    Posts
    50

    Default Direct login in roundcube webmail

    Hi,
    I would like that the users when acessing webmail could be logged on directly into roundcube without passing in the cpanel window where they can see the options to;
    "Change Password,Forwarding Options,Auto Responders,Configure Mail Client...etc"

    is this possible or there is already an URL that I don´t know ?

    Thanks,
    Jorge Correia

  2. #2
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    Me too want to know.
    SuperBaby

  3. #3
    Member
    Join Date
    Apr 2005
    Posts
    50

    Default

    anybody ? is it possible or available ? is it in plans ?

    Thanks

  4. #4
    Member
    Join Date
    Apr 2005
    Posts
    50

    Default

    well....at least the path to the file so I can change the code of it ?

  5. #5
    Member
    Join Date
    Dec 2001
    Posts
    746

    Default

    You can click on the Enable AutoLoad link to have Roundcube auto appear after 5 seconds on each login. This is designed to allow the mail user to have access to the other options in the mail interface which can greatly improve their mail experience.

    For example, Mail filtering allows them to set up filters/rules on their account so they don't have to configure them in each email application they use. Mail users can also set up filters to send mail to another account through this interface rather than having to ask the site admin to do so.


    There's not currently a way to edit the login page but you could put in place a custom page using /scripts/postupcp as putting a custom page in /usr/local/cpanel/base/webmail/x3/ will result in the custom page being overwritten after any update.

    To 'hack' a custom page into place See my later post for a cross-browser JavaScript approach:

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

    Code:
    <cpanel Email="check_roundcube()">
    <meta http-equiv="refresh" content="0;<cpanel print="$CPVAR{'roundcube'}">/index.php">
    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 and you'll be good to go.
    Last edited by daveformerlyof; 04-28-2009 at 04:42 PM. Reason: cross-browser post below

  6. #6
    Member
    Join Date
    Apr 2005
    Posts
    50

    Default

    Thanks for your answer

    I know it´s a good thing for them to have this option, but our server is managed, and sometimes a 'user can´t break what they can´t see'

    I will try your solution. Once again thanks

  7. #7
    Registered User
    Join Date
    Jun 2007
    Posts
    4

    Default

    I would like to use the standard roundcubes login page like in their demo and generall installs, not the cpanel popup window method. Is this possible?

  8. #8
    Member
    Join Date
    Dec 2001
    Posts
    746

    Default

    Quote Originally Posted by glicky View Post
    I would like to use the standard roundcubes login page like in their demo and generall installs, not the cpanel popup window method. Is this possible?
    This is not possible. You need to login to the cPanel webmail interface before accessing roundcube. As discussed above, once logged into the webmail interface, the user can be taken directly to roundcube.

  9. #9
    Registered User
    Join Date
    Jul 2007
    Posts
    2

    Default Works for Firefox but not IE ! ?

    Quote Originally Posted by cpaneldave View Post

    There's not currently a way to edit the login page but you could put in place a custom page using /scripts/postupcp as putting a custom page in /usr/local/cpanel/base/webmail/x3/ will result in the custom page being overwritten after any update.

    To 'hack' a custom page into place:

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

    Code:
    <cpanel Email="check_roundcube()">
    <meta http-equiv="refresh" content="0;<cpanel print="$CPVAR{'roundcube'}">/index.php">
    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 and you'll be good to go.
    Hi cpaneldave,
    This workaround works in Firefox however in Internet Explorer it simply creates an endless loop after submitting the login details. Any possibility you know of a reason as to why this is and what would fix it ?

  10. #10
    Member whplus's Avatar
    Join Date
    Dec 2007
    Location
    Behind your business
    Posts
    59

    Default why not using httaccess ?

    (1) create subdomain, i.e webmail.domain.com
    (2) create .htaccess file in there that contains:
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$
    RewriteRule ^(.*)$ https://domain.com:2096/3rdparty/roundcube/index.php?_task=mail$1 [R=301,L]
    susan,
    Whplus - Web Hosting Murah
    http://www.whplus.com

  11. #11
    Registered User
    Join Date
    Jul 2007
    Posts
    2

    Default

    Hi Susan,
    I realise .htaccess can be used to achieve the same thing however this then means that a .htaccess rule has to be created for each and every hosting account, further to this a webmail.XXXXXX.XXX subdomain. Both of these are tasks i'd rather not have to perform manually for each and every hosting account.

  12. #12
    Member
    Join Date
    Dec 2001
    Posts
    746

    Default

    Quote Originally Posted by Ado` View Post
    Hi cpaneldave,
    This workaround works in Firefox however in Internet Explorer it simply creates an endless loop after submitting the login details. Any possibility you know of a reason as to why this is and what would fix it ?
    Sorry about that. I'm not on Win so I only tested in FF and Safari. Here's content for the index.html page that will allow it to work with IE. It's less elegant (JavaScript) but handles those w/ out JavaScript by giving them a link to click.

    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>

  13. #13
    Registered User
    Join Date
    Jan 2011
    Posts
    2

    Default Re: Direct login in roundcube webmail

    Hi.
    First of all, sorry for my spell mistakes.
    I have exactly the same problem, and i dont have access to cPanel directory, but still I want to put some log-in form on my webpage that send users directly to roundcube client.
    Is anything changed in this matter? Is this option now avaiable?
    And if not, maybe someone will help me with this:
    When I entering url directly to my roundcube cilent (like "https://myDomain:2096/3rdparty/roundcube/?_task=mail") withoun being log in, I get some kind of pop-up window with log-in form. When I type my log/pass Im send directly to roundcube. It is exactly the effect what I want, but withaut the pop-up window. I want form on my site.
    My question is: How I can communicate with this window to automatically send log/pass? Or, how this window works? Or where it sends the data?

  14. #14
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb Re: Direct login in roundcube webmail

    Quote Originally Posted by Asver View Post
    And if not, maybe someone will help me with this:
    When I entering url directly to my roundcube cilent (like "https://myDomain:2096/3rdparty/roundcube/?_task=mail") withoun being log in, I get some kind of pop-up window with log-in form. When I type my log/pass Im send directly to roundcube. It is exactly the effect what I want, but withaut the pop-up window. I want form on my site.
    The browser pop-up window is displayed because your server is configured to use HTTP Authentication. To log-in using an HTML-form you will need to disable HTTP Authentication so that cookie authentication will be used, which will avoid the pop-up-style log-in prompt.

    This change can be accomplished using WebHost Manager via the following menu path (with linked documentation): WHM: Main >> Server Configuration >> Tweak Settings >> Security >> Enable HTTP Authentication [?] Enable HTTP Authentication for cPanel/WebMail/WHM Logins. This risks certain types of XSRF attacks that rely on cached HTTP Auth credentials. Disabling forces cookie authentication.

  15. #15
    Member beddo's Avatar
    Join Date
    Jan 2007
    Location
    England
    Posts
    145
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: Direct login in roundcube webmail

    Hi,
    I am trying to set up something similar and the roundcuberedirect.html file seems to work only if you do not use security tokens. Can anyone suggest the extra code needed to make the redirect security token aware?
    Thanks.

Similar Threads & Tags
Similar threads

  1. Webmail roundcube re-auth after login
    By little_oak in forum E-mail Discussions
    Replies: 3
    Last Post: 12-17-2010, 06:59 AM
  2. secure cpanel/roundcube webmail login script
    By salvatore333 in forum E-mail Discussions
    Replies: 4
    Last Post: 10-22-2009, 10:05 PM
  3. solution allow direct login to webmail horde
    By hicom in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-06-2006, 01:48 PM
  4. Replies: 2
    Last Post: 08-22-2005, 09:52 PM
  5. Direct Login to Horde Webmail
    By wimp in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-29-2003, 04:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube