---
name: "mailrm"
section: "1"
platform: "linux"
package: "zmailer"
version: "2.99.55-3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/mailrm"
---

# mailrm(1)

zmailer mail queue message remover

## NAME

mailrm - zmailer mail queue message remover

## SYNOPSIS

**mailrm** \[ *id* ... \]

## DESCRIPTION

*mailrm* attempts to remove the locally queued mail messages named on its command line by submitting mail messages that cancel the queued messages.

The Obsoletes: message header is the mechanism used to accomplish this. The *router* turns it into a message control file directive that the *scheduler* implements.  The *scheduler* will of course do its best to ensure only the owner of a message can cancel it. Therefore this program is only useful to whomever originally sent the message to be cancelled.  The super user is not treated specially.

The *id* is the message file id of a to-be-cancelled message, as it is reported by *mailq*. It is not the message id, although that is the information that is actually sought for the Obsoletes: header contents. *mailrm* will rummage through message control files in *POSTOFFICE***/transport** to retrieve the message id for a given message file id.

## FILES

*/etc/zmailer.conf*\
 */var/spool/postoffice/transport (POSTOFFICE/transport)*

## SEE ALSO

[router(8)](/router/8.md), [scheduler(8)](/scheduler/8.md), [mailq(1)](/mailq/1.md)\
 RFC987, RFC1138

## AUTHOR

This program authored and copyright by:\
 Rayan Zachariassen \<rayan@cs.toronto.edu\>
