Qmail, flushing the queue
From FreeBSDwiki
(Difference between revisions)
Line 12: | Line 12: | ||
See also: [[Qmail, clearing the queue]], [[Qmail, monitoring the queue]] | See also: [[Qmail, clearing the queue]], [[Qmail, monitoring the queue]] | ||
− | [[Category:Common Tasks]] | + | [[Category:Common Tasks]][[Category:Qmail]] |
Latest revision as of 12:34, 21 June 2007
First you need to identify the qmail-send process by pid:
server# ps ax | grep qmail-send 632 con- I 0:02.82 qmail-send
Then use the kill command to send that pid the ALRM signal.
server# kill -ALRM 632
Qmail will now begin attempting to deliver anything in its queue, regardless of whether it's scheduled to retry it yet or not. NOTE: do not substitute the killall command; under FreeBSD (as of 4.0-6.1) the killall command does not appear to actually pass the ALRM signal; it just passes the default TERM signal and kills the process entirely. Not what you're looking for.
See also: Qmail, clearing the queue, Qmail, monitoring the queue