Can OS X Lion Server automatically set up Mail using Open Directory information?
Log into profile manager as an administrator using Safari and set up a profile for a user to change mail settings.


https://server.local/profilemanager/


You will want to spend time making sure DNS and SSL are correctly installed - starting with making a self-signed certificate if you don't want to pay for a real SSL cert for your server.

Here's what to look for when you want to test setting IMAP settings for users.



As you might be able to see - pick a user, then edit their settings and finally choose email.