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.

Clear SPAM BOX for ALL the users

Discussion in 'General Discussion' started by Heritz, Oct 3, 2006.

  1. Heritz

    Heritz Well-Known Member

    Joined:
    Aug 12, 2006
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Hello guys,

    I have around 80 accounts in my dedicated server. Cleaning the SPAMBOX one by one its a pain in the a$$. Is there any way, any SSH command or something to clear the SPAMBOX for ALL the accounts in the server?

    All of them have the SPAMASSASIN and the SPAMBOX enabled. But cleaning them is a pain.

    Thanks guys!
     
  2. dragonbooster

    dragonbooster Active Member

    Joined:
    Oct 4, 2006
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Setting up cron to empty spam boxes

    cd home
    create file emptyspam
    pico emptyspam (paste all the urls to empty the spam)
    echo > /home/username/mail/path to spam
    echo > /home/username1/mail/path to spam and so on
    (the commands to empty spam to be pasted in the empty spam file)
    chmod 755 emptyspam
    crontab -e (setting a cron tab, -e for editting the file)
    and paste the following

    * 23 * * * /home/emptyspam

    Please try this
     
  3. btwatts

    btwatts Active Member

    Joined:
    Jun 26, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Empty Spam Box

    It seems this would work, but requires a fair amount of maintenance (every time an account is added, the script needs to be updated).

    Either the script generation would need to be automated (something I'm sure we could write), or we could request this feature out of CPanel ??

    Any thoughts on getting this feature included in CPanel?

    Thanks!
     
  4. Imai

    Imai Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Request this Feature

    This will be a nice addition to WHM.
    There are customers who don't even login to their control panel.
    They only come back when their users receive a warning message saying
    "How come our mailbox is full?"
    It will be nice to be able to perform this operation for them.
     
Loading...

Share This Page