1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Horde Broken?

Discussion in 'Plesk for Linux - 8.x and Older' started by deeplist, Dec 4, 2006.

  1. deeplist

    deeplist Guest

    0
     
    I don't know if anybody else is having similar issues. I upgraded and everything functions fine except for Horde. The mail server is still working because I can retreive my mail via IMAP using a different service, but Horde doesnt want to validate anymore. I know it will only be a matter of time before people start complaining. Any suggestions or solutions at this point?
     
  2. deeplist

    deeplist Guest

    0
     
    Well, this has been a really disappointing evening. My clients are upset because they can't log into their Horde accounts to check their mail.

    Could somebody point me in a direction of what to check or look for? I would really like to get this mail issue resolved as soon as possible. I really regret updating Plesk at this time. :(
     
  3. deeplist

    deeplist Guest

    0
     
    okay, well could somebody post their conf.php file from:

    /etc/psa-horde/horde/
     
  4. 105547111

    105547111 Silver Pleskian

    32
    30%
    Joined:
    Jul 13, 2006
    Messages:
    643
    Likes Received:
    2
    <?php
    /* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
    // $Horde: horde/config/conf.xml,v 1.74.2.41 2006/08/04 17:13:25 jan Exp $
    /**
    * Plesk predefined configuration for Horde3
    **/

    $conf['debug_level'] = E_ERROR;
    $conf['max_exec_time'] = 0;
    $conf['use_ssl'] = 2;
    $conf['server']['name'] = $_SERVER['SERVER_NAME'];
    $conf['server']['port'] = $_SERVER['SERVER_PORT'];
    $conf['compress_pages'] = true;
    $conf['umask'] = 077;
    $conf['session']['name'] = 'Horde3';
    $conf['session']['cache_limiter'] = 'nocache';
    $conf['session']['timeout'] = 0;
    $conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
    $conf['cookie']['path'] = '/';
    $conf['sql']['persistent'] = false;
    $conf['sql']['hostspec'] = 'localhost';
    $conf['sql']['username'] = 'horde';
    $conf['sql']['socket'] = '/var/lib/mysql/mysql.sock';
    $conf['sql']['protocol'] = 'unix';
    $conf['sql']['database'] = 'horde';

    // get password from /etc/psa/.webmail.shadow
    if (!($fd = fopen("/etc/psa/.webmail.shadow", "r"))) {
    echo "<script>alert('Unable to get webmail password!')</script>";
    exit();
    }
    fscanf($fd, "%s", $buff);
    fclose($fd);

    $conf['sql']['password'] = preg_replace("/\n/", "", $buff);
    $conf['sql']['charset'] = 'utf8';
    $conf['sql']['phptype'] = 'mysql';
    $conf['auth']['admins'] = array();
    $conf['auth']['checkip'] = true;
    $conf['auth']['checkbrowser'] = true;
    $conf['auth']['alternate_login'] = false;
    $conf['auth']['redirect_on_logout'] = false;

    $conf['auth']['driver'] = 'composite';
    $conf['auth']['params']['drivers'] = array(
    'imp' => array('driver' => 'application',
    'params' => array('app' => 'imp')),
    'mimp' => array('driver' => 'application',
    'params' => array('app' => 'mimp')));

    $conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
    if (!function_exists('_horde_select_loginscreen')) {
    function _horde_select_loginscreen()
    {
    @define(HORDE_BASE,'/usr/share/psa-horde');
    require_once HORDE_BASE . '/lib/Horde/Browser.php';
    $browser = new Browser();
    if ($browser->isMobile() && $GLOBALS['registry']->applications['mimp']){
    return 'mimp';
    }
    return 'imp';
    }
    }

    $conf['signup']['allow'] = false;
    $conf['log']['priority'] = PEAR_LOG_ERR;
    $conf['log']['ident'] = 'HORDE';
    $conf['log']['params'] = array();
    $conf['log']['name'] = '/var/log/psa-horde/psa-horde.log';
    $conf['log']['params']['append'] = true;
    $conf['log']['type'] = 'file';
    $conf['log']['enabled'] = true;
    $conf['log_accesskeys'] = false;
    $conf['prefs']['params']['driverconfig'] = 'horde';
    $conf['prefs']['driver'] = 'sql';
    $conf['datatree']['params']['driverconfig'] = 'horde';
    $conf['datatree']['driver'] = 'sql';
    $conf['group']['driver'] = 'datatree';
    $conf['cache']['default_lifetime'] = 1800;
    $conf['cache']['params']['dir'] = Horde::getTempDir();
    $conf['cache']['params']['gc'] = 86400;
    $conf['cache']['driver'] = 'file';
    $conf['mailer']['params']['host'] = 'localhost';
    $conf['mailer']['params']['auth'] = '0';
    $conf['mailer']['type'] = 'smtp';
    $conf['vfs']['params']['vfsroot'] = '/tmp';
    $conf['vfs']['type'] = 'file';
    $conf['sessionhandler']['type'] = 'none';
    $conf['mime']['magic_db'] = ' /usr/share/misc/magic';
    $conf['problems']['email'] = 'webmaster@example.com';
    $conf['problems']['maildomain'] = 'example.com';
    $conf['problems']['tickets'] = false;
    $conf['menu']['apps'] = array();
    $conf['menu']['always'] = false;
    $conf['menu']['links']['help'] = 'all';
    $conf['menu']['links']['help_about'] = true;
    $conf['menu']['links']['options'] = 'authenticated';
    $conf['menu']['links']['problem'] = 'never';
    $conf['menu']['links']['login'] = 'all';
    $conf['menu']['links']['logout'] = 'authenticated';
    $conf['hooks']['permsdenied'] = false;
    $conf['hooks']['username'] = false;
    $conf['hooks']['preauthenticate'] = false;
    $conf['hooks']['postauthenticate'] = false;
    $conf['hooks']['authldap'] = false;
    $conf['portal']['fixed_blocks'] = array();
    $conf['accounts']['driver'] = 'null';
    $conf['imsp']['enabled'] = false;
    $conf['kolab']['enabled'] = false;
    $conf['token']['params']['driverconfig'] = 'horde';
    $conf['token']['driver'] = 'sql';
    $conf['css']['cached'] = true;
    /* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */
     
  5. deeplist

    deeplist Guest

    0
     
    Okay, I tried resetting all my values in the config file back to the defaults from the post you made and it didn't do any good. However, I do appreciate you posting that. Thank you.
     
  6. 105547111

    105547111 Silver Pleskian

    32
    30%
    Joined:
    Jul 13, 2006
    Messages:
    643
    Likes Received:
    2
    Sorry to hear that :(

    Damn this Plesk 8.1 got more holes in it than a bullseye target at a shooting range!
     
  7. Cancel

    Cancel Guest

    0
     
    What error shows Horde webpage?
     
  8. deeplist

    deeplist Guest

    0
     
    At the time it showed nothing it would attempt to log in and then after a while it would return and say "login failed" and that is as far as it would go.

    We did manage to find out that the cause was an IMAP misconfiguration. After IMAP was configured correctly, the problem with Horde was resolved instantly.

    Just a heads up in case somebody else may be having the same problem.
     
  9. by88

    by88 Guest

    0
     
    Same problem here with plesk 8.1 + php5 + mysql5.

    All is working fine but horde does not authenticate users.

    What was the IMAP misconfiguration you have found?

    Thank You in advance for you help.
     
  10. deeplist

    deeplist Guest

    0
     
    Well, I had my server tech fix the issue because I was tired of messing with it. You can email him here: sam@activelobby.net

    His rate is $15 per hour and I guarantee that he can resolve your issues in no time.

    Also, how well is php5 and mysql5 working out on your plesk box? I was affraid to upgrade my php and mysql for fear that it would cause plesk to break.
     
  11. blutkind

    blutkind Guest

    0
     
    This is NOT an IMAP issue AT ALL.. That's kind of bs from your dev. It's a SIMPLE fix. SSH into your server or go into windows, whatever it may be, find your dandy way to C:\WINDOWS\php.ini or /etc/php.ini find the line session.auto_start = 1 change that 1 to a 0 restart apache, have a good day webmail should work.
     
  12. jbrouhard

    jbrouhard Guest

    0
     
    I'm having the exact same problem as I've posted in another thread.

    I checked my php.ini, but session.auto_start = 0 is already set and i cannot log in using webmail.

    I could almost guarantee this has to do with either IMAP or it's Horde itself.
     
  13. blutkind

    blutkind Guest

    0
     
    Post back some portions of /usr/local/psa/var/log/maillog it should show "LOGIN ...." paste about 10-15 lines of that here i'll take a look.
     
  14. jbrouhard

    jbrouhard Guest

    0
     
    please note that the timer on the server is a little off. Approximately 3pm my time (1500 on the server) i started using the Thunderbird mail client.

     
  15. deeplist

    deeplist Guest

    0
     
    It is in fact an imap issue. My php.ini variables were already set correctly. At first I figured horde's sessions were messed up, but it wasn't with Horde at all. IMAP was reconfigured and boom, problem solved.
     
  16. Mathi

    Mathi Guest

    0
     
    hello,

    checking the /etc/hosts file of the following entries

    localhost localhost.domain


    that was missing in my file (/etc/hosts)

    Mathi
     
  17. jbrouhard

    jbrouhard Guest

    0
     
    Well, i'll be damned. *THAT* was the problem.

    Many thanks!
     
  18. digiter

    digiter Guest

    0
     
    Hello.

    I've the etc/host correctly configured
    127.0.0.1 name1 name2
    local_IP name2 name3

    but the Horde doesn't autenticate the user before a patch that i made to the imap configuration related to Horde.

    i've changed in file
    /usr/share/psa-horde/imp/config/server.php

    the line

    'server' =>'localhost',

    with

    'server' => 'the_IP_Addres_of_my_Server',

    and now the problem is fixed!

    I can access at my webmail using

    webmail.domainnane.domainext
     
  19. rviradia

    rviradia Guest

    0
     
    Thanks, you saved me alot of time and the wait of a swsoft ticket, but 8.1 has given me many problems in general on the 4 clients who wanted to be early adopters, now if someone asks I tell them to wait since it's too buggy!

    To help someone with the same problem, I'm including my psa-horde.log so when someone searches for it they find it;

    HORDE [error] [imp] FAILED LOGIN xx.xxx.xxx.xxx to localhost:143[imap/notls] as test@xxxxxxxx.com [on line 258 of "/usr/share/psa-horde/imp/lib/Auth/imp.php"]

     
  20. jbrouhard

    jbrouhard Guest

    0
     
    For security purposes, I've heard of removing the Localhost line is a decent concept, but you need to point 127.0.0.1 to localhost for some very specific apps to work.

    IMHO, anytime you do a fresh install or a upgrade, double-check the /etc/hosts file from now on and be sure it exists. if not, then there's a problem :)
     
Loading...