Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

how to delete the mail in queue for perticular domain.

Discussion in 'E-mail Discussion' started by ngchandak, Jun 20, 2005.

  1. ngchandak

    ngchandak Well-Known Member

    Joined:
    Apr 5, 2005
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    Hi,

    There are 5000+ email are in queue, my problem is that, i want to delete the email for the perticular domain from the queue. to do so please advice me.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You'll need to delete the files directly from /var/spool/exim/input/* and /var/spool/exim/msglog/*. You can di it most simply using grep and piping to rm, this would probably do it:

    grep -ri "domain\.com" /var/spool/exim/input/* | rm -fv
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ngchandak

    ngchandak Well-Known Member

    Joined:
    Apr 5, 2005
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    mail queue problem

    Hi,

    I applied the command but no luck, i want remove all the emails queue for perticular domain like xyz.com. suppose there are 5000+ mails are in queue for xyz.com. so i want delete all the mail queue for xyz.com. Please help me
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,651
    Likes Received:
    73
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    Try:

    exiqgrep -ir <domain> | xargs -n1 exim -Mrm

    that should remove any e-mail that is in the queue that is waiting to be delivered to POP accounts at <domain>.
     
  6. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    168
    The HOWTO!

    Anyone looking for GOOD script, read my post there.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice