By default, the Exchange Gateway’s queue directories are located in the domain\wpgate\exchange directory on the server where the domain is located. If the gateway is not installed on the same server with the domain directory structure, you can reduce network traffic by redirecting the gateway’s queue directories to the Windows server where the gateway is running.
If you choose to place the queue directories on the gateway server’s local drive, make sure the gateway server has sufficient disk space, memory, and processing power to handle the load.
Start the gateway using the following startup switch:
exgate.exe /work-queue_directory
where queue_directory is the path to the directory where you want the gateway queues created. For example, you could use a c:\exchgate directory on the local drive. Make sure the directory is not used by any other program. The gateway must have exclusive access to the directory; any unrecognized files in the directory are immediately moved to the gwprob subdirectory.
The first time you start the gateway using the /work switch, the gateway creates the necessary file structure in the specified directory. It creates a wpgate directory, with wpcsin and wpcsout queue directories. This local structure is used as long as you continue to start the gateway with the /work switch. You might want to add the /work switch to the startup file (gwexch.cfg) so the gateway always uses the same queue directory. See Section 11.0, Using Exchange Gateway Startup Switches.