This is
"LDAP://CN=Default Policy,CN=Recipient Policies," + strOrgDN
yes?
Where did the name BackOfficeStorage come from?
This is
"LDAP://CN=Default Policy,CN=Recipient Policies," + strOrgDN
yes?
Where did the name BackOfficeStorage come from?
Michael,
Correct. You can tell if a policy is the default policy by looking at the msExchPolicyOrder attribute -- the value should always be 2147483647. There is a multivalued attribute called gatewayProxy on the object. The primary SMTP address begins "SMTP:" -- note that there could be secondary SMTP addresses beginning "smtp:" (lowercase) so check the case on the value. Also, only pull what is after the "@" since there may be specifiers such as %g or %s in the user portion.