Mass remove outgoing messages from the Outgoing Delivery Queue
It may be needed to remove multiple messages from the Outgoing Delivery Queue (for example ARF reports). This can be done using the SpamExperts, or the API.
N-able is also able to provide an open source script that can help facilitate this. This can be downloaded here.
This script must not be run on the SpamExperts filtering server, and should be run externally using the API credentialsUsage.
Run the script:
python queue_remove_emails.py
Please specify the API server hostname and your API username!
Usage: queue_remove_emails.py [options]
Options:
-h, --help show this help message and exit
-f SENDER, --from=SENDER
find and remove messages from the specified sender
-t RECIPIENT, --to=RECIPIENT
find and remove messages from the specified recipient
-s SERVER, --server=SERVER
API server hostname
-u USERNAME, --username=USERNAME
API username
An example would be:
python queue_remove_emails.py -f bob@demo-domain.invalid -s primary.hostname -u admin