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!

question about removing spam emails

Discussion in 'E-mail Discussion' started by Venomous21, Jul 31, 2014.

  1. Venomous21

    Venomous21 Well-Known Member

    Joined:
    Jun 28, 2012
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    We have an account that has about 100k spam emails in the inbox catch-all account made during whm account creation. It no longer receives emails, however, I'm having trouble deleting all the emails in this folder.

    [/home/user/mail/new]# rm -f /home/user/mail/new/*
    -bash: /bin/rm: Argument list too long

    I've seen several ways suggested on how to remove spam emails when encountering this problem but none of them seem too concrete. What do you recommend and is it possible to delete them from whm/cpanel as root through the web gui? If I delete the 'new' directory as the 'user' account (and not root) then re-create it and chmod/own permissions, would that be better or would I receive the same error? Does this folder require any special permissions that are not seen when running 'ls -al'?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You could simply delete the entire "new" directory, and then re-create it with the correct permissions/ownership values. Simply make sure those values match exactly the values of the "cur" directory.

    Thank you.
     
    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