[Dovecot] problems with cvs version and vpopmail

Kristoffer Ek stoffer at ek.dk
Fri Sep 24 07:11:43 EEST 2004


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.


More information about the dovecot mailing list