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!

clean mail from default catcah all account

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

  1. Arsalan

    Arsalan Well-Known Member

    Joined:
    Jan 5, 2002
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    306
    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:
    166
    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 ./*
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Manuel_accu

    Manuel_accu Well-Known Member

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

    cat /dev/null > file_name
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    929
    Likes Received:
    15
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Or to empty the file but not delete it !!
    #echo -n > file_name
     
    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