Solved

How to release mails stuck in the Unreachable domain queue

Posted on 2010-08-27
5
8,326 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

617 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