Recipe7.15.Moving SMTP Queues to a New Location


Recipe 7.15. Moving SMTP Queues to a New Location

Problem

You want to move the SMTP queues for a specified virtual server from their default location to a new disk or partition.

Solution

Using a graphical user interface

For Exchange Server 2003, do the following:

  1. Open the Exchange System Manager (Exchange System Manager.msc).

  2. Expand the organization Administrative Groups target administrative group Servers target server Protocols SMTP.

  3. Provide the new location of the Badmail folder in the Badmail directory field.

  4. Provide the new location of the Queue folder in the Queue directory field.

  5. Right-click your SMTP virtual server instance and click Start.

This method does not move the Pickup directory. If you want to move it as well, use the Exchange 2000 ADSI Edit method described next.


For Exchange 2000 Server, do the following:

  1. Stop all Exchange and IIS services on the Exchange server.

  2. Create a backup copy of the current location of the virtual server queue files directory. By default this directory is C:\Program Files\Exchsrvr\Mailroot\vsi 1\Queue for the default virtual server.

  3. Move the vsi 1 (or appropriate virtual server directory) to the new location.

  4. Open the ADSI Edit (ADSIEdit.msc).

  5. On the menu, click Action Connect To, Naming Context, select Configuration Container, and click OK.

  6. Navigate to the following container:

     CN=Configuration,CN=Services,CN=Microsoft Exchange,CN=<Organization>, CN=Administrative  Groups,CN=<AGName>,CN=Servers,CN=<server>, CN=Protocols,CN=SMTP

  7. Click the container for the desired virtual server instance (CN=1 is the default SMTP virtual server) and click Properties. Select both Show mandatory attributes and Show optional attributes.

  8. Find the following attributes and adjust their paths to the location you moved the directory to in step 3:

    msExchSmtpBadMailDirectory msExchSmtpPickupDirectory msExchSmtpQueueDirectory

  9. Once Active Directory replication is complete, restart the Microsoft Exchange System Attendant service. Open the Event Viewer and wait until you find three event ID 1005 messages from the MSExchangeMU source in the application log that indicate the IIS metabase paths have been updated.

  10. Restart the Exchange server.

You must have the Windows Support Tools installed on your management station. You can install these from the \SUPPORT\TOOLS directory of your installation media.


Discussion

Exchange keeps a separate set of queue directories for each SMTP virtual server, so this is an operation you must perform for each virtual server whose queue files you wish to relocate. Moving them, especially the default virtual server, can cause a big performance increase, especially if you move them onto a dedicated drive and off the system volume. This is especially important for bridgeheads, systems acting as edge routers, or other high-traffic machines. You also do not want to locate the queue folders on the same drive as any of your storage group log files.

See Recipe 7.12 for a discussion of the various queues.

See Also

Recipe 7.0 for general background on the SMTP services, MS KB 318230 (How to change the Exchange 2000 SMTP Mailroot directory location), MS KB 822933 (How to change the Exchange 2003 SMTP Mailroot folder location), and the Optimizing Storage for Exchange Server 2003 guide (http://www.microsoft.com/downloads/details.aspx?FamilyID=C6084D20-9730-4FFC-805D-B957327604C6&displaylang=en)



Exchange Server Cookbook
Exchange Server Cookbook: For Exchange Server 2003 and Exchange 2000 Server
ISBN: 0596007175
EAN: 2147483647
Year: 2006
Pages: 235

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net