The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to delete the exim mail queue from the command line

Discussion in 'E-mail Discussions' started by AHATEMA, Mar 8, 2007.

  1. AHATEMA

    AHATEMA Registered

    Joined:
    Jan 5, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

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

    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
     
    #1 AHATEMA, Mar 8, 2007
    Last edited: Mar 8, 2007
  2. AHATEMA

    AHATEMA Registered

    Joined:
    Jan 5, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I have already tried this, as mentioned above. It does not work for me.

    Brandon
     
  3. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Try:
    Code:
    /usr/local/cpanel/whostmgr/bin/whostmgr2 killeximq
     
  4. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    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.
     
Loading...

Share This Page