Hi,
Running OS: CentOS 5.3 (2.6.18-128.2.1.el5)
- My Linux distribution comes with Dovecot 1.0.7. After trying to make it running, I encoutnered many problems. So I decided to upgrade to 1.2.1. When running dovecot -r from CLI, it returns with version 1.2.1. But at the top of the log file it says: Info: Dovecot v1.0.7 starting up
So I am not sure which version I am running.
That's the first problem.
The other two problems I am having were also actual before updating to 1.2.1:
Every minute, the following lines (except for the timestamps, which are different, ofcourse) are being added to my log file: dovecot: Jul 24 23:54:24 Error: imap-login: USER environment missing dovecot: Jul 24 23:54:24 Error: imap-login: USER environment missing dovecot: Jul 24 23:54:24 Error: child 3712 (login) returned error 89 dovecot: Jul 24 23:54:24 Error: child 3713 (login) returned error 89 dovecot: Jul 24 23:54:24 Error: imap-login: USER environment missing dovecot: Jul 24 23:54:24 Error: child 3714 (login) returned error 89
As soon as a user tries to log on via POP3 (telnet localhost pop3), the user is kicked out. The log file says (username and domain name are fake): dovecot: Jul 25 00:01:02 Info: pop3-login: Login: user=user@mydomain.tld, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured dovecot: Jul 25 00:01:02 Error: POP3(user@mydomain.tld): file_dotlock_open() failed with file /var/mail/vhosts/mydomain.tld/user/dovecot.index.log: Permission denied dovecot: Jul 25 00:01:02 Error: POP3(user@mydomain.tld): file_dotlock_open(/var/mail/vhosts/mydomain.tld/user/dovecot-uidlist) failed: Permission denied dovecot: Jul 25 00:01:02 Error: POP3(user@mydomain.tld): Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged dovecot: Jul 25 00:01:02 Info: POP3(user@mydomain.tld): Mailbox init failed top=0/0, retr=0/0, del=0/0, size=0
And the user gets:
[root@nestorix ~]# telnet localhost pop3 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. +OK Dovecot ready. user user@mydomain.tld +OK pass mypwd +OK Logged in. -ERR Internal error occurred. Refer to server log for more information. [2009-07-25 00:01:02] -ERR [IN-USE] Couldn't sync mailbox. Connection closed by foreign host.
This is my dovecot.conf
base_dir = /var/run/dovecot/ protocols = pop3 pop3s imap imaps log_path = /var/log/dovecot info_log_path = /var/log/dovecot login_dir = /var/run/dovecot/login login_chroot = yes valid_chroot_dirs = /var/mail/vhosts #login = imap login_user = dovecot login_process_size = 64 login_processes_count = 3 login_max_processes_count = 128 login_max_connections = 256 login_greeting = Havecom Mailserver ready.
mail_location = maildir:/var/mail/vhosts/%d/%n/
protocol imap { login_executable = /usr/libexec/dovecot/imap imap_max_line_length = 65536 mail_plugin_dir = /usr/lib/dovecot/imap imap_client_workarounds = delay-newmail outlook-idle netscape-eoh }
protocol pop3 { login_executable = /usr/libexec/dovecot/pop3-login mail_executable = /usr/libexec/dovecot/pop3 pop3_no_flag_updates = no pop3_enable_last = no pop3_reuse_xuidl = no pop3_lock_session = no pop3_uidl_format = %08Xu%08Xv pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s pop3_client_workarounds = outlook-no-nuls oe-ns-eoh }
auth_executable = /usr/libexec/dovecot/dovecot-auth auth_process_size = 256 auth_cache_size = 0 auth_cache_ttl = 3600 auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ auth_username_translation = "/$ auth_verbose = yes auth default { socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } mechanisms = plain passdb passwd-file { args = /etc/dovecot/passwd }
userdb passwd-file { args = /etc/dovecot/userdb } user = root }
dovecot -n returns in:
[root@nestorix etc]# dovecot -n # 1.2.1: /usr/local/etc/dovecot.conf Warning: There is no way to login to this server: disable_plaintext_auth=yes, ssl=no, no non-plaintext auth mechanisms. Warning: There is no way to login to this server: disable_plaintext_auth=yes, ssl=no, no non-plaintext auth mechanisms. # OS: Linux 2.6.18-128.2.1.el5 i686 CentOS release 5.3 (Final) ext3 base_dir: /var/run/dovecot/ log_path: /var/log/dovecot info_log_path: /var/log/dovecot protocols: pop3 pop3s imap imaps ssl: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap login_executable(imap): /usr/libexec/dovecot/imap login_executable(pop3): /usr/libexec/dovecot/pop3-login login_greeting: Havecom Mailserver ready. valid_chroot_dirs: /var/mail/vhosts mail_location: maildir:/var/mail/vhosts/%d/%n/ mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: executable: /usr/libexec/dovecot/dovecot-auth username_translation: "/$ verbose: yes passdb: driver: passwd-file args: /etc/dovecot/passwd userdb: driver: passwd-file args: /etc/dovecot/userdb socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix
I have no clue at all, where I should start solving the problems. Somebody?
Cheers!
Albert van Harten Denmark