Clear and clean and empty the qmail queue



Learn how to clear, clean, and empty

the qmail queue

click here!


Recent Related Posts

15 thoughts on “Clear and clean and empty the qmail queue

  1. THANK YOU SOOOO MUCH FOR THIS INFO – honestly having a dedicated server – the people running it are no help!!! thank you !!

  2. ok – I am still thankful but now I anything I send just sits in que and wont send ??? what happened? nothing is sending – did it screw up my qmail?

  3. bellablue – I’m glad it helped the first time, but now it sits in the queue? That’s not good. I don’t know if you broke anything when you cleared the queue but I’m assuming you didn’t because it was full in the first place and may have had problems sending at that time. I’m not sure what the solution is to help you out but I can lead you in the right direction. Check out this site here:
    http://forum.qmailrocks.org/

    I know this is frustrating, so I wish you good luck!

  4. Hi,

    I just want to say that is the best script I have
    ever used….

    I have tried another command and it would just hang this worked and
    and completed in like 10 mins…

    Thanks,
    Joe

  5. Hi. My server is a victim of Back Scatter. The only thing I can tell is to compile a chkusr patch with qmail and plesk and it would fix my problem. However, the compile fails due to complications with plesk. Do you know of another way to handle this?
    Someone told me that using postfix instead of qmail would work but backscatter is REALLY BAD. I get up to 3 spams a second even with all services turned off. They just keep coming on in!
    Any help greatly appreciated.

  6. I use the solution you are whowing but when I run the qmailclear, I get it. the queue is not clear. please help

    messages in queue: 479660
    messages in queue but not yet preprocessed: 2
    [root@ip-97-74-112-68 ~]# sh qmailclear.sh
    Stopping Qmail – MinisterAlan
    Stopping : Clearing the Mail Queue
    qmailclear.sh: line 11: //bin/rm: Argument list too long
    qmailclear.sh: line 13: //bin/rm: Argument list too long
    qmailclear.sh: line 15: //bin/rm: Argument list too long
    qmailclear.sh: line 17: //bin/rm: Argument list too long
    qmailclear.sh: line 19: //bin/rm: Argument list too long
    qmailclear.sh: line 21: //bin/rm: Argument list too long
    qmailclear.sh: line 23: //bin/rm: Argument list too long
    qmailclear.sh: line 25: //bin/rm: Argument list too long
    qmailclear.sh: line 27: //bin/rm: Argument list too long
    qmailclear.sh: line 29: //bin/rm: Argument list too long
    qmailclear.sh: line 31: //bin/rm: Argument list too long
    qmailclear.sh: line 33: //bin/rm: Argument list too long
    qmailclear.sh: line 35: //bin/rm: Argument list too long
    qmailclear.sh: line 37: //bin/rm: Argument list too long
    qmailclear.sh: line 39: //bin/rm: Argument list too long
    qmailclear.sh: line 41: //bin/rm: Argument list too long
    qmailclear.sh: line 43: //bin/rm: Argument list too long
    qmailclear.sh: line 45: //bin/rm: Argument list too long
    qmailclear.sh: line 47: //bin/rm: Argument list too long
    qmailclear.sh: line 49: //bin/rm: Argument list too long
    qmailclear.sh: line 51: //bin/rm: Argument list too long
    qmailclear.sh: line 53: //bin/rm: Argument list too long
    qmailclear.sh: line 55: //bin/rm: Argument list too long
    Info folder clean, clearing mess folder
    qmailclear.sh: line 61: //bin/rm: Argument list too long
    qmailclear.sh: line 63: //bin/rm: Argument list too long
    qmailclear.sh: line 65: //bin/rm: Argument list too long
    qmailclear.sh: line 67: //bin/rm: Argument list too long
    qmailclear.sh: line 69: //bin/rm: Argument list too long
    qmailclear.sh: line 71: //bin/rm: Argument list too long
    qmailclear.sh: line 73: //bin/rm: Argument list too long
    qmailclear.sh: line 75: //bin/rm: Argument list too long
    qmailclear.sh: line 77: //bin/rm: Argument list too long
    qmailclear.sh: line 79: //bin/rm: Argument list too long
    qmailclear.sh: line 81: //bin/rm: Argument list too long
    qmailclear.sh: line 83: //bin/rm: Argument list too long
    qmailclear.sh: line 85: //bin/rm: Argument list too long
    qmailclear.sh: line 87: //bin/rm: Argument list too long
    qmailclear.sh: line 89: //bin/rm: Argument list too long
    qmailclear.sh: line 91: //bin/rm: Argument list too long
    qmailclear.sh: line 93: //bin/rm: Argument list too long
    qmailclear.sh: line 95: //bin/rm: Argument list too long
    qmailclear.sh: line 97: //bin/rm: Argument list too long
    qmailclear.sh: line 99: //bin/rm: Argument list too long
    qmailclear.sh: line 101: //bin/rm: Argument list too long
    qmailclear.sh: line 103: //bin/rm: Argument list too long
    qmailclear.sh: line 105: //bin/rm: Argument list too long
    Mess folder clean, clearing remote folder
    qmailclear.sh: line 111: //bin/rm: Argument list too long
    qmailclear.sh: line 113: //bin/rm: Argument list too long
    qmailclear.sh: line 115: //bin/rm: Argument list too long
    qmailclear.sh: line 117: //bin/rm: Argument list too long
    qmailclear.sh: line 119: //bin/rm: Argument list too long
    qmailclear.sh: line 121: //bin/rm: Argument list too long
    qmailclear.sh: line 123: //bin/rm: Argument list too long
    qmailclear.sh: line 125: //bin/rm: Argument list too long
    qmailclear.sh: line 127: //bin/rm: Argument list too long
    qmailclear.sh: line 129: //bin/rm: Argument list too long
    qmailclear.sh: line 131: //bin/rm: Argument list too long
    qmailclear.sh: line 133: //bin/rm: Argument list too long
    qmailclear.sh: line 135: //bin/rm: Argument list too long
    qmailclear.sh: line 137: //bin/rm: Argument list too long
    qmailclear.sh: line 139: //bin/rm: Argument list too long
    qmailclear.sh: line 141: //bin/rm: Argument list too long
    qmailclear.sh: line 143: //bin/rm: Argument list too long
    qmailclear.sh: line 145: //bin/rm: Argument list too long
    qmailclear.sh: line 147: //bin/rm: Argument list too long
    qmailclear.sh: line 149: //bin/rm: Argument list too long
    qmailclear.sh: line 151: //bin/rm: Argument list too long
    qmailclear.sh: line 153: //bin/rm: Argument list too long
    qmailclear.sh: line 155: //bin/rm: Argument list too long
    Remote folder clean, clearing intd folder
    Intd folder clean, clearing local folder
    Local folder clean, clearing todo folder
    Mail queue cleaned
    Re-Start Qmail Now !
    Starting qmail:

    • I bet this is driving you nuts! The only solution I have for “Argument list too long” is the one listed above in the original post.

  7. what can I say? Thank you x 10. We had been hacked and were left with a massive mail queue. I can go to bed to night and sleep!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>