I tried to upgrade from dovecot-1.2.15 to 2.0.6 but I can't get it working together with vpopmail-5.4.30-r2 (which works without any problems with dovecot's 1.2.15 version). dovecot always says that my users are unknown (user lookup failure).May be it is a configuration issue but from my point of view it's a bug. /var/log/messages: ... Oct 27 23:24:24 lasan dovecot: master: Dovecot v2.0.6 starting up Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x10, ret=1: before/accept initialization [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: before/accept initialization [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 read client hello A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write server hello A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write certificate A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Oct 27 23:24:38 lasan dovecot: auth: Debug: auth client connected (pid=8481) Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write key exchange A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write server done A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 flush data [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2002, ret=-1: SSLv3 read client certificate A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2002, ret=-1: SSLv3 read client certificate A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 read client key exchange A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 read finished A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write change cipher spec A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write finished A [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 flush data [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x20, ret=1: SSL negotiation finished successfully [127.0.0.1] Oct 27 23:24:38 lasan dovecot: pop3-login: Warning: SSL: where=0x2002, ret=1: SSL negotiation finished successfully [127.0.0.1] Oct 27 23:24:38 lasan dovecot: auth: Debug: client in: AUTH 1 PLAIN service=pop3 secured lip=127.0.0.1 rip=127.0.0.1 lport=995 rport=56846 Oct 27 23:24:38 lasan dovecot: auth: Debug: client out: CONT 1 Oct 27 23:24:38 lasan dovecot: auth: Debug: client in: CONT 1 AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= Oct 27 23:24:38 lasan dovecot: auth: Debug: vpopmail(boss@localhost,127.0.0.1): lookup user=boss domain=localhost Oct 27 23:24:38 lasan dovecot: auth: vpopmail(boss@localhost,127.0.0.1): unknown user Oct 27 23:24:40 lasan dovecot: auth: Debug: client out: FAIL 1 user=boss@localhost .... here my vpopmail user (boss@localhost): lasam>vuserinfo boss@localhost name: boss passwd: XXXXXXXXXXXXXXXXXXXXXXXXXXXX clear passwd: comment/gecos: boss uid: 1 gid: 0 flags: 0 gecos: boss limits: No user limits set. dir: /var/vpopmail/domains/localhost/boss quota: NOQUOTA usage: NOQUOTA last auth: Fri Oct 22 02:24:46 2010 last auth ip: pop3 and here my dovecot-2.0.6 configuration: lasan>dovecot -n # 2.0.6: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35-gentoo-r11 x86_64 Gentoo Base System release 2.0.1 auth_debug = yes auth_debug_passwords = yes auth_verbose = yes disable_plaintext_auth = no first_valid_uid = 89 last_valid_uid = 89 listen = 127.0.0.1 mail_location = maildir:~/.maildir passdb { driver = vpopmail } protocols = pop3 service pop3-login { inet_listener pop3 { port = 0 } inet_listener pop3s { port = 995 ssl = yes } } ssl_cert = </etc/ssl/dovecot/server.pem ssl_key = </etc/ssl/dovecot/server.key userdb { driver = vpopmail } verbose_proctitle = yes verbose_ssl = yes protocol pop3 { pop3_uidl_format = UID%u-%v } Reproducible: Always
Please provide the following info: * emerge --info =net-mail/dovecot-2.0.6 * emerge --info =net-mail/vpopmail-5.4.30-r2 * Can you get dovecot to work with vpopmail-5.4.30-r1? * Try switching to mysql authentication if possible. Something like the following should work: driver = mysql connect = host=/var/run/mysqld/mysqld.sock user=vpopmail password=YOURPASS dbname=vpopmail default_pass_scheme = PLAIN password_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user, pw_clear_passwd AS password FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' user_query = SELECT pw_dir as home, 1008 AS uid, 1003 AS gid FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' Please note that upstream dropped vpopmail suppport for some dovecot-2.0.x releases and then added it back somewhat reluctantly. It might be dropped still. FYI.
- no difference with 5.4.30-r1 - mysql is not an option, it's a more or less mysql-free system net-mail/dovecot-2.0.6 was built with the following: USE="berkdb bzip2 ipv6 maildir pam sqlite ssl vpopmail zlib -caps -cydir -doc -kerberos -ldap -managesieve -mbox -mdbox -mysql -postgres -sdbox -sieve -suid" net-mail/vpopmail-5.4.30-r1 was built with the following: USE="-clearpasswd -ipalias -maildrop -mysql"
Please see if the following makes a difference: service auth { user = root }
big difference ! this is the solution - thanx. i replaced the default service auth section in 10-master.conf and everything works!