To work around this issue, do not try to access the user account mailbox by using the SMTP address. Instead, specify the distinguished name (also known as DN) of the user account in your CDOEX script when you want to locate a user who is in a separate domain. For example, create a script that is similar to the following to access the user's mailbox.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
Set person = createobject("CDO.Person")
strURL = "LDAP://corp.contoso.com/CN=user1,CN=Users,DC=corp,DC=contoso,DC=com"
person.DataSource.Open strURL
set Mailbox = person.GetInterface("IMailbox")