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 mail from default catcah all account

Discussion in 'E-mail Discussions' started by Arsalan, Nov 2, 2006.

  1. Arsalan

    Arsalan Well-Known Member

    Joined:
    Jan 5, 2002
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    A user setup his default catch all account in cpanel using the main username.

    Now that account had over 2500,000 mails most of them are spam.

    Is there a way to remove all the mail from the server in a single go since horde is not allowing access to mail box even.

    The servers using maildir.
     
  2. rustelekom

    rustelekom Well-Known Member
    PartnerNOC

    Joined:
    Nov 13, 2003
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    moscow
    just remove it from his mail folder:

    cd /home/username/mail/userdomain/cur (or /home/username/mail/userdomain/new)
    and then do
    rm -f ./*
     
  3. Manuel_accu

    Manuel_accu Well-Known Member

    Joined:
    Jun 19, 2005
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    16
    You can also use below command instead of rm -rf *

    cat /dev/null > file_name
     
  4. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    868
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Or to empty the file but not delete it !!
    #echo -n > file_name
     
Loading...

Share This Page