Solved

How to release mails stuck in the Unreachable domain queue

Posted on 2010-08-27
5
7,920 Views
Last Modified: 2012-07-19
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
Comment
Question by:heensit
  • 3
5 Comments
 
LVL 2

Author Comment

by:heensit
ID: 33541279
the newe servers are Exchange 2010 servers...
0
 
LVL 2

Accepted Solution

by:
heensit earned 0 total points
ID: 33543963
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
 

Expert Comment

by:tk3
ID: 33781023
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
 
LVL 2

Author Comment

by:heensit
ID: 33781108
Thanks, I'll try that also net time, but I think that didn't help that time....
0
 

Expert Comment

by:Brent0473
ID: 38202989
Retry-Queue -Identity   <servername>\Unreachable -Confirm -Resubmit $true
this command worked perfectly... thanks
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read this checklist to learn more about the 15 things you should never include in an email signature.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question