Results 1 to 6 of 6

Thread: Wiping queues from command line?

  1. #1
    Join Date
    Mar 2007
    Posts
    84
    Rep Power
    8

    Default Wiping queues from command line?

    As mentioned in my earlier post, we've managed to effectively mail-bomb our own mail server due to problems in some monitoring software that sends out mail.

    Zimbra is currently churning away through a queue of over 16000 messages (13000+ on the active queue, 3000+ deferred), which at this rate is going to take quite a while.

    I've tried to delete the messages via the queues area of the web-based admin console, but that part of the interface is being pretty unresponsive. Is there a command-line equivalent that I can use to tell Zimbra to dequeue and throw away everything? If not, would it be "safe" to stop all services and delete the queued messages from inside /opt/zimbra/data/postfix/spool/*?

    Or, for less chance of deleting messages that we want, can it be told to "dequeue and throw away everything for sample.address@example.com but leave all else alone"?
    Last edited by dspillett; 08-19-2008 at 05:17 AM.

  2. #2
    Join Date
    Mar 2007
    Posts
    84
    Rep Power
    8

    Default

    No more rus on this one - I took the servers life into my hands, stopped all services and removed all relevant files (those containing the sender address of the monitor process) from under /opt/zimbra/data/postfix/spool/

    After restarting the services, all seems well.

    Though if there are some useful command line queue management tools, could you point me at the documentation? I couldn't see anything after a quick search of the wiki. Via the oracle that is Google I found many references to "postsuper" as the postfix tool to use for such tasks, but that doesn't seem to be present (presumably it is something that Zimbra has an alternative for?)
    Last edited by dspillett; 08-19-2008 at 06:09 AM. Reason: Missed a bit.

  3. #3
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    17
    Rep Power
    6

    Default

    Thank for a tip. You save my life with this... (i had a same problem as you)

  4. #4
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    5

    Default

    Quote Originally Posted by dspillett View Post
    No more rus on this one - I took the servers life into my hands, stopped all services and removed all relevant files (those containing the sender address of the monitor process) from under /opt/zimbra/data/postfix/spool/

    After restarting the services, all seems well.

    Though if there are some useful command line queue management tools, could you point me at the documentation? I couldn't see anything after a quick search of the wiki. Via the oracle that is Google I found many references to "postsuper" as the postfix tool to use for such tasks, but that doesn't seem to be present (presumably it is something that Zimbra has an alternative for?)
    Mind to share the actual command? Real noob here...

  5. #5
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    If you are sure you wish to delete everything under the deferred queue then as root execute the following
    Code:
    /opt/zimbra/postfix/sbin/postsuper -c /opt/zimbra/postfix/conf -d ALL deferred
    Once that has been done execute
    Code:
    su - zimbra
    postfix reload

  6. #6
    Join Date
    Dec 2005
    Posts
    31
    Rep Power
    9

    Default

    I realize this is an old thread, but what I need to do (on hopefully rare occasions) is clear all queues BY USER.

    I have a script that looks for SPAMMY behavior (over 5 messages per minute) and locks the user's account and emails me so we can act on it.

    I have found with our latest phish victim that I also need to clear the queues to prevent blacklist issues. can anyone share something I can add to this script (mailq syntax or ?)

Similar Threads

  1. Postfix queues not moved during update
    By deepblue in forum Migration
    Replies: 1
    Last Post: 01-25-2008, 09:18 AM
  2. [SOLVED] mail queues on non-standard SSH port
    By sjobeck in forum Administrators
    Replies: 7
    Last Post: 09-07-2007, 12:01 PM
  3. Wiping Messages
    By corey.averitt in forum Administrators
    Replies: 1
    Last Post: 03-29-2007, 10:52 AM
  4. Unable to view messages in queues
    By mtnx in forum Administrators
    Replies: 1
    Last Post: 05-16-2006, 08:33 PM
  5. Monitoring: Server Status/Stats and Mail Queues
    By scottp in forum Installation
    Replies: 4
    Last Post: 03-27-2006, 01:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •