Delete messages from the queue matching a pattern

Description
This article describes the method to delete all messages from the Axigen
queue matching a pattern.
Resolution
In order to delete emails from the Axigen queue matching a pattern you will
have to use the CLI interface.

Login to the CLI interface please use the following command:
telnet “Axigen IP address” 7000
user admin “admin password”

Next issue the following command in order to enter the Queue context:
<#> ENTER QUEUE

You can type “help” any time to view all the available commands for the
current CLI context.
HELP
————————————-
The commands available for the Queue context are:
EXIT/QUIT – exits CLI and closes connection to AXIGEN
HELP – prints this help message
BACK – switches back to the previous context

FORCE QUEUE – tries to force all mails in queue to be processed/sent

LIST – lists all queue entries
LIST ID – lists detailed information about a queue entry based on id
LIST FILTER – lists the result of the filters applied on queue
entries
where can be a subset sepparated by spaces of the following: – $
* size> – lists all mails with size greater than (eg: 10K,
2M, no suffix<=>bytes)
* size< – lists all mails with size less than (eg: see above)
* size= – lists all mails with size equal to (eg: see above)
* age> – lists all mails with age is greater than (eg: 12h,
1d, no suffix<=>“s”)
* age< – lists all mails with age is less than (eg: see
above)
* age= – lists all mails with age is equal to (eg: see above)
* retries> – lists all mails with retries greater than
* retries< – lists all mails with retries less than
* retries= – lists all mails with retries equal to
* status= – lists all mails with status containing
* sender= – lists all mails with sender containing
* sender!= – lists all mails with sender not containing
* recipient= – lists all mails with recipient containing
* recipient!= – lists all mails with recipient not containing
* next_schedule> – lists all mails with next_schedule greater than
(eg: “2 Jan 2007 17:34”)
* next_schedule< – lists all mails with next_schedule less than
(eg: see above)
* next_schedule= – lists all mails with next_schedule equal to
(eg: see above)
* message= – lists all mails with failure info containing
(eg: lookup)
* message!= – lists all mails with failure info not containing
(eg: see above)

RETRY |lastFilter – reschedules the mail with id , or the
mails matching the last “list filter” command
NDR |lastFilter – send ndr for the mail with id , or the
mails matching the last “list filter” command
DELETE |lastFilter – delete the mail with id , or the mails
matching the last “list filter” command

ENTER QUARANTINE – enters the quarantine context
ENABLE PROCESSING DEBUG – Start debugging mode for processing module
DISABLE PROCESSING DEBUG – Stop debugging mode for processing module
CONTINUE PROCESSING DEBUG – Perform another processing step
————————————-
+OK: command successful

In order to list the messages which have a specific recipient type:
LIST FILTER recipient=”string to match in the recipient’s address”

To delete these messages found with the previous command type:
DELETE lastFilter

You can quit CLI at anytime using QUIT.

Revisions

No comments yet.

Leave a Reply