emailldapexchange-servercdo.message

Whats is this format called? "/o=First Organization/ou=First Administrative Group/cn=Recipients/cn=user"


What format is the following string called in regards to Microsoft Exchange?

/o=First Organization/ou=First Administrative Group/cn=Recipients/cn=user

I've seen this using LDAP, but now seeing it CDO 1.2.1 and ultimately trying to convert it to an email address like user@domain.com. Thanks.


Solution

  • It's called legacy Exchange distinguished name and is a remnant from Exchange 5.5.

    You can either resolve this address using the ResolveNames method (http://msdn.microsoft.com/en-us/library/exchangewebservices.exchangeservicebinding.resolvenames(v=exchg.140).aspx) of the EWS Managed API, call the EWS WebService method ResolveName directly.

    Another option is to use LDAP and search for the user object with the property legacyExchangeDN set to your address. Then, query the proxyAddress attribute and retrieve the one address which is prefixed with "SMTP:" (all uppercase).