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).
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”
Moral : Use the script to make things easier!