dovecot

I notice dovecot has the capability to use sql as its back end for authentication. I was wondering how to make it so virtualmin uses that as well to create the users email?