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 empty the Queue?

Discussion in 'E-mail Discussions' started by Spetsnaz, Oct 11, 2012.

  1. Spetsnaz

    Spetsnaz Well-Known Member

    Joined:
    Jun 25, 2011
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Well I have a lot of e-mails in queue and was wondering is there a command to delete all this?
     
  2. anupkumar

    anupkumar Member

    Joined:
    May 20, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    You can use below commands to check the mail queue.
    exim -bpc
    exim -bp it will show list of mails in the queue.
    exiqgrep -z -i | xargs exim -Mrm
     
    #2 anupkumar, Oct 12, 2012
    Last edited by a moderator: Oct 12, 2012
  3. Spetsnaz

    Spetsnaz Well-Known Member

    Joined:
    Jun 25, 2011
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    If I do rm -rf input
    it will delete all am I right?
     
  4. pwhjenny

    pwhjenny Well-Known Member

    Joined:
    Aug 31, 2012
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    You should not delete whole input directory. Use following command to remove frozen mails from the queue.

    exiqgrep -z -i | xargs exim -Mrm
     
  5. Spetsnaz

    Spetsnaz Well-Known Member

    Joined:
    Jun 25, 2011
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Thank you.
    That worked like a charm.
     
  6. pwhjenny

    pwhjenny Well-Known Member

    Joined:
    Aug 31, 2012
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    You are welcome :)
     
Loading...

Share This Page