Solved

How to release mails stuck in the Unreachable domain queue

Posted on 2010-08-27
5
7,710 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
Comment Utility
the newe servers are Exchange 2010 servers...
0
 
LVL 2

Accepted Solution

by:
heensit earned 0 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks, I'll try that also net time, but I think that didn't help that time....
0
 

Expert Comment

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

Featured Post

Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now