none
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)? RRS feed

  • Question

  • 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 2010.

    MSDN Question

    Wednesday, March 18, 2015 7:35 AM

Answers

  • 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

    Thursday, March 19, 2015 12:41 AM

All replies

  • 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

    Thursday, March 19, 2015 12:41 AM
  • Thank you for the help Glen, Can you suggest that these methods also holds good for the journal enabled mailboxes ?

    MSDN Question

    Tuesday, March 31, 2015 5:57 AM