Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started 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,
-
Mailarchiva or imapsync
-
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?
-
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.