Unable to login to Horde webmail: "Error connecting to mail server"

Created:

2016-11-16 13:02:02 UTC

Modified:

2017-08-16 17:39:10 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to login to Horde webmail: "Error connecting to mail server"

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux

Symptoms

  1. When attempting to log in to Horde webmail, you see the following error:

    Error connecting to mail server.
  2. You are unable to telnet localhost on port 143:

    # telnet localhost 143
    telnet: localhost: Name or service not known
    localhost: Unknown host

Cause

  1. The 127.0.0.1 localhost entry is missing in the /etc/hosts file.

  2. Name Service Switch misconfiguration.

Resolution

  1. Add the 127.0.0.1 localhost entry to the /etc/hosts file

  2. Check the /etc/nsswitch.conf file, making sure that there are no duplicate entries for the hosts service (there is only one line that describes the hosts):

    ~#grep hosts /etc/nsswitch.conf
    #hosts: db files nisplus nis dns
    hosts: files dns

Related articles:

Please also refer to the following article, which describes the similar issue:

Have more questions? Submit a request
Please sign in to leave a comment.