Our LDAP directory, based on ISPMan, uses the "maillocaladdress" attribute, not the "mail" attribute, for the user email address. This patch against squirrelmail-1.4.9a allows configuration of the attribute retrieved as the email address, defaulting to the current "mail".
ldap-mailattr-patch