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.

Delete content of defaul email address

Discussion in 'E-mail Discussions' started by chapsrulez, Jun 19, 2010.

  1. chapsrulez

    chapsrulez Member

    Joined:
    Apr 3, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    HI.

    I just noticed i have a default email address for all of my domains which catches all undeliverable email, i have disable that function but the email account is 14.5 GB

    I have tried to login via domain.com:2096 but the page doesnt load, is there any way i can delete all the content of that account via SSH

    thanks.
    /cas
     
  2. kuldeep_

    kuldeep_ Well-Known Member

    Joined:
    Apr 24, 2010
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Yes, you can delete default cpanel email account email by logging to your account with ssh.

    If you are logged in as root then go to directory /home/cpanelusername/mail/

    Here you will see directory like curr, new,.Trash
    This will be your default email account directory. check the size of directory by following command.

    HTML:
    root@Server[~]#du -sh curr
    root@Server[~]#du -sh new
    
    Now change the directory and remove all email.

    HTML:
    root@Server[~]#cd curr
    root@Server[~]#rm -f *
    root@Server[~]#cd new
    root@Server[~]#rm -f *
    
    NOTE: Replace cpanelusername with your actual cpanel name. :)
     
  3. golden_eyes

    golden_eyes Well-Known Member

    Joined:
    Aug 9, 2010
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    how do I get the mail directory size for each account in cpanel? /home

    Is it possible to do it?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you mean the size for the entire mail directory, all you would do would be the following:

    Code:
    du -sk /home/*/mail/ | sort -n
    This would sort the mail directory for each user in /home from smallest mail directory size to largest mail directory size.
     
  5. FeeL

    FeeL Well-Known Member

    Joined:
    Apr 17, 2004
    Messages:
    135
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Rio de janeiro
    cPanel Access Level:
    Reseller Owner
    I´ve seen somewhere, now having a hard time finding it, the Thread that tells us how to prevent the use of this mail adress - by disabling it.
    The thing is, you can delete the messages, but it will still getting full, if you dont disable this man mail account for good.
    Can anyone post the link to the thread that describes the procedure here? so this post will be more complete! :)
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
  7. golden_eyes

    golden_eyes Well-Known Member

    Joined:
    Aug 9, 2010
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Is there anyway to purge the old emails? like one year ago, although there is history 10 GB.

    Thanks,
     
  8. golden_eyes

    golden_eyes Well-Known Member

    Joined:
    Aug 9, 2010
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Any update with this question?
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:

    If you mean that you only want to selectively delete some of this 10GB of email from 1 year ago and older, no, I'm not sure there is a way to do that. This default account shouldn't have any email in it at all.
     
  10. golden_eyes

    golden_eyes Well-Known Member

    Joined:
    Aug 9, 2010
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    it isn't required from the default mail address, any email account is there ability to purge the emails age more than 1 year?
     
  11. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello golden_eyes,

    Please open up a new thread for this issue or confirm we can split this into a new thread.

    Please note that the existing thread is a different topic about the default email address, so this shift in topic may well be confusing for anyone who is reading this thread.

    Thanks!
     
  12. adesh

    adesh Registered

    Joined:
    Sep 12, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello

    i tried to delete the email account but i guess since the size is 5.5Gb i am getting this message :

    -bash: /bin/rm: Argument list too long

    Please help me on this.

    Adesh
     
  13. kennygadams

    kennygadams Registered

    Joined:
    Sep 16, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    My default mailbox is 1.31 GB full.

    After running this code(rm -f *) within shell:

    root@server5 [/home/username/mail/cur]# rm -f *

    I get the following feedback:

    -bash: /bin/rm: Argument list too long

    Can you suggest another delete option for us?

    Kenny
     
  14. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page