Login to Horde webmail is unreasonably slow

Created:

2016-11-16 12:57:08 UTC

Modified:

2017-08-16 18:29:36 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Login to Horde webmail is unreasonably slow

Applicable to:

  • Plesk 10.x for Linux
  • Plesk 12.5 for Linux

Symptoms

Login to Horde webmail takes an unreasonably long time (up to 10 seconds or more) when the IP address from which the login attempt is made cannot be resolved into the fully qualified domain name.

Cause

During the authentication sequence, Horde webmail is trying to resolve the IP address from which the login attempt is made. In case a reverse resolution record for the IP address is not set, the query fails due to an internal timeout which is noticeable.

Resolution

Ensure that the correct IP of DNS server is specified in /etc/resolv.conf on webmail node.

OR

Disable reverse resolution attempts made by Horde webmail during authentication attempts:

  1. Login to the Horde webmail host and locate the file Auth.php:

    ~# find /usr/local/pem/sysvhosts/ -name Auth.php
    /usr/local/pem/sysvhosts/webmail/webmail/516/lib/Horde/Auth.php
  2. Make a backup copy of the Auth.php file:

    ~# cp Auth.php Auth.php.orig
  3. Alter the following code line in the Auth.php file:

    function setAuth($userId, $credentials, $realm = null, $changeRequested = false)
    {
    .....
    $last_login = array('time' => time(),
    'host' => @gethostbyaddr($host));
    .....

    This part should look like:

    function setAuth($userId, $credentials, $realm = null, $changeRequested = false)
    {
    .....
    $last_login = array('time' => time(),
    'host' => $host);
    .....
Have more questions? Submit a request
Please sign in to leave a comment.