Cannot login to Horde Webmail (Plesk): Login Failed

PROBLEM:

While Login into Webmail it returns the error: “Login failed”

The error indicates that the mail.example.com DNS record cannot be fixed correctly from the Webmail management node. This may happen when you log in to your best cPanel reseller hosting or Plesk account to search for a domain name for which you have bought the hosting. 

 This error occurs while interacting with the server and there has been no contact with the server for some time.

SOLUTION:

Make sure that it is possible to connect to localhost:143 from the command line using telnet. If you get the error as below:

# telnet localhost 143
localhost/143: Name or service not known

then check /etc/hosts file. It must have permissions -rw-r–r– and contain the record for localhost in the following format:

127.0.0.1       localhost localhost.localdomain

Above is from From Parallels Knowledgebase

If /var/log/psa-horde/psa-horde.log shows something like:

FAILED LOGIN xx.xx.xx.xx to localhost:143[imap/notls] as me@mydomain.co.uk
FAILED LOGIN xx.xx.xx.xx to localhost:143[imap/notls] as me@mydomain.co.uk

The Plesk Control Panel is configured to assist you to set up your personal linux kvm vps hosting packages and give them to the top consumer. It automates all the administration duties for you providing you time to concentrate on the other crucial features of your business.

When the server may be momentarily unavailable or due to some network issues may be obstructing your session. You will not able to view any updates until your connection is restored again.

I have searched regarding this but unable to find any fix so, I just re-installed the IMAP Service on the server. Following are the steps using which I have re-installed IMAP Server:

1) You can find the RPMS used by Plesk in /root/psa/PSA_version directory OR you can download the Tar (Not Autoinstaller) containing RPMS from Parallels website http://www.parallels.com/en/download/ (need registration it’s free)

2) go to the RPM directory which contains courier Imap RPM’s
#cd [path to the PSA RPM Directory]/dist-rpm-CentOS-4.2-i386/base/

3) Re-install courier-imap-3.0.8-cos4.build81070322.16.i586.rpm and psa-courier-imap-add-8.1.1-cos4.build81070322.16.i586.rpm which will automatically restart the services too

[root@vps base]# pwd
/root/plesk/dist-rpm-CentOS-4.2-i386/base
[root@vps base]# rpm -Uvh courier-imap-3.0.8-cos4.build81070322.16.i586.rpm psa-courier-imap-add-8.1.1-cos4.build81070322.16.i586.rpm –force
Preparing… ########################################### [100%]
Reloading configuration: [ OK ]
1:courier-imap ########################################### [ 50%]
Stopping Courier-IMAP server:
Stopping imap [ OK ]
Stopping imap-ssl [ OK ]
Stopping pop3 [ OK ]
Stopping pop3-ssl [ OK ]

Starting Courier-IMAP server:
Starting imapd [ OK ]
Starting imap-ssl [ OK ]
Starting pop3 [ OK ]
Starting pop3-ssl [ OK ]

2:psa-courier-imap-add ########################################### [100%]
Stopping Courier-IMAP server:
Stopping imap [ OK ]
Stopping imap-ssl [ OK ]
Stopping pop3 [ OK ]
Stopping pop3-ssl [ OK ]

Starting Courier-IMAP server:
Starting imapd [ OK ]
Starting imap-ssl [ OK ]
Starting pop3 [ OK ]
Starting pop3-ssl [ OK ]

[root@vps base]# netstat -nap | grep :143
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 1657/couriertcpd
[root@vps base]# telnet localhost 143
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.

After this I was able to login into Webmail without any problem. I hope this will help other to fix the issue too

About: Mike

Milind Koyande loves to work on new technologies specially virtualization and troubleshoot server problems. I’m an avid photographer and love to spend my free time close to nature, trying to capture its glory on my camera.


5 thoughts on “Cannot login to Horde Webmail (Plesk): Login Failed”

  1. Had this problem pop-up yesterday after trying to restart courier-imap.. Since as of PLESK 10 you are not allowed to remove individual packages i could’nt reinstall the package as described above.

    Fixed the problem by editing the imapd

    Added [code]AUTH=CRAM-MD5 AUTH=CRAM-SHA1[/code] to IMAP_CAPABILITY

  2. Great blog here! Additionally your web site rather a lot up fast! What web host are you the usage of? Can I get your associate hyperlink on your host? I want my website loaded up as fast as yours lol

This site uses Akismet to reduce spam. Learn how your comment data is processed.