Sendmail deferred email?

JJB Barbish3 at adelphia.net
Tue Mar 23 11:21:47 PST 2004


Jamie
Thanks for the info

cd /var/spool/mqueue

That is what I was looking for
Deleted all the 15 entries and mailq returns nothing meaning there
all gone.


-----Original Message-----
From: Jamie [mailto:jamie at gnulife.org]
Sent: Tuesday, March 23, 2004 2:44 PM
To: JJB
Cc: freebsd-questions at FreeBSD. ORG
Subject: RE: Sendmail deferred email?


  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/Recipien
t-----------

i2NIVTJl002193      412 Tue Mar 23 12:31
<Peter.Paulson at 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 at infracaninophile.co.uk]
> Sent: Tuesday, March 23, 2004 12:58 PM
> To: JJB
> Cc: freebsd-questions at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
>


Greetings from Minneapolis, MN, United States

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



More information about the freebsd-questions mailing list