What MTA/pop3d or imapd are likely to be supported by ISPsystem with virtual users?
Maybe you'd like to check this setup, and base it around that. It's very stable and reliable, I've been using it for awhile and uses mysql databases for its virtual user info check it out here --
http://workaround.org/articles/ispmail-sarge/