Postby mikethebike » Wed Dec 05, 2007 6:39 am
Jon,
you will have difficulty removiong messages from the queue now that it is so large, anything you do will take some time. Any command you do to query the queue, or manipluate the messages will take a while.
When you run "omqstat -t", do you see any "throughput on the unix queue?
I would suggest stopping the gateway first while you process the messages.
Are you sure they are all SPAM? Run "omstat -q unix > /tmp/jon.txt" to get an idea of whats on the queue.
If they do all appear to be SPAM, use omqdump to "D" (delete) messages from the unix queue (I would do it in batches of 500 just in case something goes wrong.
If they are not all spam, and you want to retain some messages, you may wish to use omresub to delete or resubmit messages....although its a bit tricky.....
edit the /tmp/jon.txt file, replacing all the lines you want to keep with "1", and all the lines you want to delete with "2".
Then run:
omresub -q unix -i < /tmp/jon.txt
Mick