Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8709
  • Last Modified:

How to release mails stuck in the Unreachable domain queue

Hi After removing our old Exchange 2007 server all our distribution groups lost their expantion server
and all the mails send to that distribution group got stuck in a queu "Unreachable domain"
After reassigning an expansion server to the distribution groups new mails send to the distribution groups are comming in, but hte mails stiuck in the Unreachable domain queue stay there.
There is no option to resend these mails...
How do I get them resend? Because when I do a Remove (With NDR) I don't get an NDR...
0
Filip Heens
Asked:
Filip Heens
  • 3
1 Solution
 
Filip HeensAuthor Commented:
the newe servers are Exchange 2010 servers...
0
 
Filip HeensAuthor Commented:
Hi
I've found out a way myself.

first via EMS: Get-Message -Queue "servername\Unreachable" | ForEach-Object {$Temp="C:\mailexport\"+$_InternetMessageID+".eml";$Temp=$Temp.Replace("<","_");$Temp=$Temp.Replace(">","_");Export-Message $_.Identity | AssembleMessage -Path $Temp}

then go to the C:\mailexport\
there you'll find a file .eml
open it with notepad
select everything until the next X-SENDER line (do not include this line)
paste eveything in a new name1.xml file
go back to the .eml file, select the next part and paste it in a new name2.eml file
do this until the original eml file is empty.
suspend the submission queue, stop the exchange transport service
paste all the eml files into the "C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Pickup" folder
start the transport service
check the submission queue, you should find all the mails in the submission queue
resume the submission queue and all the mails will be send
0
 
tk3Commented:
I believe there is a simplier way.  From the EMS:  

Retry-Queue -Identity   <servername>\Unreachable -Confirm -Resubmit $true

The -Confirm switch is optional.  Worked very well for me.
0
 
Filip HeensAuthor Commented:
Thanks, I'll try that also net time, but I think that didn't help that time....
0
 
Brent0473Commented:
Retry-Queue -Identity   <servername>\Unreachable -Confirm -Resubmit $true
this command worked perfectly... thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now