[Dovecot] Dovecot connection problem - Too many invalid commands (no auth attempts) - v2.0.19
Hello.
This might be a silly problem, but I'm a bit a newbie at this, and the internet didn't give me a solution to this yet.
I installed a mail server with postfix, dovecot, postfixadmin and a mysql DB for authentification, using this tutorial : <http://www.exratione.com/2012/05/a-mailserver-on-ubuntu-1204-postfix-doveco t-mysql/> http://www.exratione.com/2012/05/a-mailserver-on-ubuntu-1204-postfix-dovecot -mysql/. Except step 4. The complete tutorial worked on a virtual machine, but doesn't work here on a vps from ovh.net.
Connecting via telnet localhost 143 works, I can connect.
When I try to connect via thunderbird, the domain name is picked up, but gives me a bad login/password combination. Mail.log, mail.err and error don't show anything.
Via MS Outlook, I seem to get stuck on the connection page, and I get the following errors in mail.log:
dovecot: imap-login: Disconnected: Too many invalid commands (no auth attempts): rip=x, lip=y
dovecot: pop3-login: Disconnected (no auth attempts): rip=x, lip=y
dovecot: imap-login: Disconnected (no auth attempts): rip=x, lip=y, TLS: Disconnected
dovecot: pop3-login: Disconnected (no auth attempts): rip=x, lip=y, TLS: Disconnected
dovecot: pop3-login: Aborted login (no auth attempts): rip=x, lip=y
dovecot: imap-login: Disconnected (no auth attempts): rip=x, lip=y, TLS: Disconnected
dovecot: imap-login: Disconnected (no auth attempts rip=x, lip=y
dovecot: imap-login: Disconnected (no auth attempts): rip=x, lip=y, TLS handshaking: Disconnected
dovecot: pop3-login: Disconnected (no auth attempts): rip=x, lip=y, TLS handshaking: Disconnected
And after a while asks to try to connect via plain method.
Doveconf -n gives me this
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-042stab068.8 x86_64 Ubuntu 12.04.2 LTS simfs
auth_mechanisms = plain login
first_valid_uid = 150
last_valid_uid = 150
mail_gid = mail
mail_location = maildir:/var/vmail/%d/%n
mail_uid = vmail
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocols = " imap pop3"
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = mail
mode = 0600
user = vmail
}
}
ssl_cert =
ssl_key =
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
Hope you guys can help me, and thanks in advance for it.
Greetings,
Thomas Standaert
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 17 Apr 2013, Thomas Standaert wrote:
Did you enabled auth_debug in Dovecot ? When you use
telnet ip 143 1 login "user" "password"
does it work? MUAs do too much, when it does not work at once.
It it works, try using TLS e.g.:
gnutls-cli -p 143 --starttls localhost STARTTLS ^D 1 login "user" "password"
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUW6pqF3r2wJMiz2NAQJyCggAhNDwtOWw95OMs1UNNd9eK8qwc/3EZSZh uBEpRuMx4JyUzvpE5U8b51pmqwTFP+gsLokw2yMpX/9f1oD5/9MedKr8wsuGVq+G W3a4NnK2Go9MelD3Pk4brZv6QDDupFV3zugwePFpA8OM0Mzp93uq3kwK4cX6+BDu ePY4DMFdcT9zydtbXE3SJhx4eXIxJIMekH1y7QH6gaglfJ9+sapfN9AE4nVOtSkN Ydrk9TnJJ3e3i0UF1AknbMolWVF4Wa52RTcrZBkeTADz7Uv5Xn2bkVnG14zt4LN/ Vb9BIEqz2rJHJoSsBAamZU2pwkug3fbzIHs+bt6++5nneT/K3Vav9g== =H7z5 -----END PGP SIGNATURE-----
Hey Steffen, thanks for the quick response! I enabled auth-debug now in dovecot.
A normal telnet ip 143 works, after I put disable_plaintext_auth to no of course. I could connect, and see my folders. Mail.log didn't give me anything abnormal, and showed me neatly the connection and the sql querries. One abnormality though, just mentioning it, when I try to type in 1 login user password, I got a "BAD Error in IMAP command received by server." Or when I copy pasted the same thing (from the localhost terminal where I tried it there) it worked.
After that I tried gnutls-cli -p 143 --starttls localhost 1 STARTTLS ^D
It gave me following error: The hostname in the certificate does NOT match 'localhost' It's probably a certificate error (I use a self-signed, planning on buying one maybe later). I'm now digging google again, and triple checking each conf file. I added the hostname to the localhost entry of /etc/hosts, but no positive response yet.
Thank you again Greetings, Thomas Standaert
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Steffen Kaiser Sent: woensdag 17 april 2013 16:55 To: Dovecot Mailing List Subject: Re: [Dovecot] Dovecot connection problem - Too many invalid commands (no auth attempts) - v2.0.19
On Wed, 17 Apr 2013, Thomas Standaert wrote:
Did you enabled auth_debug in Dovecot ? When you use
telnet ip 143 1 login "user" "password"
does it work? MUAs do too much, when it does not work at once.
It it works, try using TLS e.g.:
gnutls-cli -p 143 --starttls localhost STARTTLS ^D 1 login "user" "password"
Steffen Kaiser
I had the same trouble. After trying just about everything else I could think of (selinux, conf files, etc) I managed to fix it by deleting and recreating the users mail file. Don't know why this should work and I would be interested if it works for you? Regards
-- View this message in context: http://dovecot.2317879.n4.nabble.com/Dovecot-connection-problem-Too-many-inv... Sent from the Dovecot mailing list archive at Nabble.com.
hie
i am a newbie to using dovecot and have been experiencing the same problem ,can you please assist with the solution
participants (4)
-
benson
-
diskdude
-
Steffen Kaiser
-
Thomas Standaert