Strange Dovecot problem with roundcube

martino87rm

New member
Joined
Feb 18, 2013
Messages
3
Hello I have a problem with Dovecot and roundcube webmail.
I've tried and retried, debugged and cant' figure out how to fix the problem:

Whenever i try to login into Dovecot it gives first a problem saying that the login failed, and after a second retry it says the the connection to the storage server failed...
I've reinstalled roundcube a couple of times, even tried the latest beta version (0,9?) and recompiled - updated dovecot, none of the following fixes the issue.

Here are some strange logs:

Code:
From roundecube logs:

[18-Feb-2013 09:46:33 +0100]: IMAP Error: Login failed for [email protected] from 79.29.230.23. Empty startup greeting (127.0.0.1:143) in /var/www/html/roundcubemail-0.9-beta/program/lib/Roundcube/rcube_imap.php on line 184 (POST /roundcube/?_task=login&_action=login)


And then from the imap debug logs:

[16-Feb-2013 21:46:04 +0100]: [3802] S: A0001 OK ID completed.
[16-Feb-2013 21:46:04 +0100]: [3802] C: A0002 LOGIN [email protected] test1122
[16-Feb-2013 21:46:08 +0100]: [867E] C: A0001 LOGOUT
[16-Feb-2013 21:46:08 +0100]: [867E] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot DA ready.
[16-Feb-2013 21:46:08 +0100]: [867E] S: * BYE Logging out
[16-Feb-2013 21:46:08 +0100]: [867E] S: A0001 OK Logout completed.
[16-Feb-2013 21:51:14 +0100]: [D533] C: A0001 LOGOUT
[16-Feb-2013 21:51:17 +0100]: [6514] C: A0001 LOGOUT
[16-Feb-2013 21:51:17 +0100]: [6514] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot DA ready.
[16-Feb-2013 21:51:17 +0100]: [6514] S: * BYE Logging out
[16-Feb-2013 21:51:17 +0100]: [6514] S: A0001 OK Logout completed.
[16-Feb-2013 21:57:54 +0100]: [111A] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot DA ready.
[16-Feb-2013 21:57:54 +0100]: [111A] C: A0001 ID ("name" "Roundcube" "version" "0.9-beta" "php" "5.3.17" "os" "Linux" "command" "/roundcube/")
[17-Feb-2013 21:41:41 +0100]: [1035] C: A0001 LOGOUT
[17-Feb-2013 21:41:41 +0100]: [1035] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot DA ready.
[17-Feb-2013 21:41:41 +0100]: [1035] S: * BYE Logging out
[17-Feb-2013 21:41:41 +0100]: [1035] S: A0001 OK Logout completed.
[18-Feb-2013 09:46:25 +0100]: [CAF2] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot DA ready.
[18-Feb-2013 09:46:25 +0100]: [CAF2] C: A0001 ID ("name" "Roundcube" "version" "0.9-beta" "php" "5.3.17" "os" "Linux" "command" "/roundcube/")
[18-Feb-2013 09:46:25 +0100]: [CAF2] S: * ID NIL
[18-Feb-2013 09:46:25 +0100]: [CAF2] S: A0001 OK ID completed.
[18-Feb-2013 09:46:25 +0100]: [CAF2] C: A0002 LOGIN [email protected] test1122
[18-Feb-2013 09:46:33 +0100]: [291D] C: A0001 LOGOUT
[18-Feb-2013 09:46:33 +0100]: [291D] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot DA ready.
[18-Feb-2013 09:46:33 +0100]: [291D] S: * BYE Logging out
[18-Feb-2013 09:46:33 +0100]: [291D] S: A0001 OK Logout completed.


To me it looks like the roundcube is unable to parse any output from the postfix reply, looks like there is something wrong in the configuration file, but I can't figure which directive is involved, i have other servers without DA where everything works in a standard config.

dovecot.conf
Code:
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@&
auth_verbose = yes
disable_plaintext_auth = no
login_greeting = Dovecot DA ready.
mail_access_groups = mail
default_login_user = dovecot
mail_location = maildir:~/Maildir
passdb {
  driver = shadow
}
passdb {
  args = username_format=%n /etc/virtual/%d/passwd
  driver = passwd-file
}
protocols = imap pop3
service auth {
  user = root
}
service imap-login {
  process_min_avail = 16
  user = dovecot
}
service pop3-login {
  process_min_avail = 16
  user = dovecot
}
ssl_cert = </etc/httpd/conf/ssl.crt/server.crt
ssl_cipher_list = ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
ssl_key = </etc/httpd/conf/ssl.key/server.key
userdb {
  driver = passwd
}
userdb {
  args = username_format=%n /etc/virtual/%d/passwd
  driver = passwd-file
}
verbose_proctitle = yes
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
  pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s, bytes=%i/%o
}
 
[..]I've reinstalled roundcube a couple of times, even tried the latest beta version (0,9?) and recompiled - updated dovecot, none of the following fixes the issue.[..]

The latest stable version is Roundcube 0.8.5. Why don't you install it by using custombuild? Then it should work without problems:

Code:
cd /usr/local/directadmin/custombuild
./build set roundcube yes
./build update
./build roundcube
 
Also, roundcube 0.9-beta? custombuild do install 0.8.5 and i would suggest to use just the custombuild version.

Regards
 
Just got this issue on a new install, turns out there was placed an '-e' before the line 127.0.0.1 localhost inside /etc/hosts. After removing the '-e' it was ok. Not sure who or what placed it there, maybe this helps someone one day. :)
 
Back
Top