Hi, I have tried compiling the latest cvs version of dovecot on my FreeBSD 5.2.1-release box with the ports version of vpopmail: 5.4.3_1. In the configuration file I have two auth paragraphs, one for passwd authentication and one for vpopmail-auth: auth vpopmail { mechanisms = plain userdb = vpopmail passdb = vpopmail user = vpopmail } But the vpopmail dosn'nt work. I got the folowing in the log: Info: auth(vpopmail): vpopmail(stoffer at test.ek.dk): unknown user (stoffer at test.ek.dk) When I ktrace the dovecot process, it seams that it is trying to access the mysql db, but it ignores the settings in ~vpopmail/etc/vpopmail.mysql If I use the ports version of dovecot it works, but of course without the multiple auth capability since it is version 0.99... Any hints on debugging? - kristoffer -- 1st graffitiist: QUESTION AUTHORITY! 2nd graffitiist: Why? Kristoffer Ek http://ek.dk/ +45 20 40 00 05
On Wed, 22 Sep 2004, Kristoffer Ek wrote:> Hi, I have tried compiling the latest cvs version of dovecot on my FreeBSD > 5.2.1-release box with the ports version of vpopmail: 5.4.3_1.[...]> Any hints on debugging?After playing a while with gdb on the dovecot-auth process running the vpopmail auth, it seams that it is vpopmail_lookup_vqp() strangely returning a null pointer: (gdb) b 35 Breakpoint 2 at 0x805674e: file userdb-vpopmail.c, line 35. (gdb) c Continuing. Breakpoint 2, vpopmail_lookup_vqp (user=0x8083670 "stoffer at test.ek.dk", vpop_user=0xbfbfeaf0 "stoffer", vpop_domain=0xbfbfea90 "test.ek.dk") at userdb-vpopmail.c:35 35 vpw = vauth_getpw(vpop_user, vpop_domain); 36 if (vpw == NULL) { 37 if (verbose) { 38 i_info("vpopmail(%s): unknown user (%s@%s)", 39 user, vpop_user, vpop_domain); 40 } 41 return NULL; 42 } 43 44 return vpw; (gdb) p vpw $1 = (struct vqpasswd *) 0x0 (gdb) n 44 return vpw; Allthough if I test the vauth_getpw() from perl with somethink like: perl -Mvpopmail -MData::Dumper -e 'print Dumper(vauth_getpw("stoffer", "test.ek.dk"))' I got a nice result: $VAR1 = { 'pw_dir' => '/usr/local/vpopmail/domains/test.ek.dk/stoffer', 'pw_shell' => 'NOQUOTA', 'pw_name' => 'stoffer', 'pw_gecos' => 'stoffer', 'pw_passwd' => '$1$...' }; As said before it works just fine with the 0.99 version on the same box. Any suggestions? - stoffer -- Musik ind januar er. Om ikke omkring. August bev?ger jo.
On 23.9.2004, at 00:35, Kristoffer Ek wrote:> auth vpopmail { > mechanisms = plain > userdb = vpopmail > passdb = vpopmail > user = vpopmail > }Looks ok.> But the vpopmail dosn'nt work. I got the folowing in the log: > > Info: auth(vpopmail): vpopmail(stoffer at test.ek.dk): unknown user > (stoffer at test.ek.dk) > > When I ktrace the dovecot process, it seams that it is trying to access > the mysql db, but it ignores the settings in > ~vpopmail/etc/vpopmail.mysqlDoes it read the file? Anyway, I don't really know. The lookup code looks pretty much the same in 0.99, so it must be something else. If it doesn't or can't open the file maybe it's for some reason running under wrong user. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20040924/7df65164/attachment-0001.bin>
On Fri, 24 Sep 2004, Timo Sirainen wrote:> > When I ktrace the dovecot process, it seams that it is trying to access > > the mysql db, but it ignores the settings in > > ~vpopmail/etc/vpopmail.mysql > > Does it read the file?Yes it does> Anyway, I don't really know. The lookup code looks pretty much the same > in 0.99, so it must be something else. If it doesn't or can't open the > file maybe it's for some reason running under wrong user.I thought so also, and tried changing the user to root and chmod the file to o+r but no success. - kristoffer -- 1st graffitiist: QUESTION AUTHORITY! 2nd graffitiist: Why? Kristoffer Ek http://ek.dk/ +45 20 40 00 05