Rexxer

Some tips for me and other

Exchange 2010 + move e-mails to another transport server

1: On exchange EDGE server 1
 
get-queue
2: Pause the transport services,
3: Suspend the queue
get-queue | ? {$_.deliverytype -eq ‘dnsconnectordelivery’} | get-message | suspend-message
4: Then export those suspended messages:
get-queue | ? {$_.DeliveryType -eq ‘dnsconnectordelivery’} | get-message | ForEach-Object {$temp=”c:\temp\”+$_.InternetMessageID+”.eml”;$Temp.Replace(“<“,”_”);$Temp=$Temp.Replace(“>”,”_”);Export-Message $_.Identity | AssembleMessage -Path $Temp}
5: Remove exchange Edge server 1 from the send connector
6: Open c:\temp folder on exchange Edge server 1
7: Copy all the *.eml files from the c:\temp folder and remote into exchange Edge server 2.
8: Browse to where exchange is installed on the Edge server (this can be c: or d: drive) eg:
D:\Program Files\Microsoft\Exchange Server\TransportRoles\Replay and paste all the .eml files copied from c:\temp on exchange EDGE server 1.
Since the transport service is running this queue will quickly flush.

9: Return to exchange Edge server 1 and start the transport services again once you have resolved the technical issue with that Edge server.

Took from here: http://exchangegloves.blogspot.com/2013/06/move-emails-from-one-hub-server-to.html

or so:

In the event a Hub Transport server is completely out, you may have the requirement to move all messages in a queue to another Hub Transport server in your organisation to ensure the messages are delivered.  How can you do this?

First you need to export all messages in the current queue.  You can do this with the following powershell commands:

$array = @(Get-Message -Queue “QueueName” -ResultSize unlimited)

 

$array | ForEach-Object {$i++;Export-Message $_.Identity | AssembleMessage -Path (“c:\MailsExport\”+ $i +”.eml”)}

To import the messages into the new Hub Transport server, simply place the .eml files into the Transport Pickup folder.  The new server should immediately start processing the messages.

Took from here: http://clintboessen.blogspot.com/2012/09/move-messages-to-another-working-queue.html

Leave a Reply