Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    119

    Default How to clean a mail box with a large number of emails

    I have an email account (catch-all one) containing a large number of emails. Most of these emails are old and the client wants me to clean them all older than this X month (ex: September).

    Is there are any easy way of doing this through SSHor WHM ? … otherwise It would take couple of hours for me to clean them through webmail…

    Can someone help me to find a better solution ?

  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

    cat /dev/null > /home/account/mail/domain.com/user/inbox
    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
    Jun 2005
    Posts
    119

    Default

    Hello chirpy...

    thanks for the quick reply.. but I believe that will clean all my emails at once right?.. well what i want is to clean emails between certain period of time.. for ex: I want to delete any emails older than October 31t 2005 or all email 01 October 2005 to 31 October 2005.

    i wish you can help me again

    many thanks

  4. #4
    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

    I'm not aware of a tool to do that with mbox format. It would be trivial if you were using maildir. You could use a simple email POP3 reader that would allow you to easily delete emails such as Magic Mail Monitor:
    http://mmm3.sourceforge.net/
    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

Similar Threads & Tags
Similar threads

  1. How to clean large SPAM email boxes?
    By emurad in forum E-mail Discussions
    Replies: 1
    Last Post: 03-09-2011, 06:10 AM
  2. How to clean large SPAM email boxes?
    By emurad in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-09-2011, 06:10 AM
  3. Create large number of mail accounts
    By foyeone in forum E-mail Discussions
    Replies: 3
    Last Post: 11-18-2009, 11:27 PM
  4. Auto clean up large spamassassin log files
    By wkdwich in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 10-08-2006, 08:38 AM
  5. Emails not showing in my Horde Mail box
    By Vijaya in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-20-2004, 12:21 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube