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!

Mass Delete of Email

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

  1. Danimator

    Danimator Member

    Joined:
    Mar 6, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    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 Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kahoz

    kahoz Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Portugal
    is there any similar process to email accounts ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. kahoz

    kahoz Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Portugal
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    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.
     
    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