I have an Exchange Server 2010 mailbox which receives alert messages on the order of 800,000+ a day. I am working on getting the developers to change their code, but in the meantime, I am looking for ways to clear out the mailbox. I have a Search-Mailbox script with the -deletecontent switch that works, but there appears to be an upper limit on the number of messages it can handle. Based on my experience the upper limit lies between 300,000 (my script does work here) and 690,000 (my script does not work at this level).
I have tried using a Retention Policy, but that didn't work either. I am currently looking at the following options:
1) Put in an Inbox Rule that permanently deletes the error messages.
2) Investigate using a Transport Rule.
3) Letting the mailbox fill up again and let the Developers get the message that they need to clean up their code. - my favorite as I believe anything else is just enabling bad behavior.
Thoughts?
TIA
Nate
nc