Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 1995 13:24:44 -0600 (CST)
From:      Guy Helmer <>
To:        Jon Loeliger <>
Subject:   Re: Removing queued mail
Message-ID:  <>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, 7 Dec 1995, Jon Loeliger wrote:

> What is the correct way to remove queued mail that will never be
> deliverable?  Sure, I can wait out the n-days, but what if I wanted
> to clean it out?  Just step into /var/spool/mqueue and rm the
> df and qf files?  Is there a "more approved" approach?  I looked
> through "sendmail" and "mailq"'s man pages, but didn't find what
> I was looking for.

I believe running /usr/sbin/sendmail with an option to reduce the queue
timeout is a good way to clear the queue.  With sendmail versions prior to
8.7, you can use the "-oT2d" option to return mail over 2 days old (run
"/usr/sbin/sendmail -q -oT2d" to run the queue); with sendmail 8.7.x, use 
'-o Timeout.QueueReturn=2d' to return mail over 2 days old (run 
"/usr/sbin/sendmail -q '-o Timeout.QueueReturn=2d'").

> Thanks,
> jdl
> ps - No longer on "questions", so please keep my address in the loop.

Hope this helps,
Guy Helmer

Guy Helmer, Dakota State University Computing Services -

Want to link to this message? Use this URL: <>