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.

Printed from: http://rackerhacker.com/2008/05/02/forcing-qmail-to-process-e-mail-in-the-queue/ .
© Major Hayden 2012.

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

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this