*BSD News Article 99932


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!nntprelay.mathworks.com!howland.erols.net!newsxfer3.itd.umich.edu!agate!news.Stanford.EDU!nntp.Stanford.EDU!andrsn.stanford.edu!andrsn
From: Annelise Anderson <andrsn@andrsn.stanford.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How do I flush the mail queue?
Date: 19 Jul 1997 05:33:27 GMT
Organization: Stanford University
Lines: 30
Message-ID: <5qpjj7$kn2$3@nntp.Stanford.EDU>
References: <33CEA026.243C@ed.atl.sita.int>
NNTP-Posting-Host: andrsn.stanford.edu
X-Newsreader: TIN [UNIX 1.3 unoff BETA release 961126]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44652

In comp.unix.bsd.freebsd.misc vijay konkimalla <vijayk@ed.atl.sita.int> wrote:
> hi, 

> I am using 2.2-97.....-RELENG version and use ppp (AT&T Worldnet) to 
> connect to Internet.

> I have a mail job pending in the mailq with deferred host lookup. 

> Could someone let me know how to flush the job? Is there one like
> lprm?

> would appreciate your comments/criticism.

> --vijay
> (vijayk@ed.atl.sita.int)

You can use mailq to look at the mail queue; note the number of the
pending mail job.

You can try sendmail -q to make it try again right away.

Probably after five days it will quit trying and send you a message
that the mail could not be delivered.

If you want to get rid of it, what I've always done is (as root
go to /var/spool/mqueue and delete both files for the message, the
one beginning with df (the data file) and the one beginning with qf.

Annelise