Platform SDK: Exchange Server |
The DIRSYNC sample application demonstrates how to transfer mailboxes and custom recipient information between foreign systems and a container on Microsoft Exchange Server. It also shows how to use the directory access functions to build a transfer agent. Microsoft Exchange Server software includes a directory replication process for transferring directory information between servers at a site, and a directory replication connector to extend that automatic process between sites. There is also a directory synchronization process to transfer information between Microsoft Exchange Server and Microsoft Mail 3.X systems. DIRSYNC can be used to transfer information between Microsoft Exchange Server and other foreign mail systems.
DIRSYNC can be manually called to perform the following actions:
DIRSYNC uses Windows NT Registry key values and directory attributes to determine which information to export or import. Each time DIRSYNC is called for export, it uses the USNChanged directory attribute to determine whether any changes have been made since the last export. For more information, see Exporting and Importing Changed Objects.
When the DIRSYNC sample application is used for export, the parameters specified can change the basic DIRSYNC operation. When the /EXPFULL flag is specified, the attributes for the entire set of mailboxes in that container are exported. If the /SUBS flag is specified, attributes for mailboxes in subcontainers of the selected container will also be exported. The /EXPLIST command-line flag allows you to specify which directory attributes you want to export. If /EXPLIST is not used, only the distinguished name (the name plus the full path, called the DN) of the mailbox is exported. For more information, see Building a New DIRSYNC Instance.
When the DIRSYNC sample application is used for import, DIRSYNC accepts a file created by the foreign system or database. This file must be in the exact format expected by DIRSYNC. An explanation of this syntax and an example of a DIRSYNC import file are included in Formatting DIRSYNC Import and Export Files.
When changes are imported by DIRSYNC into the directory, the state parameters for DIRSYNC are updated. DIRSYNC keeps a list of all the imported changes to assure that these changes will not be exported back to the foreign system. This list is used at the next export session and at that time is automatically erased.
Note For reliable ambiguous name resolution (ANR) when creating custom recipients, separate fields are required for last name, first name, and display names.