Date: Thu, 7 Dec 1995 13:24:44 -0600 (CST) From: Guy Helmer <ghelmer@alpha.dsu.edu> To: Jon Loeliger <jdl@jdl.com> Cc: freebsd-questions@FreeBSD.org Subject: Re: Removing queued mail Message-ID: <Pine.OSF.3.91.951207132010.26602A-100000@alpha.dsu.edu> In-Reply-To: <199512071526.JAA18846@chrome.jdl.com>
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 - ghelmer@alpha.dsu.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.91.951207132010.26602A-100000>