Forcing qmail to process e-mail in the queue

Normally, qmail will be able to process the mail queue without any interaction from the system administrator, however, if you want to force it to process everything that is in the queue right now, you can do so:

kill -ALRM `pgrep qmail-send`

If for some peculiar reason you don't have pgrep on your server, you can go about it a slightly different way:

kill -ALRM `ps ax | grep qmail-send | grep -v grep | awk '{print $1}'`

Your logs should begin filling up with data about e-mails rolling through the queue.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2008/05/02/forcing-qmail-to-process-e-mail-in-the-queue/ .
© Major Hayden 2010.

1 Comment   »

  • R says:

    Hey Racker Hacker!

    A quick tip re: the grep - this should save on the second grep :)

    kill -ALRM `ps ax | grep [q]mail-send | awk '{print $1}'`

    manually bracketting a character of the grep string will force the grep process not to show

    /fellow Racker :)

RSS feed for comments on this post , TrackBack URI

Leave a Reply