Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    4

    Default How to delete the exim mail queue from the command line

    Hello,

    How can I delete the Exim MTA queue from the command line?

    I have tried with the:

    /usr/local/cpanel/whostmgr/bin/whostmgr2 killeximq

    as advised in a post in this forum, but it simply returns:

    HTTP/1.0 200 OK
    Connection: close
    Server: whostmgr/10.8.0
    Content-type: text/html

    and exits.

    Brandon
    Last edited by AHATEMA; 03-08-2007 at 11:55 PM. Reason: additional info

  2. #2
    Registered User
    Join Date
    Jan 2007
    Posts
    4

    Default

    Quote Originally Posted by kernow View Post
    Try:
    Code:
    /usr/local/cpanel/whostmgr/bin/whostmgr2 killeximq
    I have already tried this, as mentioned above. It does not work for me.

    Brandon

  3. #3
    Member
    Join Date
    Jul 2004
    Posts
    496

    Default

    Try:
    Code:
    /usr/local/cpanel/whostmgr/bin/whostmgr2 killeximq

  4. #4
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Use this
    exim -bpru|awk {'print $3'}|xargs exim -Mrm

    I would suggest deleting mails in the queue that are older than 5 mins perhaps.
    At least give a change to deliver so you do not remove legit mails that might
    arrive at that moment.


    exiqgrep -o 300 -i | xargs exim -Mrm

    This will remove mails older than 5 mins (300 seconds). adjust your time accordingly.

Similar Threads & Tags
Similar threads

  1. exim command line help
    By shann in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-26-2005, 06:26 PM
  2. Command to resend exim mail queue
    By bibink in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-25-2005, 04:27 AM
  3. exim command line
    By carloseduardoab in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-19-2005, 10:16 AM
  4. Any way to run the mail queue from command line
    By manokiss in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-28-2004, 10:05 AM
  5. Exim from Command Line
    By twhiting9275 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-09-2003, 07:43 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube