Monday, 18 January 2016

Create new queue database in Exchange 2016

Introduction


The queue database is a JET database that includes emails that are held in any of the queues on an Exchange mailbox or edge transport server. This queue database can grow to be quite large and may impact disk space which causes a problem with back pressure where the Exchange server may start to reject email.

In this post, I’ll demonstrate how to create a new queue database in Exchange 2016. These instructions also apply to Exchange 2007, 2010 and Exchange 2013.

How to create a new queue database (mail.que) or shrink the queue database in Exchange 2016


The queue database is stored on the C drive in default installations: C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Queue.

You can see the contents of this folder below. Note that there is a 500MB mail.que file.

image

To recreate the queue database, we can go through the steps below:

Stop the Exchange Transport Service:

Stop-Service MSExchangeTransport

image

Move the contents of C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Queue to another location.

Once done, we can restart the transport service:

Start-Service MSExchangeTransport

image

We can now see that the mail.que database and related transaction log files have been recreated and we have a queue database which is only 8MB in size:

image

Once the service starts up, you can delete the original queue database and transaction logs as they are no longer needed by Exchange.

Conclusion


In this post, I’ve demonstrated how to recreate or shrink the mail.que queue database on Exchange 2016. The same instructions also apply to Exchange 2007, 2010 and 2013.

15 comments:

  1. Hi Mark,
    if there are any emails in the old queue, did it will be delivered after we copy old queue to another place?

    ReplyDelete
  2. i was just browsing along and came upon your blog. just wanted to say good blog and this article really helped me.
    heathrow to london minicab service

    ReplyDelete
  3. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck.
    swiss taxi

    ReplyDelete
  4. You may want to first pause the service and wait until messages in the queue get processed before stopping the service so that no messages are lost.

    Suspend-Service -Name 'MSExchangeTransport'

    ReplyDelete
  5. Very informative post. I really do hope and pray this stuff works.
    Tooting Taxi

    ReplyDelete
  6. Great article, learned many things about email marketing from this blog, very informative. The Small Business Databaseis one of the best email providers in USA.

    ReplyDelete
  7. thanks for sharing this wonderful blog.we are very thankful for this article.
    Cheap Taxi | Minicabs | Airport run

    ReplyDelete
  8. Nice post. Thanks for sharing this wonderful information. Please keep sharing more content about email database.
    Database Provider
    Email Marketing Lists
    Student Database
    B2B Database
    Small Business Database

    ReplyDelete
  9. How to troubleshoot McAfee error code 1?

    The McAfee Error code 1 is a serious issue caused by misconfigured device settings/irregularities in your system Windows registry. Just dial the toll-free number to get the resolution regarding your queries.

    ReplyDelete
  10. Norton antivirus is one of the most popular and well-reputed antivirus software in the market. It protects devices from virus, malware and other online threats. However, sometimes users face issues while performing the Norton Login process. If you are one of them who are getting the same issue then no need to worry as we are here to provide the best solution to the problem.



    Norton Internet Security Login
    Norton Antivirus Login
    Log into Norton Account
    My Norton Account Login
    Norton Antivirus Account Login
    Norton Antivirus Sign In
    Norton Security Login
    Norton Sign In
    Norton Account Login
    My Norton Account Sign In
    Norton Login My Account

    ReplyDelete