Today a collegae of mine ran into a problem with Exchange 2010. Messages both internally/externally were not delivered. We noticed that the Exchange server was using 100% CPU resources. After some investigation we noticed that the submission queue was building up.
We decided to suspend the queue, exporting the messages. Then deleting the queue and recreating it. Finally we imported the exported messages. We used the following steps :
First open the Exchange Management Shell
Show all Exchange queues
|
1 |
get-queue |
Suspend all messages in this queue
|
1 |
get-queue exchangeserver#submission | get-message | suspend-message |
Export all suspended messages
|
1 2 |
$array = @(Get-Message -Queue "ExchangeServer\submission" -ResultSize unlimited) $array | ForEach-Object {$i++;Export-Message $_.Identity | AssembleMessage -Path ("c:\Mailqueue\"+ $i +".eml")} |
![[image%255B2%255D.png]](http://lh3.ggpht.com/-fJm0wXhEc0U/UCFS1kn_ifI/AAAAAAAAE4M/2gE9vhegw9o/s1600/image%25255B2%25255D.png)
Stop the MsexchangeTransport service
|
1 |
Stop-Service MsExchangeTransport |
Now rename the queue directory, the default directory is
![[image%255B26%255D.png]](http://lh4.ggpht.com/-u_5EN8pTLu4/UCFS8GRaGUI/AAAAAAAAE6M/H6FyZwnJKIM/s1600/image%25255B26%25255D.png)
Startthe MsexchangeTransport service
|
1 |
Start-Service MsExchangeTransport |