Unable to log in to the webmail with valid credentials:
ERR Connection to IMAP server failed
Connection to storage server failed.
Error connecting to mail server
Following error could be found in
/var/log/plesk-roundcube/errors(in case of using roundcube webmail):
[15-Apr-2014 16:03:23 +0500]: IMAP Error: Login failed for firstname.lastname@example.org from X.X.X.X. Could not connect to mail.example.com.com:143: php_network_getaddresses: getaddrinfo failed: Name or service not known in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_imap.php on line 184 (POST /?_task=login&_action=login)
To authenticate user Webmail client connects remotely to the
mail.example.com mail server.
The error means that the
mail.example.com DNS record cannot be resolved properly from the Webmail node (the Management node by default). For example, if the
mail.example.com DNS record does not point to your mail server, you will not be able to login via webmail:
# nslookup mail.example.com ** server can't find mail.example.com: NXDOMAIN
# nslookup mail.nblp.nl ... Address: 126.96.36.199
where 188.8.131.52 is incorrect ip of mail server.
Make sure that
mail.example.com resolves to the mail server IP address from the webmail node:
Adjust DNS settings for the affected domain (Top > Services > DNS Zones > example.com > DNS > DNS Records > change (or add is there is not) A record for
As a temporary workaround, adjust the
/etc/hostsfile on the webmail node to fix the issue and then fix the DNS configuration:
# cat /etc/hosts 127.0.0.1 localhost.localdomain localhost 203.0.113.2 mail.example.com