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.

clean out email account

Discussion in 'E-mail Discussions' started by Valuehosted, May 17, 2009.

  1. Valuehosted

    Valuehosted Well-Known Member

    Joined:
    Dec 12, 2002
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sweden
    What is the most efficient way of killing all emails in a runaway catch-all email account?

    Any working trick accepted, SSH, WHM or cpanel.

    Kind Regards,
    Tony Lindskog
     
  2. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    ssh:
    rm -f /home/account/mail/domain/emailusername/new/*

    replace account, domain and emailusername with appropriate info..


    WHM (with Configserver Mail Manage App)
    click the 'empty mailbox' icon


    Those are the two simplest, methinks. If you don't have Chirpy's software, I'd HIGHLY recommend getting it: www.configserver.com

    :)
     
  3. Valuehosted

    Valuehosted Well-Known Member

    Joined:
    Dec 12, 2002
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sweden
    Lyttek,

    THANK YOU!

    Albeit SSH is nice, WHM is so much nicer, cleaner and quicker.

    And yes, I do have CMM installed, but it is one of those tools you don't tend to use often so I had forgotten all about it.

    Thanks again for reminding me and Thanks to Chirpy for installing it for me way back when.

    I appreciate the help,

    Kind Regards,
    Tony

    Total emails removed: 108250 (YAY!)
     
    #3 Valuehosted, May 18, 2009
    Last edited: May 18, 2009
  4. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  5. Valuehosted

    Valuehosted Well-Known Member

    Joined:
    Dec 12, 2002
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sweden
    Unless it is the sites first email account (username) that once upon a time used to be the catchall account as well.

    --Tone
     
  6. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    Oy!

    Did you check for any false positives? :D
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Depending upon the system and how many files are in the new directory, this can encounter glob-expansion issues. On such systems you may need to perform the removal as:

    Code:
    rm -f /home/account/mail/domain/emailusername/new
    mkdir /home/account/mail/domain/emailusername/new
    
     
Loading...

Share This Page