From owner-freebsd-questions Thu Dec 7 11:26:20 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA10133 for questions-outgoing; Thu, 7 Dec 1995 11:26:20 -0800 (PST) Received: from alpha.dsu.edu (ghelmer@alpha.dsu.edu [138.247.32.12]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id LAA10128 for ; Thu, 7 Dec 1995 11:26:15 -0800 (PST) Received: (from ghelmer@localhost) by alpha.dsu.edu (8.7.1/8.7.1) id NAA27207; Thu, 7 Dec 1995 13:24:44 -0600 (CST) Date: Thu, 7 Dec 1995 13:24:44 -0600 (CST) From: Guy Helmer To: Jon Loeliger cc: freebsd-questions@FreeBSD.org Subject: Re: Removing queued mail In-Reply-To: <199512071526.JAA18846@chrome.jdl.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org Precedence: bulk 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 - ghelmer@alpha.dsu.edu