Horde webmail does not accept valid login credentials, I get the following error trying to login via the web interface:
Error: Login failed.
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 email@example.com 01 OK LOGIN Ok.
- I enabled Horde debug log and Courier-IMAP debug logs, but did not find any errors.
- The issue is caused by IMAP SSL misconfiguration, for example incorrect path to SSL certificate in
/etc/courier-imap/imapd-sslconfiguration file is mentioned.
- Incorrect permissions for certificate.
/etc/courier-imap/imapd-sslfile, 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
TLS_CERTFILEdirective has value
certificate.pemthen make sure that for every IP address "aaa.bbb.ccc.ddd" where
courier-imapis listening and serving clients (including '
localhost') there exists a certificate file named
$TLS_CERTFILE.aaa.bbb.ccc.ddd. For example,
/usr/share/certificate.pem.127.0.0.1and so on, for each IP address.
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