Our Exchange 2007 server has a ton of e-mail stuck in the submission queue that are mostly undeliverables - or ones that keep being rejected. We currently have just over 107,000 and any powershell scripts I run are not deleting messages i specify. It seems that all legit e-mail is going through (though slightly delayed). Is there a way to dump the entire queue?
The reason it got so big was because had an open relay which has now been resolved.
If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.