I wrote something similar, that uses Postfix, Dovecot, OpenLDAP, Roundcube, DSPAM and OpenDKIM.
http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:n...
I presented it at my local LUG a while back, here are the slides http://www.slideshare.net/jvehent/di-ymail