Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: Bozely on February 20, 2014, 04:23:50 PM

Title: moving/archiving old email for multiple users
Post by: Bozely on February 20, 2014, 04:23:50 PM
Hi,

I was wondering whether their was a suggested practice for archiving mail residing in multiple users inbox's?

Currently we have users with over 10 years of emails and I would like to limit that to a set period, say 36 months.

I've looked into using find and piping to rsync to copy directory structures and files then removing files after the rsync has completed but I would ideally need to loop through every users mailbox only, not their user files and it's at this point i'm a little stuck and not entirely sure I am barking up the right tree.

Suggested practice/reading welcome.

Thanks,
Title: Re: moving/archiving old email for multiple users
Post by: Stefano on February 20, 2014, 06:16:11 PM
Mailarchiva or imapsync
Title: Re: moving/archiving old email for multiple users
Post by: Bozely on March 04, 2014, 12:03:24 PM
Stefano thanks, I tested both, MailArchiva is very polished and is exactly the sort of archiving functionality i was looking for. Also the search functionality cuts out all the effort we currently go through retrieving old emails. Hasten to add i've only tested this on a server with a few emails but from what i read it scales well.

One question, is it bad practice to install MailArchiva on the IMAP itself?
Title: Re: moving/archiving old email for multiple users
Post by: CharlieBrady on March 04, 2014, 02:31:48 PM
but I would ideally need to loop through every users mailbox only, not their user files ...

Start your find at ~user/Maildir/ rather than ~user.