Iredmail command line management postfix queues

Source: Internet
Author: User
Keywords Command line MAILQ delete can
Tags aliyun based command line delete html http info print

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.