You're top posting. I'll follow suit on your answer, but some people
find it really confusing.

  Check the man page on sendmail. There are a lot of options you can use
to process files in the queue. If you have some specific jobs you'd like
to process in the queue, you can skip the rest of the queue processing and
handle just those.

   sendmail -v -qI {queue id substring}


   sendmail -v -qS {sender address substring}


   sendmail -v -qR {recipient address substring}

   These variations will limit the processing to a sender address,
recipient, etc, in the queue.

   If you want to simply delete those emails from sendmail, all you have
to do is find the numeric part of the queue id, and then remove all files
in the queue directory with that ID number. Running mailq will give you a
list of the queue id's in the first column:

-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------

i2NIVTJl002193      412 Tue Mar 23 12:31 <[EMAIL PROTECTED]>

--Grab the numeric part of the ID (002193 in this case). Then,

cd /var/spool/mqueue

rm *002193

This will remove your qf and df files, along with any tf files that you'd
like to delete. I've never had a problem doing this. BUT, to be on the
safe side, you might want to do a:

more *002193

first, just to make sure you're not deleting any really old queued files
which might happen to have the same numeric id in the filename.

  Suggested reading:

  The Sendmail docs are kept in sendmail/doc. Look for a file called
or op.txt. These docs go over a lot of good info. Also check the man
pages. man sendmail
  "Sendmail" by Brian Costales with Eric Allman. ISBN 1565928393


  - Jamie

On Tue, 23 Mar 2004, JJB wrote:

> Did sendmail -q -v  and mailq
> The 15 deferred emails are still there deferred.
> So let me change my question from
> Is there a way to clear this email from sendmail?
> To
> Is there a way to FORCE  DELETE this deferred email from sendmail?
> -----Original Message-----
> From: Matthew Seaman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 23, 2004 12:58 PM
> To: JJB
> Subject: Re: Sendmail deferred email?
> On Tue, Mar 23, 2004 at 12:46:32PM -0500, JJB wrote:
> > I see in mail log some deferred email being held.
> > Is there a way to clear this email from sendmail?
> You can process the mail queue manually by:
>     # /usr/sbin/sendmail -q -v
> or
>     # /usr/sbin/sendmail -Ac -q -v
> for the clientmqueue stuff.
> (-v means verbose -- you can omit that, but it's kind of amusing to
> watch)
> > Maybe so sendmail sub command?
> If your mail system is set up correctly, there should be a process
> that runs regularly (every 30min is usual) to flush the queue.  If
> you:
>     # cat /var/run/
> or
>     # cat /var/spool/clientmqueue/
> the second line shows the arguments used to startup sendmail.  There
> should be something like '-q30m' in there.
> Messages can get stuck in the mail queue for valid reasons --
> destination site is down, DNS fubarred, loss of network connectivity
> etc.  Use:
>     # mailq -v
> or
>     # mailq -Ac -v
> to see the status of all messages in the mail queue or the client
> mail
> queue.
>         Cheers,
>         Matthew
> --
> Dr Matthew J Seaman MA, D.Phil.                       26 The
> Paddocks
>                                                       Savill Way
> PGP:         Marlow
> Tel: +44 1628 476614                                  Bucks., SL7
> 1TH UK
> _______________________________________________
> [EMAIL PROTECTED] mailing list
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Greetings from Minneapolis, MN, United States

"A friend is someone who lets you have total freedom to be yourself."
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to