• 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 webmail login problem

D

diadem.support

Guest
Hello,

We are facing a strange issue with our Horde webmail access. After accessing webmail properly for sometime the login shows "Login failed". We have to restart the courier-imap service when it starts working again. Please suggest how to solve this issue.
 
Is there any suspicious errors in /var/log/psa-horde/psa-horde.log ?
 
The messages in the log( /var/log/psa-horde/psa-horde.log) are:


Feb 25 15:38:05 HORDE [error] [imp] Unknown IMAP response from the server. Server Responded: [on line 514 of "/usr/share/psa-horde/imp/lib/IMAP/Client.php"]


Feb 25 15:37:59 HORDE [error] [imp] FAILED LOGIN 59.165.45.4 to localhost:143[imap/notls] as [email protected] [on line 258 of "/usr/share/psa-horde/imp/lib/Auth/imp.php"]

Apart from these errors there are no other entry in the log file.
 
I guess there was a problem with too many open files. Issue is similar to described in article http://kb.odin.com/en/255 . Error messages are not the same but the reason is the very same.

Problem is caused by small FD_SETSIZE value and it is needed to recompile some system packages following instructions from article http://kb.odin.com/en/260 .

Another (easier) solution can be enabling piped logs (see article http://kb.odin.com/en/2066 )
Try it and inform with results.
 
Are there other possible causes of this?

We have a server that has had no customers added to it in over a year that after upgrading is now producing:

Unknown IMAP response from the server. Server Responded: [on line 514 of "/usr/share/psa-horde/imp/lib/IMAP/Client.php"]

It has less than 150 sites on it and the webmail is not frequently used by those customers, but some are reporting the login failures regularly. I see about 45 persistent imap connections to the server, which is far less than some of our other servers that aren't having this issue have. With those numbers I don't see how we could be coming anywhere near the FD_SETSIZE limit of 1024, apache at most should be using 600 if every site had ssl enabled, which they don't, and it's unusual for more than two or three people to be using webmail at the same time.
 
In my case this problem occurs when the e-mail traffic is high

I solved this problem changing some parameters in /etc/courier-imap/imapd file.

I increased the values of IMAP_IDLE_TIMEOUT and IMAP_ULIMITD
 
Back
Top