Koozali.org: home of the SME Server

moving/archiving old email for multiple users

Offline Bozely

  • *
  • 75
  • +0/-0
moving/archiving old email for multiple users
« 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,
« Last Edit: February 20, 2014, 04:26:46 PM by Bozely »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: moving/archiving old email for multiple users
« Reply #1 on: February 20, 2014, 06:16:11 PM »
Mailarchiva or imapsync

Offline Bozely

  • *
  • 75
  • +0/-0
Re: moving/archiving old email for multiple users
« Reply #2 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?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: moving/archiving old email for multiple users
« Reply #3 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.