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.

How to clean large SPAM email boxes?

Discussion in 'E-mail Discussions' started by emurad, Mar 9, 2011.

  1. emurad

    emurad Member

    Joined:
    Mar 3, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I have a cPanel server with many accounts. Some of these accounts contain email accounts with HUGE number of SPAM messages.

    How can I detect and clean/delete these accounts?
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    You can use the unorthodox method that I use:

    rm -rfv /home/$user/mail/$domain/.spam/cur
    rm -rfv /home/$user/mail/$domain/.spam/new

    That's assuming your spam boxes are named .spam. If you had spam box enabled the boxes should recreate themselves automatically - that's what happens on my server at least.
     
Loading...

Share This Page