The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Main User Mailbox question

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

  1. bradyb

    bradyb Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    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:
    6
    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:
    323
    Likes Received:
    3
    Trophy Points:
    18
    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:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    chirpy mail manager - will do the trick. configserver.com. try
     
  5. bradyb

    bradyb Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    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