Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    45

    Default Clear SPAM BOX for ALL the users

    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. #2
    Member
    Join Date
    Oct 2006
    Posts
    34

    Default

    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. #3
    Member
    Join Date
    Jun 2003
    Posts
    29

    Default 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. #4
    Member
    Join Date
    Aug 2003
    Posts
    45

    Default 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.

Similar Threads & Tags
Similar threads

  1. Box trapper/ Spam Ass./white list/spam box/etc
    By cmcprodmgr in forum E-mail Discussions
    Replies: 17
    Last Post: 06-25-2008, 02:13 PM
  2. problem/bugs with update disk-mail usage after clear spam box
    By xneme in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-15-2006, 01:02 PM
  3. Any script can clear spam box automatically ?
    By jameshsi in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 11-11-2006, 10:35 AM
  4. are users able to clear error log?
    By ALL in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-05-2005, 09:17 PM
  5. Bug on 'Clear Spam Box'
    By coralbridge in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-09-2005, 01:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube