[Mailman-Users] delete mail queue...

Jon Carnes jonc at haht.com
Tue Dec 18 21:33:31 CET 2001


ditto...

But, if you are running sendmail on RH Linux, you can look at your queue by
typing in:
  /usr/sbin/sendmail -bp

Here's an example of the output:

   NAA20852     2235 Fri Dec 14 13:14 MAILER-DAEMON
                 (Deferred: Connection refused by prophet.qa.haht.com.)
                                   <netsaint at prophet.qa.haht.com>
   NAA21610    16176 Fri Dec 14 13:26 MAILER-DAEMON
                 (Deferred: Connection refused by maillist.newsfactor.com.)
                                   <nlsystem at maillist.newsfactor.com>
===

Deleting is fairly easy, but really you should know what you are doing
first...
For Sendmail the queue directory (in RH Linux) is
   /var/spool/mqueue/...

Looking at the directory, you will see a bunch of file that start with:
df..., qf..., or xf...
After that the file name contains a combination of 3 letters and 5 numbers.
This second part matches the output you got from the "sendmail -bp" command.
Here is an example:

   dfNAA20852  dfNAA21610  qfNAA20852  qfNAA21610

===

If you wanted to delete the Message NAA20852 (to
netsaint at prophet.qa.haht.com) you would move to the queue directory and:
   rm ??NAA20852

Boom!  The message is now gone from your queue.
Please note, that if you are going to be playing with your queued up
messages, you should STOP SENDMAIL first:
   /etc/rc.d/init.d/sendmail stop

Take care and good luck!

Jon Carnes
----- Original Message -----
From: "Dan Wilder" <dan at ssc.com>
To: <Mailman-Users at python.org>
Sent: Tuesday, December 18, 2001 2:50 PM
Subject: Re: [Mailman-Users] delte queue...


> On Tue, Dec 18, 2001 at 01:40:58PM -0600, Alex Sammons wrote:
> >
> >   hello there!!!
> >
> >     How can i delete the mail queue?????....
>
> With great caution.  And, depends on your MTA.
>
> The answer I'd suggest is "If you can't figure out yourself
> how to delete the mail queue on an MTA, you aren't
> likely to be able to figure out how to fix it after you
> break it trying to delete the mail queue.  So don't do it".
>
> --
> -----------------------------------------------------------------
>  Dan Wilder <dan at ssc.com>   Technical Manager & Editor
>  SSC, Inc. P.O. Box 55549   Phone:  206-782-8808
>  Seattle, WA  98155-0549    URL http://embedded.linuxjournal.com/
> -----------------------------------------------------------------
>
> ------------------------------------------------------
> Mailman-Users maillist  -  Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users





More information about the Mailman-Users mailing list