Flushing emails from the email queue using the CLI

Prev Next

Use the CLI commands in this topic to flush one email or all emails from the queue.

To flush a single email from the queue:
  1. Go to CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. Locate the message queue identification number of the email.

    hostname (config) # show email-analysis message-queue
    --Queue Type--   --Queue ID--    --Size--     --Arrival Time--     --Sender--
                            --Recipient--                      --Error--
    deferred        4364lK4zv2zMtrG9  1102       Fri Nov 30 11:51:25        customnoticeaddress@king.com
                           king@king6.com   (delivery temporarily suspended: connect to
    2001:470:84a7:3066:2e0:81ff:fec3:4a4[2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused)
    deferred        4364lK57tQzMtr5X   1102      Fri Nov 30 11:51:25        customnoticeaddress@king.com
                           king@king6.com   (delivery temporarily suspended: connect to
    2001:470:84a7:3066:2e0:81ff:fec3:4a4[2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused)
    deferred        436B5x11h0zMtr4W   1221      Fri Nov 30 11:51:25        customnoticeaddress@king.com
                           king@king6.com    (connect to 2001:470:84a7:3066:2e0:81ff:fec3:4a4
    [2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused)
    deferred       436B5x1NgSzMtr5W    1221      Fri Nov 30 11:51:25        customnoticeaddress@king.com
                           king@king6.com        (connect to 2001:470:84a7:3066:2e0:81ff:fec3:4a4
    [2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused)
    deferred       4364lJ46HFzMtr55    1102      Fri Nov 30 11:51:24        customnoticeaddress@king.com
                           king@king6.com   (delivery temporarily suspended: connect to
    2001:470:84a7:3066:2e0:81ff:fec3:4a4[2001:470:84a7:3066:2e0:81ff:fec3:4a4]:25: Connection refused)
  3. Specify the message queue identification number you want to flush.

    hostname (config) # email-analysis flush-message queue-id <id>
  4. Verify the status of the queue.

    hostname (config) # show email-analysis message-queue
To flush all the emails from the queue:
  1. hostname > enable
    hostname # configure terminal
  2. Flush all the emails from the queue.

    hostname (config) # email-analysis flush-message all
  3. Verify the status of the queue.

    hostname (config) # show email-analysis message-queue
    --Queue Type--  --Queue ID--  --Size-- --Arrival Time--    --Sender--            --Recipient--                     --Error--