View queues
&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;
Postqueue-p
Delete queue message by ID
Postsuper-d MessageID
To delete a queue message based on the sender, replace "info@otherdomain.com" to
MAILQ | Tail +2 | awk ' BEGIN {RS = '}
# $7=sender, $8=recipient1, $9=recipient2
{if ($ = = "Info@otherdomain.com" && $ = "")
Print $}
' | tr-d ' *! ' | Postsuper-d-
Depending on the recipient deletion, replacing you@yourdomain.com can
MAILQ | Tail +2 | awk ' BEGIN {RS = '}
# $7=sender, $8=recipient1, $9=recipient2
{if ($ = = "You@yourdomain.com" && $ = "")
Print $}
' | tr-d ' *! ' | Postsuper-d-
According to the occurrence of the server hostname to remove, replace Senderhostname
MAILQ | grep Senderhostname | awk ' {Print $1′} | Postsuper-d-
If the current system queues are very long and burdensome, we can hold the messages in the queue first.
Postsuper-h All
When you're done, move the queue back.
Postsuper-r All
Reference article http://www.faqforge.com/linux/server/manage-the-postfix-mailqueue-with-postsuper-postqueue-und-mailq/