• No : 1743
  • 公開日時 : 2022/11/08 19:26
  • 印刷

滞留したキューの操作方法について教えてください。

回答

滞留したキューは MGW ワーカーのコマンドラインから再送・削除できます。
キューを再送・削除するのためのコマンドは以下のとおりです。
 
〇再送
 【指定キューのみ再送】
  # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-send1/ -i <キュー ID>
  # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-send2/ -i <キュー ID>
  # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-recv1/ -i <キュー ID>
  # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-recv2/ -i <キュー ID>
 
   ※GUARDIANWALL MailSuite が内包する 4 つの postfix(etc-send1、etc-send2、etc-recv1、etc-recv2)のうち、
    指定キューが存在する postfix でコマンドを実行してください。
 
 【全てのキューを再送】
  # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-send1/ -f
  # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-send2/ -f
  # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-recv1/ -f
  # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-recv2/ -f
 
〇削除
 【指定キューのみ削除】
  # /usr/guardian/mgw/postfix/sbin/postsuper -c /usr/guardian/mgw/postfix/etc-send1/ -d <キュー ID>
  # /usr/guardian/mgw/postfix/sbin/postsuper -c /usr/guardian/mgw/postfix/etc-send2/ -d <キュー ID>
  # /usr/guardian/mgw/postfix/sbin/postsuper -c /usr/guardian/mgw/postfix/etc-recv1/ -d <キュー ID>
  # /usr/guardian/mgw/postfix/sbin/postsuper -c /usr/guardian/mgw/postfix/etc-recv2/ -d <キュー ID>
 
 【全てのキューを削除】
  # /usr/guardian/mgw/postfix/sbin/postsuper -c /usr/guardian/mgw/postfix/etc-send1/ -d ALL
  # /usr/guardian/mgw/postfix/sbin/postsuper -c /usr/guardian/mgw/postfix/etc-send2/ -d ALL
  # /usr/guardian/mgw/postfix/sbin/postsuper -c /usr/guardian/mgw/postfix/etc-recv1/ -d ALL
  # /usr/guardian/mgw/postfix/sbin/postsuper -c /usr/guardian/mgw/postfix/etc-recv2/ -d ALL
 
各 postfix(etc-send1、etc-send2、etc-recv1、etc-recv2)で保持しているキューのキュー ID は以下のコマンドで確認できます。
 
〇キュー ID の確認
 # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-send1/ -p
 # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-send2/ -p
 # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-recv1/ -p
 # /usr/guardian/mgw/postfix/sbin/postqueue -c /usr/guardian/mgw/postfix/etc-recv2/ -p
対象製品・バージョン
GUARDIANWALL Mailセキュリティ