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 Old Spam in .spam

Discussion in 'General Discussion' started by wififan, Jun 14, 2008.

  1. wififan

    wififan Member

    Joined:
    Apr 1, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I am looking for a script that will look through all of my domains mailboxes and delete spam messages that are older than X number of days. Can someone point me to a post that explains how to do this?

    Thanks
     
  2. wififan

    wififan Member

    Joined:
    Apr 1, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
  3. jdcopelin

    jdcopelin Registered

    Joined:
    Mar 14, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Does the attached script work for you? I adapted it from my spamassassin learnspam script. All you need do is remove the txt extension, give it execute permissions and modify the name of your spam folders in the config section at the top of the file. It is designed to be run per cpanel account, and NOT as the root user.

    Cheers,
    Jonathan
     

    Attached Files:

Loading...

Share This Page