Building a new mail server - running Red Hat 8.0 and vpopmail 5.2.2

I use mysql as the backend for the vpopmail

Everything compiles OK. After logging to sqwebmail, I get "Internal
error (module maildir.c, line 170) - contact system administrator". If I supply a wrong password it shows invalid login. That means some problem with sqwebmail.