As Chad says, this is more of an LDAP question.
Best way to do it is by creating a batch script.
Create a test user for your mail system.
Determine what attributes this test user has in your directory by running an LDIF export.
Then given a CSV file of users, write a script that populates an LDIF file with relevant attributes for each user.
Then import the LDIF.