Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2005
    Location
    India
    Posts
    54

    Default how to delete the mail in queue for perticular domain.

    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.
    NC
    Have a nice time

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Apr 2005
    Location
    India
    Posts
    54

    Default 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
    NC
    Have a nice time

  4. #4
    Member nickb's Avatar
    Join Date
    Feb 2005
    Location
    India
    Posts
    347
    Either Zero Or Hundred...

  5. #5
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    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. #6
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    621

    Default The HOWTO!

    Anyone looking for GOOD script, read my post there.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

Similar Threads & Tags
Similar threads

  1. Option to delete mail queue by user
    By DjiXas in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 01-14-2011, 12:58 PM
  2. Delete Mail Queue
    By compunet2 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-16-2008, 09:38 AM
  3. Replies: 2
    Last Post: 08-15-2007, 06:00 AM
  4. How to delete only emails to domain @domain.net from mail queue ?
    By WebHostDog in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-21-2006, 12:41 PM
  5. Delete Mail Queue
    By adapter in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-17-2004, 10:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube