faqts : Computers : Internet : Mail Servers : qmail : Tips and Tricks : Queue Management

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

360 of 382 people (94%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

How can I empty the queue?
How can I force a queue rerun imediately?

Aug 26th, 2001 18:53
Brian Coogan, Dave Sill,


If you want the messages in the queue to be delivered, but you want
qmail to try to deliver them immediately, send the qmail-send process an
ALRM signal.
You may need to run "qmail-tcpok" before sending the ALRM signal to 
clear the qmail tcp timeout table, or qmail will wait till retry times 
are reached before it again attempts to send messages.  You can run 
the "qmail-tcpto" command to check whether your destination servers are 
in the timeout list.  If you have djbdns (see http://djbdns.faqts.com - 
it's great!), try "qmail-tcpto | dnsfilter" to see which hosts are in 
the timeout list.
If you want to throw away the messages in the queue:
  1) Stop qmail.
  2) for i in bounce info intd local mess remote todo; do
        find /var/qmail/queue/$i -type f -exec rm {} \;
     done
  3) Restart qmail.