Howtoforge posted a guide about installing Qmail OpenLdap on Ubuntu
This guide will help you easily set up a email server On Ubuntu using Qmail as MTA, OpenLDAP as a back-end for users, and Courier IMAP for IMAP server.Qmail OpenLdap On Ubuntu