Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2004 13:43:52 -0600 (CST)
From:      Jamie <jamie@gnulife.org>
To:        JJB <Barbish3@adelphia.net>
Cc:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@freebsd.org>
Subject:   RE: Sendmail deferred email?
Message-ID:  <20040323132842.G14403@floyd.gnulife.org>
In-Reply-To: <MIEPLLIBMLEEABPDBIEGIEFIFKAA.Barbish3@adelphia.net>
References:  <MIEPLLIBMLEEABPDBIEGIEFIFKAA.Barbish3@adelphia.net>

next in thread | previous in thread | raw e-mail | index | archive | help


  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}

   or

   sendmail -v -qS {sender address substring}

   or

   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 <Peter.Paulson@dnr.state.mn.us>
^^^^^^^^^^^^^^


--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 op.ps
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


   HTH,

  - 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:m.seaman@infracaninophile.co.uk]
> Sent: Tuesday, March 23, 2004 12:58 PM
> To: JJB
> Cc: freebsd-questions@FreeBSD. ORG
> 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/sendmail.pid
>
> or
>
>     # cat /var/spool/clientmqueue/sm-client.pid
>
> 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: http://www.infracaninophile.co.uk/pgpkey         Marlow
> Tel: +44 1628 476614                                  Bucks., SL7
> 1TH UK
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>


Greetings from Minneapolis, MN, United States

"A friend is someone who lets you have total freedom to be yourself."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040323132842.G14403>