Horde webmail does not accept valid login credentials: "Error: Login failed"

Created:

2016-11-16 12:44:28 UTC

Modified:

2017-04-24 11:17:41 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Horde webmail does not accept valid login credentials: "Error: Login failed"

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

  1. Horde webmail does not accept valid login credentials, I get the following error trying to login via the web interface:

    Error: Login failed.
  2. IMAP login via telnet works fine:

    ~# telnet localhost 143
    * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=PLAIN IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.
    01 login admin@example.com
    01 OK LOGIN Ok.
  3. I enabled Horde debug log and Courier-IMAP debug logs, but did not find any errors.

Cause

  1. The issue is caused by IMAP SSL misconfiguration, for example incorrect path to SSL certificate in /etc/courier-imap/imapd-ssl configuration file is mentioned.
  2. Incorrect permissions for certificate.

Resolution

  1. Check /etc/courier-imap/imapd-ssl file, make sure that valid path to the certificate is set:

    ~# grep TLS_CERTFILE /etc/courier-imap/imapd-ssl
    TLS_CERTFILE=/usr/share/imapd.pem
    ~# ls -la /usr/share/imapd.pem
    -r-------- 1 root root 3046 Sep 25 02:12 /usr/share/imapd.pem

    If TLS_CERTFILE directive has value certificate.pem then make sure that for every IP address "aaa.bbb.ccc.ddd" where courier-imap is listening and serving clients (including ' localhost ') there exists a certificate file named $TLS_CERTFILE.aaa.bbb.ccc.ddd . For example, /usr/share/certificate.pem.192.168.0.2 , /usr/share/certificate.pem.127.0.0.1 and so on, for each IP address.

  2. Check permissions and owners for certificates in /usr/local/psa/var/certificates/ , they should be like:

    ~]# ll /usr/local/psa/var/certificates/
    -r-------- 1 root root 3048 Aug 7 05:59 cert-jBqqCd
Have more questions? Submit a request
Please sign in to leave a comment.