XFOR: Manual Dir-Sync with Exchange as Dir-Sync Requestor

ID: Q148309


The information in this article applies to:


SUMMARY

This article explains how to perform manual directory synchronization (dirsync) between Microsoft PC Mail postoffices and Microsoft Exchange Server as the dirsync requestor. This article assumes you have already configured directory synchronization.

I. Preparations Before Manual Directory Synchronization

You need to do the following:

Configure Windows NT Server Registry to Enable the Pause Button for the Exchange Directory Synchronization Service

NOTE: It is not necessary to add the PauseKicksDX registry entry to Exchange Server version 5.0 or later as this functionality is already included.

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
  1. Run the Registry Editor (REGEDT32.EXE).


  2. Under the HKEY_LOCAL_MACHINE subtree, go to the following subkey:
    
    SYSTEM\CurrentControlSet\Services\MSExchangeDX 


  3. Select Edit.


  4. Choose Add Value.


  5. In the Value name box, type:


  6. PauseKicksDX
  7. From the Data type box, select REG_DWORD.


  8. Choose OK.


  9. In the DWORD editor box, type: 1


  10. Choose OK.


  11. Run Control Panel and choose Services to stop and restart the Microsoft Exchange Directory Synchronization service in order for the service to recognize this value.


Increase Diagnostic Logging to Assist You in Troubleshooting the Manual Directory Synchronization Process

  1. Run Microsoft Exchange Administrator.


  2. From the Container window select the appropriate site Configuration, Connections container:


    1. Double-click the Microsoft Mail Connector.


    2. From the Diagnostics Logging property page, highlight the MSExchangePCMTA and set the Logging level to Maximum.


II. How to Do a Manual Directory Synchronization

NOTE: If the Microsoft Mail executables are run from a command prompt under Microsoft Windows NT, preface the commands with FORCEDOS. For example, the first command run for T1 would be:
forcedos reqmain -d<drive> -t
where <drive> refers to the drive letter connected to the mail database.

NOTE: Commands must be run from the direcory where the execuatble is located or you will receive the error "FORCEDOS: Program file not found." Most commonly, the directory \MAILEXE will contain all the Microsoft Mail executable files.
  1. (T1) On every Microsoft Mail Postoffice involved in Dirsync as a requestor, including the postoffice defined as the Dirsync server, type the following command from the Microsoft Mail executables directory:


  2. reqmain -d<drive> -t
    where <drive> refers to the drive letter connected to the mail database.

    This generates the outgoing Dirsync mail messages and places them in the P1 directory.

  3. (T1) On every Exchange Server involved in Dirsync as a requestor, use Control Panel, Services to pause the Microsoft Exchange Directory Synchronization service. After the Pause button has been selected the administrator will receive the following error message which can be ignored:
    Could not pause the Microsoft Exchange Directory Synchronization service on \\<server>. Error 2140: An internal Windows NT error occurred. Click on OK.
    The Dirsync messages are delivered by the Microsoft Mail Connector to the Microsoft Mail Dirsync Server and queued in the SYSTEM.MBG to await T2 events.


  4. Using the Event Viewer Application Log, verify the Dirsync message has been transferred to the Microsoft Mail Dirsync Server. You should see the following two entries:
    
          * Event ID: 4395
             Category: Sent
             Description: Mail sent from \\<Requestor Server>\MAILDAT$
                   FROM:  <DXA Requestor Organization>/<DXA Requestor Site>/SYSTEM1
                   TO:    <Dirsync Server Network>/<Dirsync Server PO>/$SYSTEM
    
          * Event ID: 4355
             Category: Moved In
             Description: Mail received on \\<Dirsync Server>\MAILDATA
                   FROM:  <DXA Requestor Organization>/<DXA Requestor Site>/SYSTEM1
                   TO:    <Dirsync Server Network>/<Dirsync Server PO>/$SYSTEM 

    NOTE: You can modify the Polling Frequency to check for mail every minute to ensure mail is transferred quickly. To change the Polling Frequency, use the Microsoft Exchange Administrator program to do the following:


    1. From the Container window, select the appropriate site's Configuration, Connections container.


    2. Open the Microsoft Mail Connector and select the Connector MTAs property page.


    3. Highlight the appropriate Microsoft Mail Connector (PC) MTA Service and select the Configure button.


    4. Change the value of "Check for mail every __ minute" to 1.


    5. Be sure to stop and start the service for the change to take affect.


  5. (T2) On the Microsoft Mail Dirsync Server, type the following commands from the Microsoft Mail executables directory:
    srvmain -r -d<drive>
    srvmain -t -d<drive>

    where <drive> refers to the drive letter connected to the mail database.

    The SRVMAIN -R command receives and places updates in the MSTTRANS.GLB file. The SRVMAIN -T command reads the SRVCONF.GLB file, determines which updates need to be sent to each requestor, reads the MSTTRANS.GLB file to create the updates, generates a mail message back to each requestor that sent a request to the server and finally places the outgoing mail in the P1 directory.


  6. Using the Event Viewer Application Log, verify the Dirsync message has been transferred to the Exchange Requestor. You should see the following two entries:
    
          * Event ID: 4395
             Category: Moved Out
             Description: Mail sent from \\<Dirsync Server Server>\MAILDATA
                   FROM: <Dirsync Server Network>/<Dirsync Server PO>/$SYSTEM
                   TO:  <DXA Requestor Organization>/<DXA Requestor Site>/SYSTEM1
    
          * Event ID: 4355
             Category: Received
             Description: Mail received on \\<Requestor Server>\MAILDAT$
                   FROM: <Dirsync Server Network>/<Dirsync Server PO>/$SYSTEM
                   TO:  <DXA Requestor Organization>/<DXA Requestor Site>/SYSTEM1 


  7. (T3) On every Exchange Server involved in Dirsync as a requestor, the DXA Requestor dynamically applies the changes as soon as they arrive. The DXA Requestor does not need to be configured with a scheduled T3 time.


  8. (T3) On every Microsoft Mail Postoffice involved in DirSync as a requestor, type the following commands from the Microsoft Mail executables directory:
    reqmain -d<drive> -r
    import -d<drive> admin -p<password> -q -y
    rebuild -d<drive> -f
    where <drive> refers to the drive letter connected to the mail database. The REQMAIN -R command receives the updates and moves them into the SRVTRANS.GLB file. The import command takes the SRVTRANS.GLB records and moves them into the temporary transaction files depending on what types of addresses they contain. Then the Import command moves the names into the .USR and .NME files. The -Q option tells Import to use the SRVTRANS.GLB file for the update, and the -Y option tells Import to run without asking for permission to continue. The rebuild -F command takes the network names, the .NME files, and the .USR files to build the GAL and the GAL index file. The -F option is the same as the -Y option for import.


This concludes the manual Dirsync process.


REFERENCES

For more information on Microsoft Mail for PC Networks Directory Synchronization, please refer to the "Directory Synchronization (Dir-Sync)" document.

You can obtain this document from the following sources:

The following self-extracting file is available for download from the Microsoft Software Library: Wa0725.exe

This document has also been posted to the following Internet location:
ftp://ftp.microsoft.com/bussys/mail/pcmail public/WA0725/
For more information about how to obtain this document, please see the following article in the Microsoft Knowledge Base:
Q96060 PC DirSync: Directory Synchronization (Dir-Sync)
For additional instructions on Microsoft Exchange Directory Synchronization, please refer to Chapter 14 of the Microsoft Exchange Server Administrator's Guide.

For additional information on how to perform manual directory synchronization between Microsoft PC Mail Postoffices and Microsoft Exchange Server, please see the following article in the Microsoft Knowledge Base:
Q147464 Manual Dirsync with Exchange as Dirsync Server

Additional query words: dir-sync dirsynch faq


Keywords          : kbenv XFOR 
Version           : winnt:4.0,5.0,5.5
Platform          : winnt 
Issue type        : 

Last Reviewed: March 20, 1999