Exchange 2013, used as spam relay. Can't clear queues fast enough.

I have a customer that their local tech guy removed relay restriction on the local mail server.

They are now relaying 100,000+ spam messages.  I can't use the queue tracker to clean them.  I delete a que with not NDR and seconds later it is over 1000 again.

The mail.que file is 29GB

Is there some trick to cleaning out the pending messages?  Can I drop the time out to minutes to get them to clear out faster?  I'm also thinking turn off NDR for external.  

Any ideas or tips to get this cleaned up (I've already recreated the SMTP connector so that it will not relay).
erikwhitewayAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pete LongTechnical ConsultantCommented:
Get-Queue | Get-Message | Remove-Message -WithNDR $false

Warning this will drop legitimate mail as well


P
Pete LongTechnical ConsultantCommented:
or
Remove-Message -Server server-name -Filter {MessageSourceName -eq “SMTP:Connector-name”} WithNDR $false

May be a little more elegant

P
erikwhitewayAuthor Commented:
Does that delete all queued messages in the whole system?  Can I put any filters on that (certain domains or content)?
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Pete LongTechnical ConsultantCommented:
we were typing a the same time :)
Pete LongTechnical ConsultantCommented:
Yes you can filter on certain addresses like so,.....

Remove-Message -Server server-name -Filter {FromAddress -eq “pete@nastydomain.com”} WithNDR $false

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
erikwhitewayAuthor Commented:
What would be great - all mail that came from the internet mail connector (I've removed the one they can in on, can I still filter by it) and From is NOT *@Local.com

Is that possible?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.