1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mass Delete of Email

Discussion in 'E-mail Discussions' started by Danimator, Nov 8, 2004.

  1. Danimator

    Danimator New Member

    Joined:
    Mar 6, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    My default email address is set to :fail: So all unrouted email bounces back. Now I checked the email the other day and I have about 20,000 emails sitting there, from errors, boounces, and spam. How can I clear out the whole mailbox? Deleting them 50 at a time is too slow, and further more how can I block these from accumulating?

    Cheers
     
  2. chirpy

    chirpy Super Moderator

    Joined:
    Jun 15, 2002
    Messages:
    13,499
    Likes Received:
    14
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Two ways:

    1. Via cPanel, File Manager > mail > domain.com > username > inbox > Delete File

    2. Via SSH

    cd /home/account/mail/domain.com/username
    cat /dev/null > inbox


    You'll then have a nice empty inbox

    Btw, if you only have one account and it is the main account, then the inbox may be at /home/account/mail/inbox
     
  3. kahoz

    kahoz Member

    Joined:
    Nov 7, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Portugal
    is there any similar process to email accounts ?
     
  4. chirpy

    chirpy Super Moderator

    Joined:
    Jun 15, 2002
    Messages:
    13,499
    Likes Received:
    14
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I don't understand the question, can you explain in a bit more details what you're wanting to do?
     
  5. kahoz

    kahoz Member

    Joined:
    Nov 7, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Portugal
  6. bijo

    bijo Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
  7. chirpy

    chirpy Super Moderator

    Joined:
    Jun 15, 2002
    Messages:
    13,499
    Likes Received:
    14
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You'd need to do a bit more than that - you'd have to remove the entries in /home/webumake/etc/webumake.net/passwd and /home/webumake/etc/webumake.net/shadow and /home/webumake/etc/webumake.net/quota. It's probably best to simply go through and delete them one by one.
     

Share This Page