Moving Transport Queue In Exchange 2007…

All servers running exchange 2003 has smtp queues. This behaviour has been changed in 2007, with only the transport servers having a mail queue. If you have an edge server in your environment, then both your edge and hub servers have a transport queue, which is an ESE database named Mail.Que

If you don’t have an edge, the transport queues will be present only in the hub servers. The default location of the transport queue database is in System driveProgram FilesMicrosoftExchange ServerTransport RolesDataQueue.

The location will have an ESE database named Mail.Que, a temporary edb file, log files, checkpoint file and reserved log files. It is ideal to move the queue database to a drive which has more space, as it will stop message delivery if the drive runs out of space.

There are two ways to move the database to a different drive.

1. Edit the EdgeTransport.exe Config file.

Navigate to exchange 2007 bin directory (system driveProgram FilesMicrosoftExchange ServerBin, assuming the default location).

Open the edgetransport.exe.config file using notepad.

Edit the location for QueueDatabasePath and QueueDatabaseLoggingPath to your desired location and save. The transport service has to be restarted for the change to take effect. The queue from the original location is NOT moved, it only creates a new database in the new location.

2. Use Move-TransportDatabase script in exchange scripts folder.

Launch Exchange Shell and run the following command.

.Move-TransportDatabase.ps1 -QueueDatabasePath “d:Queue” -QueueDatabaseLoggingPath “d:QueueLogs”

The queue database and associated files will be moved from original location to the new one and the transport service is restarted automatically as part of the script, which is a good feature.

Moral : Use the script to make things easier!

SUBSCRIBE FOR DAILY ARTICLE UPDATES VIA EMAIL
Get the published articles delivered straight to your inbox. Your details will not be passed to any third party company.

Exchange Architect, Blogger, Husband & Dad. I have been in IT for the last 11 years, with Exchange Server becoming the prime area in the last few years. I am active on TechNet forums & Experts Exchange.

View all contributions by

  • How To Find Which Store Worker Process Is Responsible For A Mailbox Database In Exchange 2013

    Exchange 2013 has a new store named the Managed Store. In order to provide failure isolation in the database level in 2013, Microsoft has introduced two new processes as part of the managed store concept. First is the Store Worker Process(Microsoft.Exchange.Store.Worker.Exe) which does the same job that store.exe handled in previous versions. The only difference [...]

    Read More
  • Upload GAL Photos Using Exchange 2013 OWA Options (ECP)

    The “self service” option in OWA 2013 (ECP) has been enhanced with the option for uploading GAL photo by the end user. In Exchange 2010 ECP, end users were able to edit their contact details, address etc depending on the role assignment policy. In Exchange 2013 ECP ( OWA –> Options), the end user can [...]

    Read More
  • OWA 2013 Virtual Directory Displays The OWA Version As Exchange 2010

    A bug or typo in the code? While browsing the EAC, I noticed that the OWA virtual directory displays that the OWA Version as Exchange 2010 & not 2013. This happens in an Exchange 2013 only environment. The Shell displays the same info. MS, Is it a bug in the code or a typo?

    Read More
  • 2 Million Hits & 2.67 Million Page Views

    Yes, HowExchangeWorks has had 2 Million Hits & 2.67 Million page views so far! I take this opportunity to thank all my readers for your continuous support. I couldn’t have done this without you guys.

    Read More
  • Exchange 2013 Server Role Requirements Calculator v5.1

    Exchange Team has finally released the first public version of the 2013 Server Role Requirements Calculator. The name has been changed as the calculator now makes recommendations for both the Mailbox and CAS roles. If anyone out there is still confused, this is the 2013 equivalent of the 2010 Storage Calculator. The look and feel [...]

    Read More

2 comments… add one

  • Liam July 13, 2009 at 5:15 pm

    Very informative. Thanks

    Reply edit
  • Allen December 7, 2010 at 5:05 pm

    Very helpful script with one small caveat, if you're going with option 1. Make sure when you move the files over to the new location that the owner is "Network Services" with full control. Otherwise the transport service will not start, complaining about read/write access.

    Reply edit

Speak Your Mind…

Website Hits