Hello, One of my clients did a mailshot of 35k emails for some reason the other night and they have a **** dsl connection so it completely clogged up their mail system. I deleted out all the emails using the exchange shell using remove-message -filter and did it by the subject of the newsletter, that cleared nearly all the problem, but because the messages had been trying to go out all the night before as they didnt tell me until the next day, there is now a load of messages from source "DSN" which are bounce backs for "400 4.4.7 message delayed" but these aren't going anywhere they are just bouncing round the system, I have suspended all these queues and I'm trying to delete the messages through teh shell with: remove-message -filter {status -eq "suspended} -WithNDR $false The command is accepted, i press a to "yes to all" - but then the message don't get deleted from the queues. There is about 400 mail queues with 1 or 2 of these messages in them and I really dont want to manually clear down the queues. I could add a new send connector for all email to a fictitious ip address so then there is only one mail queue and then delete all the messages out of that one queue but that doesnt represent a terribly elegant solution as it means their email system will be down, anyone know why my shell command isnt deleting the mail? Thanks in advanced
Hi Margo not sure why that command wouldnt be working, unless it's something to do with the ResultSize attribute not being specifically adressed in the powershell command you could try Get-TransportServer | Get-Queue | Get-Message -ResultSize unlimited | where{$_.status -eq "suspended" -and $_.Queue -notlike "*\Submission*"} | Remove-Message -WithNDR $False This should remove all suspended messages in all queues other than the submission queue. If you want to include the submission queue just omit -and $_.Queue -notlike "*\Submission*" from the command.
Hello, Thanks for the reply's guys, for some reason It just will not delete messages by status. I found out the other reason why there was 600 queues again this morning was because someone re-did the mailshot this morning....yawn... I have solved it now, by- remove-message -filter {subject -eq "NEWSLETTER TITLE"} -WithNDR $false remove-message -filter {subject -eq "undeliverable*"} -WithNDR $false This has cleared out 99% of the emails, there is a few queues i am just clearing down manually. They complain their support bill is big every month, then they do stupid stuff like that all the time!
Trust me companies have no idea about IT and how spending money can improve work flow. I get lumbered with the in office IT questions and our support company probably get many that I don't see!
Its a bit annoying as when this all started 3 days ago i explained their lines just will not cope with sending out large mailshots like that, so advised they use a service like mailchimp. Got the onsite guy (I think they have aspirations for this gut to be their onsite guy but his current method of doing the IT is to ring me about EVERYTHING, he is new so havent been charging for quick calls but going to start reigning it back soon as I have other clients and I can't be someone's 24/7 advisor for free!) now to enforce on the staff that this kind of thing doesnt work and is expensive.
Turn it off rebox in original packaging use pen paper and stamp. Don't normally go down well but is truth.
no, you've already prooved your calibre, you have to be able to say "have you tried turning it off and on again?" - I hate having to actually say that to people, as they just laugh and say oh thats what you all say.....