May 19, 2012, 10:12:22 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Work on Kolab2/Gentoo-2.2 has stopped. The project has been deprecated (see board Kolab2/Gentoo).
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Kolab Tip: Automatically Purge Old Emails  (Read 2992 times)
xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« on: January 14, 2008, 02:18:14 AM »

Some of my users don't delete their old email. After some googling I found the cyrus command ipurge

simply add the code below to the EVENTS section of /etc/kolab/templates/cyrus.conf.template and run kolabconf
It will scan each users folder for Deleted Items, Trash, and Spam, then delete email older then 7 days in those folders every 24hrs.

If you replace * with a username ie: 'john' it will only scan that users folder.
period is the interval time in minutes 1140 minutes = 1 day

Code:
  # Delete Old Email.
  delitems cmd="ipurge -X -d 7 -f 'user/*/Deleted Items@yourdomain.xyz'" period=1440
  deltrash cmd="ipurge -X -d 7 -f 'user/*/Trash@yourdomain.xyz'" period=1440
  delspam cmd="ipurge -X -d 7 -f 'user/*/spam@yourdomain.xyz'" period=1440
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!