I was trying to migrate a vpopmail / mysql installation to a new system and the users could not log in through qmailadmin. This post has the solution
make sure to copy the contents of /var/qmail/control/* and
/var/qmail/users/assign to the new system. also after copying
users/assign, make sure to run qmail-newu to refresh the cdb file.