[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Cancel an email message?

Cameron Simpson wrote:

On Thu, Aug 16, 2001 at 12:15:06PM -0400, TomBell1 ages com <TomBell1 ages com> wrote:
| How do I cancel an email message that is sitting in my outgoing mail queue?
| A clip from the "mailq" is shown below.  I can't seem to find anything in
| the man pages for "sendmail" or "mailq".  Other than physically removing the
| control files from the /var/spool/mqueue, is there a simple command that can
| be used?
|                 /var/spool/mqueue (1 request)
| ----Q-ID---- --Size-- -----Q-Time-----
| ------------Sender/Recipient------------
| f7FLwIM15880       26 Wed Aug 15 17:58 root
|                  (Deferred: Connection refused by home.xyz.com.)
|                                        root home

find /var/spool/mqueue -name f7FLwIM15880 -ls -exec rm {} ';'

As I recall the Q-ID is also the filename.

Actually, the control file is "qff7FLwIM15880", the data file is
"dff7FLwIM15880" and the exit file (if any) is "xff7FLwIM15880",
so the the correct command to delete all vestiges is:

find /var/spool/mqueue -name "*f7FLwIM15880" -exec rm {} ';'

- Rick Stevens, SSE, VitalStream, Inc.      rstevens vitalstream com -
- 949-743-2010 (Voice)                    http://www.vitalstream.com -
-                                                                    -
-  Jimmie crack corn and I don't care...what kind of lousy attitude  -
-                 is THAT to have, huh?   -- Dennis Miller           -

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]