Set the email attribute via the `setEmailAttribute` function.
Calling into LDAP to fetch data should result in the email being selected based on the provided value, falling back to `mail` if there is no attribute of the given name. You should be able to register and import users who do not have a `mail` attribute but do have an attribute of the given name.
Tested locally against my own LDAP server.