• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

horde broken - Error connecting to IMAP server: [] .

105547111

Silver Pleskian
Okay IMAP is working, my iphone and ipad can connect by IMAP and see emails.

Whats up with horde? I have not touched the server and its broken. As soon as you try to log in you get thrown back to the login page with the message showing after the last successful login time:

Error connecting to IMAP server: [] .

What is interesting is the last successful login time does increase with each attempt. So horde is now broken as it can't connect to a running IMAP server when nothings been changed!

The horde logs are full of these:

May 20 10:48:43 HORDE [error] [imp] Error connecting to IMAP server: [] . [pid 21901 on line 347 of "/usr/share/psa-horde/imp/lib/IMAP/Client.php"]
@ @

I also can telnet to localhost on the correct port as in a kb article found to test.

Also I ran https://webmail.domain name.com/imp/test.php and it says it's okay. I then test the user, password and server and it's all error free except the SSL test as the certificate is self signed, but passes the next ssl check without certificate test.

IMP Version

IMP: H3 (4.3.9)
Other Horde Applications

dimp: No
DIMP provides an alternate display view using JavaScript.
gollem: No
Gollem provides access to local VFS filesystems to attach files.
ingo: Yes (Version: H3 (1.2.5))
mimp: Yes (Version: H3 (1.1.3))
nag: No
Nag allows tasks to be directly created from e-mail data.
turba: Yes (Version: H3 (2.3.5))
PHP Version

PHP Version: 5.3.6
PHP Major Version: 5.3
PHP Minor Version: 6
PHP Version Classification: release
This version of PHP has not been fully tested with this version of Horde.
PHP Module Capabilities

Internationalized Domain Names Support: No
IMP requires the idn module (installed via PECL) in order to handle Internationalized Domain Names.
IMAP Support: Yes
OpenSSL Support: Yes
Tidy support: No
If the tidy PHP extension is available, IMP can use it to sanitize the output of HTML messages before displaying to the user, and to clean outgoing HTML messages created in the HTML composition mode. See imp/docs/INSTALL for more information.
Miscellaneous PHP Settings

file_uploads enabled: Yes
Required IMP Configuration Files

config/conf.php: Yes
config/mime_drivers.php: Yes
config/prefs.php: Yes
config/servers.php: Yes
PEAR

PEAR Search Path (PHP's include_path): */usr/share/psa-horde:/usr/share/psa-horde/lib:/usr/share/psa-pear:.
PEAR: Yes
Recent PEAR: Yes
Auth_SASL: Yes
HTTP_Request: Yes
PHP Mail Server Support Test

Attempting to automatically determine the correct connection parameters for your server:
Trying protocol imap/notls, Port 143:
SUCCESS - INBOX has 362 messages (3 new 1 recent)
Trying protocol imap/ssl, Port 993:
ERROR - The server returned the following error message:
Certificate failure for xx.com: self signed certificate:
/C=USxxxxx
Trying protocol imap/ssl/novalidate-cert, Port 993:
SUCCESS - INBOX has 362 messages (3 new 0 recent)
Trying protocol imap/tls/novalidate-cert, Port 143:
SUCCESS - INBOX has 362 messages (3 new 0 recent)
The following configurations were successful and may be used in your imp/config/servers.php file:
Configuration 1
'server' => 'xx.com'
'protocol' => 'imap/notls'
'port' => '143'
Configuration 2
'server' => 'xx.com'
'protocol' => 'imap/ssl/novalidate-cert'
'port' => '993'
Configuration 3
'server' => 'xx.com'
'protocol' => 'imap/tls/novalidate-cert'
'port' => '143'
The following IMAP server information was discovered from the remote server:
Could not retrieve IMAP information from the remote server.

I have a feeling it was a plesk update that broke horde. I am running centos 5.6 x64.
 
Last edited:
Fixed!

In php.ini you have to allow:

escapeshellcmd popen

But now I also have to allow

fsockopen

Now it logs in again!
 
Back
Top