How do we deduce (if we can) SMTP address for an exchange account with only x500 address available? In what cases SMTP address is not available for exchange accounts (please see details below)?
I am using PR_SENDER_EMAIL_ADDRESS to retrieve sender's email address for exchange mails, but for some mails I only get the exchange X500 addresses. In such case, I can use PR_SENDER_ADDRTYPE to check the type but when I detect an X500 address instead of an SMTP one, is there a way I can enhance SMTP lookup? What might be the reasons that SMTP address is available for some External senders and not for others, as in my case? I am using MAPI CDO 1.2.1 with Exchange Server 20
March 18th, 2015 3:37am

If you getting an X500 Address that generally means there is Directory object (in Active Directory) for that sender, if its an external sender then it most probably there is an AD Contact from that Sender. The best thing to do is just use resolve method in CDO to resolve the X500 Address to the Directory object and you should then be able to get the associated SMTP Address from the recipient object. (you also just use LDAP to lookup Active Directory directly).

Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
March 18th, 2015 8:44pm

If you getting an X500 Address that generally means there is Directory object (in Active Directory) for that sender, if its an external sender then it most probably there is an AD Contact from that Sender. The best thing to do is just use resolve method in CDO to resolve the X500 Address to the Directory object and you should then be able to get the associated SMTP Address from the recipient object. (you also just use LDAP to lookup Active Directory directly).

Cheers
Glen

March 19th, 2015 12:41am

Thank you for the help Glen, Can you suggest that these methods also holds good for the journal enabled mailboxes ?
Free Windows Admin Tool Kit Click here and download it now
March 31st, 2015 1:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics