忘備録です。Postfixの場合ホールドキューというものがあり、そこに溜まったメールを一旦退避させます。 postsuper -h ALL ← すべてのメールをホールドキューに退避。ls -l /var/spool/postfix/hold/ | wc -l ←ホールドキューに溜まったメールの件数確認 postqueue -p | grep 'root@hogehoge.jp' | cut -d '!' -f 1 > delete-que.txt ← root@hogehoge.jpからのみのキューIDを吐き出し while read LINE; do echo postsuper -d ${LINE} >> delete-que.sh;done < "delete-que.txt" ↑ delete-que.txtを読み込んで 「postsuper -d 5F6D011DD398」 という一行1データのテキストファイルの書き出し。chmod 755 ./delete-que.sh ←パーミッション変更./deleteque.sh ←実行 postsuper -H ALL ← 残ったホールドキューの中身を全部通常のキューに戻す。 postfix flush ←排出 以上です。