I have a mail scanner address which receives all mail going through postfix (eg. it’s in the box marked ‘Copy all mail to:’ in Server Admin). I always meant to put a process in place to archive the mail out to daily (or hourly) folders. Having finally done this, I encountered a problem.
I can’t access the mailbox via IMAP – it appears the cyrus.cache file is too large (1.8G according to du -h), which represents about 1.6 million emails and 160GB of data. Email still seems to be coming in to the mailbox (more files keep appearing).
My question is – what’s the best way to recover from this sort of problem – do I move the files into separate folders on disc and then run reconstruct (or mailbfr) to rebuild the new mailboxes – or is there some easier way to do it? Would it be possible to change where my mail copys go and then shift the whole lot to another server for processing so I don’t have to bring my mail server to it’s knees while running the mailbox rebuild, or will I not be able to just move it back again?
Thanks for any help – I feel like a bit of a fool for getting into this situation in the first place.