This article describes the method to delete all messages from the Axigen queue matching a pattern.
Solution
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
<login> user admin
<password> "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.
<queue#> 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 <id> - lists detailed information about a queue entry based on id
LIST FILTER <filters> - lists the result of the filters applied on queue entries
where <filters> can be a subset sepparated by spaces of the following: - $
* size><value> - lists all mails with size greater than <value> (eg: 10K, 2M, no suffix<=>bytes)
* size<<value> - lists all mails with size less than <value> (eg: see above)
* size=<value> - lists all mails with size equal to <value> (eg: see above)
* age><value> - lists all mails with age is greater than <value> (eg: 12h, 1d, no suffix<=>"s")
* age<<value> - lists all mails with age is less than <value> (eg: see above)
* age=<value> - lists all mails with age is equal to <value> (eg: see above)
* retries><value> - lists all mails with retries greater than <value>
* retries<<value> - lists all mails with retries less than <value>
* retries=<value> - lists all mails with retries equal to <value>
* status=<value> - lists all mails with status containing <value>
* sender=<value> - lists all mails with sender containing <value>
* sender!=<value> - lists all mails with sender not containing <value>
* recipient=<value> - lists all mails with recipient containing <value>
* recipient!=<value> - lists all mails with recipient not containing <value>
* next_schedule><value> - lists all mails with next_schedule greater than <value> (eg: "2 Jan 2007 17:34")
* next_schedule<<value> - lists all mails with next_schedule less than <value> (eg: see above)
* next_schedule=<value> - lists all mails with next_schedule equal to <value> (eg: see above)
* message=<value> - lists all mails with failure info containing <value> (eg: lookup)
* message!=<value> - lists all mails with failure info not containing <value> (eg: see above)
RETRY <mailid>|lastFilter - reschedules the mail with id <mailid>, or the mails matching the last "list filter" command
NDR <mailid>|lastFilter - send ndr for the mail with id <mailid>, or the mails matching the last "list filter" command
DELETE <mailid>|lastFilter - delete the mail with id <mailid>, 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:
<queue#> LIST FILTER recipient="string to match in the recipient's address"
To delete these messages found with the previous command type:
<queue#> DELETE lastFilter
You can quit CLI at anytime using QUIT.
Login to the CLI interface please use the following command:
telnet "Axigen IP address" 7000
<login> user admin
<password> "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.
<queue#> 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 <id> - lists detailed information about a queue entry based on id
LIST FILTER <filters> - lists the result of the filters applied on queue entries
where <filters> can be a subset sepparated by spaces of the following: - $
* size><value> - lists all mails with size greater than <value> (eg: 10K, 2M, no suffix<=>bytes)
* size<<value> - lists all mails with size less than <value> (eg: see above)
* size=<value> - lists all mails with size equal to <value> (eg: see above)
* age><value> - lists all mails with age is greater than <value> (eg: 12h, 1d, no suffix<=>"s")
* age<<value> - lists all mails with age is less than <value> (eg: see above)
* age=<value> - lists all mails with age is equal to <value> (eg: see above)
* retries><value> - lists all mails with retries greater than <value>
* retries<<value> - lists all mails with retries less than <value>
* retries=<value> - lists all mails with retries equal to <value>
* status=<value> - lists all mails with status containing <value>
* sender=<value> - lists all mails with sender containing <value>
* sender!=<value> - lists all mails with sender not containing <value>
* recipient=<value> - lists all mails with recipient containing <value>
* recipient!=<value> - lists all mails with recipient not containing <value>
* next_schedule><value> - lists all mails with next_schedule greater than <value> (eg: "2 Jan 2007 17:34")
* next_schedule<<value> - lists all mails with next_schedule less than <value> (eg: see above)
* next_schedule=<value> - lists all mails with next_schedule equal to <value> (eg: see above)
* message=<value> - lists all mails with failure info containing <value> (eg: lookup)
* message!=<value> - lists all mails with failure info not containing <value> (eg: see above)
RETRY <mailid>|lastFilter - reschedules the mail with id <mailid>, or the mails matching the last "list filter" command
NDR <mailid>|lastFilter - send ndr for the mail with id <mailid>, or the mails matching the last "list filter" command
DELETE <mailid>|lastFilter - delete the mail with id <mailid>, 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:
<queue#> LIST FILTER recipient="string to match in the recipient's address"
To delete these messages found with the previous command type:
<queue#> DELETE lastFilter
You can quit CLI at anytime using QUIT.
OS:
LinuxWindowsFreeBSDNetBSDOpenBSDSolaris