Quote:
Originally Posted by sandiphw Recently we are receving thousands of spam mails in the morning which chokes our mail delivery system. All these goes to deffered queue. I need to flush the queue to put those in active queue but it takes 2/3 hours to clear the queue.
How can I delete all those spam mails from the queue? The examples of these mails are :
B665819918A0* 4469 Fri Mar 7 09:12:16 MAILER-DAEMON Kyung-0flounce@holtecnet.com |
Login to the server, switch user to zimbra, then run the postsuper command similar to:
Code:
# postuper -d B665819918A0
You can use
postqueue -p to list out all the items in the queue, and then use
postsuper -d <mailID> -d <mailID> -d <mailID> ... and so on, to delete a bunch of them in a row.
If you are up on your awk or perl, then you can whip up a script that will output the queue, grab the mailID for items that fit certain criteria, and call postsuper for those messages only. I leave that last part up to you.
