IceWarp Server User to User Forum IceWarp Server User to User Forum

Forums  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

removing old spam messages

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [IceWarp Product Configuration] >> IceWarp Anti-spam Server >> removing old spam messages Page: [1]
Login
Message << Older Topic   Newer Topic >>
removing old spam messages - 8/28/2008 5:07:50 AM   
choiland

 

Posts: 16
Score: 0
Joined: 5/1/2008
From: Minnesota
Status: offline
Hi everybody, I don't know how many people use the daily spam reports, but we do, and the run time kept taking longer and longer, well we found out that even though we have the server set to remove spam messages older than 14 days, that rule does not get run unless the user logs into webmail, or uses IMAP to connect to their account. So we wrote a dos script to remove the older stuff. below is the dos command. To turn it into a batch file you need to put a second "%" in front of the variable name. USE AT YOUR OWN RISK. it works great for us, but i make no assumptions for anyone else. just replace the stuff in the brackets (including the brackets) with your mail storage path, and run on the machine storing your data. We currently have it set to delete everything older than 30 days, because the message buildup was a little large, and didn't want it running for a week the first run through. to test just change the "del" to "echo"

for /D /R [Mail storage path] %F IN ("\~spam*") DO forfiles /p %~fF /s /m *.imap /d -30 /c "CMD /C del @FILE"

once again, it worked for us, but maybe not for you... test it first.

Chris
Post #: 1
RE: removing old spam messages - 9/16/2008 12:01:15 PM   
palidin74

 

Posts: 4
Score: 0
Joined: 6/6/2008
Status: offline
I wanted to say "THANK YOU" for this.  A great script and it works perfectly

(in reply to choiland)
Post #: 2
RE: removing old spam messages - 10/1/2008 12:36:22 PM   
choiland

 

Posts: 16
Score: 0
Joined: 5/1/2008
From: Minnesota
Status: offline
no problem. I figured we weren't the only ones frustrated by this, and that someone else must be as well...



Chris

(in reply to palidin74)
Post #: 3
Page:   [1]
All Forums >> [IceWarp Product Configuration] >> IceWarp Anti-spam Server >> removing old spam messages Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


2001 - 2008 © IceWarp