?
Solved

How to release mails stuck in the Unreachable domain queue

Posted on 2010-08-27
5
Medium Priority
?
8,512 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:Filip Heens
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 2

Author Comment

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

Accepted Solution

by:
Filip Heens 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:Filip Heens
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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
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
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

718 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