qmail-smtpd gets linked to the vpopmail library. Vpopmail must be pre-compiled to support mysql. You then just need to edit the Makefile so that the mysql, zlib, and probably math libraries are also linked so compilation is successful.
Bill,
You might be able to have the Makefile read in the contents of the ~vpopmail/etc/lib_deps or ~vpopmail/etc/inc_deps files to make editing the Makefile unnecessary. I'm off-line at the moment, so can't verify those directories, but the vpopmail Makefile uses them to determine what extra libraries it will need to link in.
-- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/