Platform SDK: Exchange Server |
You can install the sample gateway either by using the GWSETUP.EXE program to automatically install all the gateway components, or by installing individual gateway components. See Installation Programs for information on how to install components. The GWSETUP.EXE executable is provided in binary form only.
To Installing the Sample Gateway Manually
md c:\exchsrvr\address\EDK
Then copy the corresponding DLLs to the new directory. In this case, copy the proxy DLL, and the performance DLL to this directory.
copy c:\mssdk\samples\dbmsg\exchange\proxygen\release\proxygen.dll c:\exchsrvr\address\EDK\i386 copy c:\mssdk\samples\dbmsg\exchange\libsrc\gwperf\Release\gwperf.dll c:\exchsrvr\address\EDK\i386
mkdir c:\exchsrvr\add-ins\sqw1\i386copy c:\mssdk\samples\dbmsg\exchange\sgwadmin\Release\sgwadmin.dll c:\exchsrvr\add-ins\sqw1\i386
mkdir c:\services\INmkdir c:\services\OUTcopy c:\mssdk\Samples\dbmsg\exchange\gwsample\Release\gwsample.exe c:\services net share services=c:\services /unlimited
cfgcode.exe c:\mssdk\Samples\dbmsg\exchange\gwsample\gwsample.ini c:\gateway.dat /section=SGWData /Name=SGW1
xlatinst.exe /DLL=IPM_IN.DLL /CLASSES=ENVELOPE.IPM /OPTIONS=reg_sz /POINT=SAMPLEGW.INBOUNDxlatinst.exe /DLL=IPM_OUT.DLL /CLASSES=ENVELOPE.IPM /OPTIONS=reg_sz /POINT=SAMPLEGW.OUTBOUND
Note that the DLLs IPM_OUT.DLL and IPM_IN.DLL are assumed to be in your current path.
addrinst.exe /SITEDN=/o=TestOrganization/ou=TestSite /NAME=EDK /MACHINE=i386 /TYPE=EDK /PROXYDLL=\\TESTSERVER\address\EDK\i386\proxygen.dll /SERVER=TESTSERVER /GWPROXY=EDK:%m@TestSite.TestOrganization.com
extninst.exe /SITEDN=/o=TestOrganization/ou=TestSite /DISPLAY_NAME="SGW1 EDK Sample Gateway Extension" /MACHINE=i386 /NAME=SGW1 /EXTDLL=\\TESTSERVER\add-ins\SGW1\i386\sgwadmin.dll /SERVER=TESTSERVER
c:\gateway.dat
created with the earlier CFGCODE.exe
step.
gwinst.exe /SITEDN=/o=TestOrganization/ou=TestSite /DISPLAY_NAME=SGW1 /NAME=SGW1 /ADDRTYPE=EDK /SERVER=TESTSERVER /EXTDATA=c:\gateway.dat
The gwinst.exe source code can be found in the EdkInstu samples directory, normally c:\mssdk\samples\dbmsg\exchange\edkinstu\gwinst.
servinst.exe /SITEDN=/o=TestOrganization/ou=TestSite /DISPLAY_NAME=SGW1 /SERVICE=SGW1 /EXE=c:\services\gwsample.exe /SERVER=TESTSERVER /OBJNAME=SGW1 /OBJTYPE=gateway /ACCOUNT=username /PASSWORD=password
You can perform the steps below to install optional things such as the performance monitoring DLL, the QUEVIEW sample application, and the "EDK" address template extension. These steps are as follows:
profinst.exe /SERVICE=SGW1 /name=SGW1 /type=GATEWAY
mkdir c:\exchsrvr\add-ins\QUEVIEW\i386copy c:\mssdk\samples\dbmsg\exchange\samples\queview\Release\queview.dll c:\exchsrvr\add-ins\QUEVIEW\i386extninst.exe /SITEDN=/o=TestOrganization/ou=TestSite /DISPLAY_NAME="Queue View Extension Sample" /MACHINE=i386 /NAME=QUEVIEW /EXTDLL=\\TESTSERVER\add-ins\QUEVIEW\i386\queview.dll /SERVER=TESTSERVER
The steps listed above are discussed in the section Writing a Setup Program.
You can verify that the gateway object is installed by looking in the Connections container inside the Microsoft Exchange Administrator program for the gateway name. This is the Display_Name entered in step 7 above. If the gateway name is not there, click Refresh on the Window menu in the Administrator program. The name should then appear.
The gateway setup program GWSETUP.EXE proceeds in a similar fashion to the manual installation instructions in the preceding section:
These functions are discussed in Writing the Setup Program.
To install the sample gateway using GWSETUP
– Or –
Change to the command prompt and run GWSETUP.EXE from the c:\mssdk\bin directory.
The setup program performs the following tasks:
You can verify that the gateway object is installed by looking in the Connections container inside the Microsoft Exchange Administrator program for the gateway name. This is the Directory Display Name entered in step 6 above. If the gateway name is not there, click Refresh on the Window menu in the Administrator program. The name should then appear.
The sample gateway uses the account and password information entered in steps 8 and 9 above. After the gateway service is installed, its associated account information can be changed through the Windows NT service control manager.