Applicable to:
- Plesk for Linux
Symptoms
-
Horde webmail login failed with the following message:
Login failed.
-
Log
/var/log/psa-horde/psa-horde.log
contains the following error:CONFIG_TEXT: WARN: HORDE [imp] [login] Could not open secure TLS connection to the IMAP server. [pid 35439 on line 732 of "/usr/share/psa-horde/imp/lib/Imap.php"]
ERR: HORDE [horde] FAILED LOGIN for john.doe@example.com (john.doe@example.com) [203.0.113.2] to horde [pid 35439 on line 216 of "/usr/share/psa-horde/login.php"] -
gnutls
library is installed on the server:-
On CentOS:
# rpm -qa | grep gnutls
gnutls-2.8.5-4.el6.x86_64 -
On Debian\Ubuntu:
# dpkg -l | grep gnutls
ii gnutls-bin 3.4.10-4ubuntu1.4
-
Cause
OS PHP interoperability issue with GNU TLS library.
Resolution
Note: This article may require additional administrative knowledge to apply. If any help required, contact the server’s administrator or hosting support.
Make sure the latest version of GNU TLS library is installed.
Alternatively, apply the following workaround:
-
Login to the server via SSH.
-
Create a backup of the Horde configuration file:
# cp -a /usr/share/psa-horde/imp/config/backends.php{,.bak}
-
Open file
/usr/share/psa-horde/imp/config/backends.php
with a text editor and change the IMAP configuration in Horde webmail by editing the lines:From:
CONFIG_TEXT: 'port' => 143
...
'secure' => 'tls'To:
CONFIG_TEXT: 'port' => 993
...
'secure' => 'ssl' -
Make sure that the final configuration for IMAP server looks like below in
/usr/share/psa-horde/imp/config/backends.php
file:CONFIG_TEXT: $servers['imap'] = array(
// ENABLED by default; will connect to IMAP port on local server
'disabled' => false,
'name' => 'IMAP Server',
'hostspec' => 'localhost',
'hordeauth' => false,
'protocol' => 'imap',
'port' => 993,
...
'secure' => 'ssl',
);
Comments
3 comments
I have implemented these changes and rebooted a couple times, but still the same exact error. I am using CentOS 7 and the latest Plesk and yum updates.
# rpm -qa | grep gnutls
gnutls-3.3.26-9.el7.x86_64
I need to add. I am not receiving this error upon login. I am able to log in and retrieve emails just fine. I see the error upon attempting to SEND emails in horde.
@Dan Wright
Seems like this article is not applicable for the case, as IMAP connection works correctly.
I can suggest checking
/var/log/psa-horde/psa-horde.log
,/var/log/maillog
for any errors happening during the SMTP transaction and then searching our Knowledge Base for a fitting article.Please sign in to leave a comment.