Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: MSmith on February 04, 2015, 05:38:13 PM
-
SME 8.1, holding a maillog mailbox that now has the aforementioned 350,000+ emails. I can't load the mailbox via IMAP in Windows Live Mail or Thunderbird; even Mailstore Home crashes when I try to archive it via IMAP. Horde can't open it in a useful amount of time any more.
No indication of any trouble with any user mailboxes and no indication that the maillog copy isn't working.
Anybody run into a similar situation? Suggestions, please? Better / different email client perhaps?
-
In the past I've had to create mail sub directories by hand on the command line and then copy some of the emails into it. I usually do it by month or year, leaving the top level with less in.
-
use imapsync to move emails older than tot
you'll find many examples with google
-
Those are both great ideas, thanks!
-
use imapsync to move emails older than tot
Each mail is just a file in a directory. I would use 'find' to select old files, and then xargs to move them into a different maildir (a maildir is just a top level directory, with three subdirectories).
There's many ways to skin this cat, and I would definitely do it natively on the server, rather than via imap.
-
You can also do this automatically, by having a,, say, monthly cron job which creates a new Maildir, and changes the .qmail file of the maillog user to point to the new maildir.