*BSD News Article 62537


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!in2.uu.net!iglou!tsn
From: Robert Kesten <tsn@iglou.com>
Subject: Re: killing mail in mailq
In-Reply-To: <199602181722.RAA08520@prds-grn>
X-Sender: tsn@iglou
X-Nntp-Posting-Host: iglou
Content-Type: TEXT/PLAIN; charset=US-ASCII
Message-ID: <Pine.SOL.3.91.960219105550.1412A-100000@iglou>
Sender: news@iglou.com (News Administrator)
Organization: IgLou Internet Services (1-800-436-4456)
References: <199602181722.RAA08520@prds-grn>
Mime-Version: 1.0
Date: Mon, 19 Feb 1996 15:57:10 GMT
Lines: 33

On Sun, 18 Feb 1996, Thomas D.G. Sandford wrote:

> In article <DMxspu.M3q@iglou.com> you wrote:
> : How do you stop mail that is already queued from being sent?
> : I've got about 5400 e-mails in mailq that I want to stop
> : delivery on.
> 
> : (by the time this gets posted and anyone responds it will
> :  probably be too late, but at least I'll know for next time.)
> 
> : I'm pretty new (obviously) at running freebsd.  I've looked
> : at the man pages for mailq, majordomo, and sendmail and
> : can't find a way to kill the queue.
> 
> (Don't try this at home kiddies)
> 
> su
> cd /var/spool/mqueue
> rm *
> 

Thanks, this worked just fine.  

> This will remove *all* the mail in your mail queue. You can be more
> specific my finding the id's of the items you want to remove and just
> removing the df????? and qf????? corresponding to those numbers.
> 
> Disclaimer: This advice is supplied in good faith, but I can take no 
> responsibility if it does something disastrous on your machine.

Robert Kesten
TSN Webmaster