Mass outgoing message removal from the outgoing delivery queue
Often it's needed to mass remove messages from the outgoing delivery queue (for example when ARF reports). This can already be done using the Interface and API, however we also have an open source script that can help facilitate this.
This can be downloaded here.
This script must NOT be run from a SpamExperts filtering server, and should be run externally using the API credentialsUsage:
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