Are you a world traveler? ZoneTick is a cool utility that'll help you stay in touch over multiple time zones!
 
Working with Inbound Messages of Custom Address Types  
Nik Okuntseff  MS Exchange Server Programming 

Working with Inbound Messages of Custom Address Types

We have seen before how outgoing messages of custom address types may be handled by specially configured sample gateway. I have also showed how you can let an EDK gateway process incoming messages. How could we handle incoming messages coming from custom recipients?

A logical thing to do here would be trying the same trick we did for EDK messages: changing RCPT TO property and just dropping files into the gateway's In folder. I am speaking about the gateway specially configured to handle custom address types here.

This works if you properly install an Addr-Type object for your address type. This will not work if you just reconfigure your gateway. The Addr-Type object associates your address type with a proxy generation DLL that generates custom e-mail addresses for each Exchange server recipient. Attempting to use the gateway without properly installed Addr-Type object will fail on incoming messages. For example, if you just change RCPT TO property and drop the file into gateway's In folder it will not be delivered. You will get a non-delivery report back into gateway's Out folder saying that "The recipient was detected looping within the message transfer service". Further sections in this chapter explain how you can reuse proxy generation sample code provided with EDK with your address type.

Customizing sample gateways obviously is not the best way of gateway development. But this approach is working and in fact gives you great power. Messages as they appear in folders do not have any MAPI properties. They are files pre formatted for easy SMTP exchange with a foreign system. You can also send attachments. Sample gateway specifically configured allows you to avoid MAPI development! You can use this as a starting point and work in co-operation with sample gateway. For example, you could implement a Windows NT service, which operates with files in gateway's In and Out folders. It would get an outgoing message from its Out folder and transmit it to the foreign system. It would put messages coming from the foreign system into its In folder. Perhaps this would be just enough for many situations! Very little development is needed for that. In fact, familiarity with MAPI or Exchange environment is not needed at all!
 

[ Contents | Home ]

Send comments and suggestions to niko@wrconsulting.com
Copyright © 1997-1998 by Nik Okuntseff