Koozali.org: home of the SME Server

Flushing the queue

Christo Pretorius

Flushing the queue
« on: June 02, 2000, 03:39:11 PM »
Hi,

I'd like to know if there is a command to flush all the messages
in the queue awaiting to be SEND. It would be even nicer if you
know of a command to flush only certain messages in the queue.

Any help will be greatly appreciated.

Thank you.

Carl Enset

Re: Flushing the queue
« Reply #1 on: January 11, 2001, 05:28:47 AM »
From the Qmail FAQ (in /var/qmail/doc/FAQ)

7.2. How do I manually run the queue? I'd like qmail to try delivering all the remote messages right now.

Answer: Give the qmail-send process an ALRM.
--
    At the command prompt logged in as root, type:

    killall -ALRM qmail-send
--
You may want to run qmail-tcpok first, to guarantee that qmail-remote will try all addresses. Normally, if an address fails repeatedly, qmail-remote leaves it alone for an hour.

--
If you want to know the number of messages in the queue at the command prompt logged in as root, type:

/var/qmail/bin/qmail-qstat