Deletes recipients from the queue by selection: queue, job, sender, recipient, envelope identifier, age.
Selection is mandatory: although –queue defaults to all queues, the command requires –queue or –jobId explicitly — so that an accidental pmta delete does not empty the queue.
Deletion is recorded in accounting as deleted by the administrator; the –no-accounting option turns that off. With –dsn a non-delivery report goes to the sender, deletion runs slower, and without –accounting there is no accounting entry.
🔴 Irreversible: what is deleted cannot be restored, and we have no spool backups.
Selection options:
| Option | What it selects |
|---|---|
| –queue=domain/address | queues; stars are allowed |
| –jobId | one job |
| –orig, –rcpt | a sender or recipient |
| –envId | an envelope identifier |
| –older-than=4d | recipients older than the age; the syntax is the same as for bounce-after |
# look at the selection first, then delete pmta list --queue=yahoo.com/* pmta delete --queue=yahoo.com/*
3 relations
pmta show queues --no-rcpt-events yahoo.com/*
3 articles
◇Address lists — named and unnamedA list of addresses, domains, patterns or hashes; a named one is attached by directives such as suppression, an unnamed one lives inside an inbound mail processor.◇How to name a queue in a commandHow to name a queue in a command argument: the same “receiving server and sending address” pair with asterisks added.◇Two tags the sender puts on a messageA job groups messages, an envelope identifier identifies one; the submitting side sets both, and only by them can you later select your mail in the node’s queue.