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!

Main User Mailbox question

Discussion in 'E-mail Discussion' started by bradyb, Apr 14, 2007.

  1. bradyb

    bradyb Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    156
    One of my clients has 28000 emails in the main acct. How can i easily delete all. I have just added the :fail: rule for emails that come in to bogus aliases.

    Thanks,
    Brady
     
  2. pross

    pross Well-Known Member

    Joined:
    Mar 14, 2005
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    156
    found this with google..might be worth trying...

    Code:
    Use this
    
    if the message is frozen
    
    exim -bpru|grep frozen|awk {'print $3'}|xargs exim -Mrm
    
    if the message is <>
    
    exim -bpru|grep '<>'|awk {'print $3'}|xargs exim -Mrm
    
    if all
    
    exim -bpru|awk {'print $3'}|xargs exim -Mrm
     
  3. cpanelinfoseeker

    cpanelinfoseeker Well-Known Member

    Joined:
    Oct 25, 2002
    Messages:
    325
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    NE Illinois
    cPanel Access Level:
    Root Administrator
    Using the Mail Manager (CMM) from Chirpy, i would just find the email in question and hit the 'empty mailbox' option. This works very quickly and has many other useful options as well. I use it to monitor the email boxes on my server to warn the users when they are getting near full (at 92%).

    My other suggestion would be to use WinSCP3 and go to the directory where the mail is and select all the files in the directory and delete, but this takes a while as it deletes each one in order.

    If you are familiar with SSH, that would be the other option and go to the mail directory (/home/USER/mail/(cur,usr,tmp)) and delete the email in the folders.

    Ron
     
  4. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    533
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Brno, Czech Republic
    chirpy mail manager - will do the trick. configserver.com. try
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bradyb

    bradyb Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    156
    Can i just ftp the domain and go to mail folder and delete the inbox file? will it be recreated?

    Thanks,
    Brady
     
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