Menu

#6 Webmail doesn't work in cPanel 11.1

open
nobody
5
2007-01-18
2007-01-18
Anonymous
No

Our hostingprovider has upgraded his version of cPanel to version number 11. Now my cpanelproxy install stopped working. After logging in, it refers to an URL with portnumber 2095, so proxying fails...

Discussion

  • Nobody/Anonymous

    Logged In: NO

    It is important that this proxy system will work on the new cPanel 11.1 system! This will be soon the official release which are supported... could you fix it soon?

     
  • Nobody/Anonymous

    Logged In: NO

    To clarify this ticket, as another party with this same problem,

    It orginally goes to 80, then jumps over to port 2095 after requiring you to Auth again. The only way that I can figure this out, is not to login in, and find out hte URL for the client that your trying to use, and then use that THEN login.

     
  • Nobody/Anonymous

    Logged In: NO

    I also have a problem now that my host has upgraded to cPanel 11.
    When I use www.domainname.com.au/webmail everything works fine.
    But when I use webmail.domainname.com.au it asks me for a username and password twice!
    After I do it twice it then goes in and works fine.
    I have to do this everytime I use the cpanel proxy and its annoying!

     
  • Janos Kormendi

    Janos Kormendi - 2007-08-04

    Logged In: YES
    user_id=688886
    Originator: NO

    The problem is that cPanel 11 redirects the browser to /webmail/<skin_name> by using "Location:" header, and cPanel Proxy doesn't replace /webmail references in the header. Here is my quickfix:

    Original code

    while (true) {
    $data = fgets($server, 10240); // FIXME: Can we optimize here with another buffer-size?
    if (strlen(trim($data))==0) break;

    // Fix hostname in redirects, cookies...
    $data = str_replace(
    array('localhost:2095', 'localhost:2082', 'localhost:2086'),
    array($webmailhost, $cpanelhost, $whmhost),
    $data);
    if (substr($data, 0, 11) == 'Set-Cookie:') {
    $data = str_replace(
    '; domain=localhost',
    '; domain='.$_SERVER['HTTP_HOST'],
    $data);
    }

    header($data, false);
    }

    Fixed code

    while (true) {
    $data = fgets($server, 10240); // FIXME: Can we optimize here with another buffer-size?
    if (strlen(trim($data))==0) break;

    // Fix hostname in redirects, cookies...
    $data = str_replace(
    array('localhost:2095', 'localhost:2082', 'localhost:2086'),
    array($webmailhost, $cpanelhost, $whmhost),
    $data);
    if (substr($data, 0, 11) == 'Set-Cookie:') {
    $data = str_replace(
    '; domain=localhost',
    '; domain='.$_SERVER['HTTP_HOST'],
    $data);
    }

    $data = preg_replace('_(\'|"|=|Location: )/webmail_', '$1/webmail_', $data); //<= This is the fix
    header($data, false);
    }

    Hope it works for you...

     
  • Nobody/Anonymous

    Logged In: NO

    Any idea when this will be resolved. Strangely accessing webmail via the button within cpanel does not create such problem. Now I would like to know how I can configure another mailbox to this icon or maybe even add icons.

     
  • Bruno Braga

    Bruno Braga - 2007-10-11

    Logged In: YES
    user_id=1167649
    Originator: NO

    Cpanel 11 support:

    http://oderlandblogg.com/?p=69

     
  • Nobody/Anonymous

    Logged In: NO

    The fix presented by jkormendi seems to work well.

     
  • excalabyte

    excalabyte - 2007-12-02

    Logged In: YES
    user_id=1950638
    Originator: NO

    Working Fix : http://community.nethosted.co.uk/post_14258.html

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.