Unable to access the webmail, an attempt fails with the following error:
Error connecting to mail server
The following error can be observed in the
2014-04-10T16:49:35+02:00 ERR: HORDE [horde] FAILED LOGIN for firstname.lastname@example.org (email@example.com) [X.X.X.X] to Horde [pid 525926 on line 211 of "/usr/share/psa-horde/login.php"]
Imap connection works but it starts with connecting to IPv6:
# telnet localhost 143 Trying ::1... telnet: connect to address ::1: Connection timed out Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.
The issue is caused by the fact that connection to localhost resolves to IPv6 loop-back interface.
Make localhost to resolve to IPv4:
disable IPv6 loopback "::1" entry in the
/etc/hosts(comment it out)
# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 #::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
remove 'localhost localhost.localdomain' from IPv6 loopback "::1" in the
# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost6 localhost6.localdomain6