Open iim.conf.
See iim.conf File Syntax for instructions on locating and modifying iim.conf.
Change the value of the iim_ldap.user.mailattr parameter to the attribute your directory uses to contain email addresses in user entries.