delete mail

モード
特権EXECモード
カテゴリー
運用・管理 / メール送信

構文

コマンド構文

# delete mail {all|mail-id ID}

コマンド説明

メール送信キュー内のメールを削除する。

パラメーター

all
すべてのメールを削除したいときに指定する
mail-id ID
メールのメッセージID。特定のメールだけを削除したいときに指定する。メッセージIDはshow mailコマンドで確認可能

使用例

awplus# show mail
Mail Settings
------------------------------------------------------------
State                              : Alive
SMTP Server                        : 172.17.28.1
Host Name                          : zein@example.com
Debug                              : Disabled

Messages
------------------------------------------------------------
To                                 : admin2@example.com
Subject                            : Hi
Message-ID                         : 20120302040929.19014

awplus# delete mail mail-id 20120302040929.19014
awplus# show mail
Mail Settings
------------------------------------------------------------
State                              : Alive
SMTP Server                        : 172.17.28.1
Host Name                          : zein@example.com
Debug                              : Disabled

Messages
------------------------------------------------------------
There is no mail in the queue.

関連コマンド