1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

How do I delete qmail (huge) queue

Discussion in 'Plesk for Linux - 8.x and Older' started by manos, Sep 21, 2005.

  1. manos

    manos Guest

    0
     
    As I've posted in one of my earlier post I have huge amount of messages in queue. Can anybody please describe for me a safe way to delete the all using ssh? (fedora 2 Plesk 7.5.4);

    Thank you
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Download and install qmHandle, once it's unpacked, read the README file for instructions, minor modifications to it's file may be needed, there is at least one other post within the last 1.5 months regarding this. Many posts about qmHandle in general.

    Very handy commandline utility...
     
  3. manos

    manos Guest

    0
     
    Isn't this allready installed in Plesk? If not what directory should i put qmhande in? (fedora 2 plesk 7.5.4)

    You are doing a great job jamesyeeoc
     
  4. sieb@

    sieb@ Guest

    0
     
    Just drop it in /var/qmail/bin and run it from the command line. It's not part of PSA, though it should be. :)
     
  5. manos

    manos Guest

    0
     
    I have allready put it in /usr/bin/
    what settings should I use to automatically start/stop qmail (inside qmHandle)?
     
  6. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Do this as a test: From a SSH login give the command:

    pidof qmail-send

    If it returns a pid number, then you should be able to use qmHandle as is.

    Further test: do a "qmHandle -a" and see if it returns any errors. Post them here if there are any.

    If you do get errors, you may have to replace the my ($pidcmd) line with something like:

    my ($pidcmd) = "ps -e |grep 'qmail-send' |cut -d ' ' -f 1";

    See the post where I helped Swakoo with this at:
    http://forum.plesk.com/showthread.php?postid=115975#post115975
     
  7. manos

    manos Guest

    0
     
    pidof qmail-send returns 30655
    qmHandle -a returns nothing
    I did a qmhandle -s that showed 1.325.456 messages in local queue. what do i do?
     
  8. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Ok, let's stay in this thread...

    If you want to just delete ALL messages still in the queue, then use the -D option. THIS WILL DELETE ALL LOCAL AND REMOTE QUEUE MESSAGES

    You are aware that LOCAL are messages going to your server's mail accounts. Remote are outbound messages going to other external domains, right?
     
  9. manos

    manos Guest

    0
     
    First of all THANK YOU..
    Ye s I am aware of local and remote queues.
    I did the qmHandle -D but all output goes to screen. Is there a way to avoid this in order to speed things up?
     
  10. jamesyeeoc

    jamesyeeoc Guest

    0
     
    I've never had to delete a queue that large, but I suppose you could try sending the output to /dev/null

    qmHandle -D >>/dev/null

    With over a million messages, it will still take some time regardless of the screen output or not....
     
  11. manos

    manos Guest

    0
     
    Well I did so next step is to find out why so many mails from drweb-deamon.....
     
  12. jamesyeeoc

    jamesyeeoc Guest

    0
     
    I seem to remember another thread about just that problem within the last week or so.

    DrWeb causing tons of emails....

    I didn't read the entire thread since I personally think DrWeb is a piece of s**t and don't use it.
     
  13. manos

    manos Guest

    0
     
    Any easy to Install alternatives?
    Hope I'm not a pain in the **s

    OK I can't thank you enough.
     
  14. jamesyeeoc

    jamesyeeoc Guest

    0
     
    No, you are not a pain in the a** (or anywhere else for that matter).

    Free AV alternatives, there are so many.

    Easy to install - that is a trick question. Level of easy depends on the admin's experience/knowledge level....

    Sorry, too tired to think.

    Try searching for clamav or amavis

    Check 'superbock' post in this thread:
    http://forum.plesk.com/showthread.php?threadid=25663&highlight=clamav
    (basically try using ART's repository for clamav and qmail-scanner. ART = AtomicRocketTurtle.com (former Plesk owner/programmer, his stuff is Plesk friendly) It's better (in some cases) to use ART's instead of downloading from the original package author and having to tweak it to work with Plesk. ART has already done the tweaking!

    Sun's about to come up, time for me to sleep....
     
  15. manos

    manos Guest

    0
     
    Alas .... my problems continue.

    I deleted the hude queue (1.250.000 mails).

    I stopped DrWeb Antivirus service and removed it from all the email accountt but....

    As soon as i start SMTP qmail hell brakes loose again...

    Here is what I see in local queue (sample):
    Date: 19 Sep 2005 18:40:09 +0300
    Size: 1589 bytes

    8044874 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 19 Sep 2005 17:39:43 +0300
    Size: 1589 bytes

    11668386 (3, L)
    Return-path:
    From: MAILER-DAEMON@epimlas.gr
    To: DrWEB-DAEMON@epimlas.gr
    Subject: failure notice
    Date: 21 Sep 2005 05:23:53 +0300
    Size: 2124 bytes

    6251403 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 19 Sep 2005 05:38:08 +0300
    Size: 1589 bytes

    6370888 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 19 Sep 2005 07:01:41 +0300
    Size: 1585 bytes

    3156040 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 17 Sep 2005 12:37:41 +0300
    Size: 1590 bytes

    4168500 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 18 Sep 2005 13:04:45 +0300
    Size: 1585 bytes

    3119102 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 17 Sep 2005 10:22:30 +0300
    Size: 1591 bytes

    3949678 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 18 Sep 2005 09:06:07 +0300
    Size: 1589 bytes

    5118515 (3, L)
    Return-path:
    From: MAILER-DAEMON@epimlas.gr
    To: DrWEB-DAEMON@epimlas.gr
    Subject: failure notice
    Date: 21 Sep 2005 06:53:28 +0300
    Size: 2122 bytes

    14184287 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 17 Sep 2005 07:48:40 +0300
    Size: 1588 bytes

    6352120 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 19 Sep 2005 06:54:36 +0300
    Size: 1589 bytes

    5764654 (3, L)
    Return-path:
    From: MAILER-DAEMON@epimlas.gr
    To: DrWEB-DAEMON@epimlas.gr
    Subject: failure notice
    Date: 21 Sep 2005 15:35:23 +0300
    Size: 2124 bytes

    7299099 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 19 Sep 2005 12:59:40 +0300
    Size: 1589 bytes

    4265077 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 18 Sep 2005 14:38:28 +0300
    Size: 1589 bytes

    7173979 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 19 Sep 2005 12:21:42 +0300
    Size: 1585 bytes

    8595655 (3, L)
    Return-path:
    From: MAILER-DAEMON@epimlas.gr
    To: DrWEB-DAEMON@epimlas.gr
    Subject: failure notice
    Date: 21 Sep 2005 03:28:58 +0300
    Size: 2123 bytes

    4283822 (3, L)
    Return-path: DrWEB-DAEMON@epimlas.gr
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@epimlas.gr>
    To: "System Administrator" <postmaster@epimlas.gr>
    Subject: The antivirus software failure
    Date: 18 Sep 2005 14:53:48 +0300
    Size: 1589 bytes

    Messages in local queue: 495

    Whats VERY STRANGE is that even though I deleted the huge queue and the server's clock is OK, I see messages 5 days old.

    Also I see a large part of the hard disk occupied even after I delete the huge bulk of the messages.

    ARE THERE ANY MORE EMAIL QUEUES IN PLESK??

    PLEASE help me...
     
  16. JamesB

    JamesB Guest

    0
     
    Personal recommendations:
    1. get rid of drweb and all of its dependancies
    Code:
    rpm -e drweb drweb-qmail
    2. stop xinetd and qmail:
    Code:
    /etc/init.d/xinetd stop; /etc/init.d/qmail stop
    3. move the b0rked qmail queue (you will lose all of your current mail)
    Code:
     mv /var/qmail/queue /var/qmail/queue_old
    3. Reinstall the psa-qmail rpm using --force. also reinstall everything in the opt/mail directory. Do not reinstall the **** in opt/drweb.

    Feel free to nuke the qmail_old directory...

    Good luck.
     
  17. manos

    manos Guest

    0
     
    Can anyone tell me the exact commands to retrive and reinstall psa-qmail OK I found it!!! but now qmail doesn't work. I try to send an email from another server to the server in question but it doesn't get in qmail queue..... How do i test if qmail is working properly??

    OK FINALLY I ' GOT IT FIXED AFTER I REINSTALLED EVERYTHING AGAIN (QMAIL AND DEPENDENCIES)

    THANK YOU ALL FOR CONTRIBUTING...
     
  18. non-guru

    non-guru Guest

    0
     
    reinstalling qmail worked for me also. Stopping qmail, moving the old queue and then re-installing.

    /var/qmail/bin/qmail-qstat showed over 34000 messages
    qmHandle showed only 3 remote and 1 local

    The ./qmHandle -D only deleted 3 of the messages.

    This was a seldom used server, but I had noticed there was a problem when http was hanging up every once in a while and the qmHandle didn't seem to show the problem... but tailing /var/log/maillog I found thoussands of the below entries every few minutes.

    Nov 6 03:00:48 secondaryserver qmail: 1131264048.718582 warning: trouble injecting bounce message, will try later

    The lag in httpd response took place when all the messages 'tried later'

    Thanks for your post!
     
  19. bellablue

    bellablue Guest

    0
     
    DRWEB IS SPAMMING ME WITH FAILURES?

    Received: (qmail 11766 invoked from network); 3 Oct 2007 16:40:19 -0400
    Date: 3 Oct 2007 16:40:19 -0400
    Message-ID: <20071003204019.11763.qmail@ip-XXXXXXXXXXXX.ip.secureserver.net>
    From: "DrWeb-DAEMON" <DrWEB-DAEMON@ip-XXXXXXXXXXXX.ip.secureserver.net>
    To: "System Administrator" <postmaster@ip-XXXXXXXXXXXX.ip.secureserver.net>
    Subject: The antivirus software failure
    Content-Type: multipart/mixed;
    boundary="001-DrWeb-MailFilter-Notification"
    MIME-Version: 1.0
    Precedence: junk
    X-Antivirus-Ticket: DrWeb notification.



    I put xxxxxx in there, :(


    why is this happening it sends me so many warnings that my relays are blocked and I can't send email after 1000 go out.
     
  20. adamluz

    adamluz Guest

    0
     
    Is this average?
    Messages in local queue: 502
    Messages in remote queue: 2161

    It takes a little over 30 minutes for e-mails to be delivered to local boxes... any way I can speed this up?
     
Loading...