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.