• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Server responded: -ERR Login failed

AandCmedia

Basic Pleskian
Whenever I try and login to a Webmain on a domain through Atmail I get this: Server responded: -ERR Login failed
When I try and login via Horde it just says wrong username/password. I am not sure whats going on can anyone help!
 
Plesk/MU version, OS, architecture?

Relevant messages from /usr/local/psa/var/log/maillog?

It happened with Plesk 11 and 11.5 on 11.5 now. CentOS 5.5 64bit

Messages from:
Jun 28 04:34:25 aandcmediaconsulting courier-pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 28 04:34:25 aandcmediaconsulting courier-pop3d: LOGOUT, ip=[::ffff:127.0.0.1]
Jun 28 04:34:25 aandcmediaconsulting courier-pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jun 28 04:34:25 aandcmediaconsulting courier-pop3s: Connection, ip=[::ffff:127.0.0.1]
Jun 28 04:34:25 aandcmediaconsulting courier-pop3s: LOGOUT, ip=[::ffff:127.0.0.1]
Jun 28 04:34:25 aandcmediaconsulting courier-pop3s: Disconnected, ip=[::ffff:127.0.0.1]
Jun 28 04:39:27 aandcmediaconsulting courier-imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 28 04:39:27 aandcmediaconsulting courier-imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=12, sent=365
Jun 28 04:39:27 aandcmediaconsulting courier-imaps: Connection, ip=[::ffff:127.0.0.1]
Jun 28 04:39:27 aandcmediaconsulting courier-imaps: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=12, sent=356
Jun 28 04:39:27 aandcmediaconsulting courier-pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 28 04:39:27 aandcmediaconsulting courier-pop3d: LOGOUT, ip=[::ffff:127.0.0.1]
Jun 28 04:39:27 aandcmediaconsulting courier-pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jun 28 04:39:27 aandcmediaconsulting courier-pop3s: Connection, ip=[::ffff:127.0.0.1]
Jun 28 04:39:27 aandcmediaconsulting courier-pop3s: LOGOUT, ip=[::ffff:127.0.0.1]
Jun 28 04:39:27 aandcmediaconsulting courier-pop3s: Disconnected, ip=[::ffff:127.0.0.1]
Jun 28 04:44:29 aandcmediaconsulting courier-imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 28 04:44:29 aandcmediaconsulting courier-imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=12, sent=365
 
Sorry, I didn't catch that. It happened with Plesk 11.0.9 MU#55 and then you upgraded to 11.5.30 and it still happens? Or you meant something else? Or do you have a clean installation of Plesk 11.5?

Are you sure your login/password are correct? Did you try changing them? Does any other mail client software work with your server?
 
I had it with both 11.0.9 and upgraded to 11.5.30 and it still happens. Not a clean install.

The login/password are correct. I have tried changing them. I have not tried other mail services.
 
Please check that all mail services are running:

# plesk sbin mailmng-service --status-service

Try using telnet to connect to mail server:

# { printf "CAPA\nUSER %s\nPASS %s\n" [email protected] passwd; sleep 5; echo QUIT; sleep 1; } | telnet localhost pop3

Replace underlined parameters with valid login (mail address) and password.

Then post command output and any new entries from maillog.
 
Please check that all mail services are running:

# plesk sbin mailmng-service --status-service

Try using telnet to connect to mail server:

# { printf "CAPA\nUSER %s\nPASS %s\n" [email protected] passwd; sleep 5; echo QUIT; sleep 1; } | telnet localhost pop3

Replace underlined parameters with valid login (mail address) and password.

Then post command output and any new entries from maillog.


mta is running
pop3 is running
pop3s is running
imap is running
imaps is running
authdaemon is running
milter is running




Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there. <[email protected]>
+OK Here's what I can do:
SASL LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256 PLAIN
STLS
USER
TOP
LOGIN-DELAY 10
PIPELINING
UIDL
IMPLEMENTATION Courier Mail Server
.
+OK Password required.
-ERR Login failed.
+OK Better luck next time.
Connection closed by foreign host.
 
Nothing new in maillog?

OK, let's turn on debug logging: edit /etc/courier-imap/authlib/authdaemonrc and set DEBUG_LOGIN=2 . Then restart authdaemond:

# service courier-authdaemon restart

Warning: with debug logging on, passwords may be output to log. So be careful.

Now repeat the test with telnet and post new entries from the log.
 
Jun 28 13:47:57 aandcmediaconsulting courier-pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 28 13:47:57 aandcmediaconsulting courier-authdaemon: received auth request, service=pop3, authtype=login
Jun 28 13:47:57 aandcmediaconsulting courier-authdaemon: authpsa: trying this module
Jun 28 13:47:57 aandcmediaconsulting courier-authdaemon: authpsa: authentication request with service='pop3' authtype='login' authdata='[email protected].PASSWORD.'
Jun 28 13:47:57 aandcmediaconsulting courier-authdaemon: authpsa: auth_psa_common(user='[email protected]', pass='PASSWORD')
Jun 28 13:47:57 aandcmediaconsulting authpsa[11388]: No such user '[email protected]' in mail authorization database
Jun 28 13:47:57 aandcmediaconsulting courier-authdaemon: authpsa: account information for '[email protected]' was not found
Jun 28 13:47:57 aandcmediaconsulting courier-pop3d: LOGIN FAILED, [email protected], ip=[::ffff:127.0.0.1]
Jun 28 13:47:57 aandcmediaconsulting courier-authdaemon: authpsa: sysusername=popuser, sysuserid=110, sysgroupid=31, homedir=<null>, address=<null>, fullname=<null>, maildir=<null>, quota=<null>, options=<null>
Jun 28 13:47:57 aandcmediaconsulting courier-authdaemon: authpsa: clearpasswd=<null>, passwd=<null>
Jun 28 13:47:57 aandcmediaconsulting courier-authdaemon: authpsa: REJECT - try next module
Jun 28 13:47:57 aandcmediaconsulting courier-authdaemon: FAIL, all modules rejected
Jun 28 13:48:02 aandcmediaconsulting courier-pop3d: LOGOUT, ip=[::ffff:127.0.0.1]
Jun 28 13:48:02 aandcmediaconsulting courier-pop3d: Disconnected, ip=[::ffff:127.0.0.1]
 
OK, good. This means that mail subsystem doesn't know about your account. You can verify that with following command (it will not contain entries for mailbox you just tested):

# plesk sbin mail_auth_view

Please check that your domain is not suspended and mail service on it is active.

To update mail subsystem settings from Plesk DB execute:

# /usr/local/psa/admin/sbin/mchk --fast
 
Back
Top