Mapping Outbound Addresses

When a gateway receives a message from Microsoft Exchange Server, addresses for each recipient have the properties PR_ENTRYID, PR_ADDRTYPE, and PR_EMAIL_ADDRESS. The originator address has the PR_ORIGINATOR_ENTRYID, PR_ORIGINATOR_ADDRTYPE, and PR_ORIGINATOR_ADDRESS properties. These addresses are in Microsoft Exchange Server format and the gateway must translate them to the format of the foreign system.

Beginning with the PR_ENTRYID and PR_ADDRTYPE properties, the gateway can look up an existing proxy address for the foreign system using the address lookup function HrGWResolveProxy. When it finds the proxy address corresponding to the foreign system, it uses that address to deliver the message.

If the gateway cannot map an address from Microsoft Exchange Server to the foreign system, it must take appropriate action as follows:

The following figure illustrates a message being sent from a Microsoft Exchange Server originator to an SMTP recipient. The originator’s address is expressed in Microsoft Exchange Server format and the recipient’s address is in SMTP format. This tells Microsoft Exchange Server that the message must be sent through the SMTP gateway.

Outbound address mapping

In this scenario, the gateway looks up the originator’s SMTP proxy address and maps the originator’s EX address to SMTP format before delivering the message to the SMTP system.