config ldap and smtp