delete messages from INBOX.Trash INBOX.Junk

Mike Eggleston mikeegg1 at mac.com
Thu Sep 20 11:35:56 EDT 2007


On Thu, 20 Sep 2007, Robert Banz might have said:

> 
> Going this same direction...  With our previous mail system, we used  
> to chug through our users' Spam & Trash folders, and send them a  
> weekly notification reminding them of the messages they had in these  
> folders, and how many would be deleted in the next week.
> 
> Anyone done something similar with Cyrus?
> 
> -rob
> 
> On Sep 20, 2007, at 05:21, Paul Dekkers wrote:
> 
> > Hi,
> >
> > Vladi Lemurov wrote:
> >> Hello!
> >> 	Is there any way to delete old messages e.g. older than 30 days from
> >> INBOX.Trash and INBOX.Junk mailboxes of all users in a proper  
> >> "cyrus-way"?
> >>
> >
> > You can use ipurge, and run it periodically from cyrus.conf. We  
> > have for
> > instance:
> >
> >   purgetrash    cmd="ipurge -d 14 -f user.%.Trash" at=0200
> >
> > (and a couple of others for the spam folder for instance) to clear the
> > Trash folder of users for messages over two weeks old... people  
> > tend to
> > fill it up and never look at it again, this saves over 10G in our  
> > case :-)
> >
> > You can run ipurge from the commandline too, as user cyrus. (E.g. sudo
> > -u cyrus /path/to/ipurge)
> >
> > Paul

I have an 'expire' set from inside 'cyradm' to automatically delete
messages over a specific number of days old. I don't generate any
emails to my users telling them what nor how many will be deleted...
I just delete them nightly, or rather let cyrus do the deleting.

Mike


More information about the Info-cyrus mailing list