question

SeekingTruth-2322 avatar image
0 Votes"
SeekingTruth-2322 asked YukiSun-MSFT commented

What is held in the TransportRoles\data\Queue?

I have several questions about the "\Microsoft\Exchange Server\V15\TransportRoles\data\Queue"\mail.que" file.

  1. Why does it get so large?

  2. What is stored in this queue and is there a way to view the contents? How?

  3. Is the data in there still valuable?


I would have thought it to be a transient queue and hence grow and shrink automatically.

I haven't been able to use Powershell or the Mailbox Tool to see what is in the queue unfortunately.

Can you please point me in the right direction on where the data in there is needed.

Thanks



office-exchange-hybrid-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

YukiSun-MSFT avatar image
0 Votes"
YukiSun-MSFT answered YukiSun-MSFT commented

Hi @SeekingTruth-2322,

As regards to your questions, hopefully you can find the information below helpful:

Why does it get so large?

Mail.que is an ESE database with circular logging, hence it won't shrink automatically when items are deleted from mail.que. This database will grow with normal mail flow and if you have busy server, it's common that the mail.que file will grow rapidly to a quite large size.

What is stored in this queue and is there a way to view the contents? How?*

According to this official blog, broadly, your mail.que consists of following elements:

  • The current day’s message traffic, along with messages which exist on disk longer than normal expiration settings (like poison queue, Journal messages etc.)

  • Shadow redundancy queuing

  • Submission queue and messages waiting for delivery

  • Messages persisted in Safety Net in case they are required for re-delivery

Regarding to your concern about how to view the contents inside mail.que, to the best of my knowledge, I'm afraid it's not feasible to read data inside a database directly.


Is the data in there still valuable?*

If mail flow works fine in your environment, you can go ahead deleting the mail.que using the steps below:

1.Run the following command and make a note of the count of messages in the queue:

 Get-Queue

2.Pause the "Microsoft Exchange Transport" service via services.msc or the powershell command below:

  suspend-service -name "Microsoft Exchange Transport"

3.Run the command below again to make sure that the queues are empty:

 Get-Queue

4.Stop the "Microsoft Exchange Transport" service:

 stop-service -name "Microsoft Exchange Transport"

5.Rename mail.que file (ie. mail.que.old).
6.Start Microsoft Exchange Transport.

 start-service -name "Microsoft Exchange Transport"

7.Run the command below to make sure queues & mail flow are working as expected.

 Get-Queue

8.Delete mail.que.old file.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SeekingTruth-2322,

I am writing to check if provided information is helpful. If you have any questions or need further help on this issue, please feel free to post back.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·