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

Title: Maillog has 350,000+ emails by now
Post 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?

Title: Re: Maillog has 350,000+ emails by now
Post by: brianr on February 04, 2015, 06:26:28 PM
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.
Title: Re: Maillog has 350,000+ emails by now
Post by: Stefano on February 04, 2015, 07:40:49 PM
use imapsync to move emails older than tot
you'll find many examples with google
Title: Re: Maillog has 350,000+ emails by now
Post by: MSmith on February 04, 2015, 10:07:19 PM
Those are both great ideas, thanks!
Title: Re: Maillog has 350,000+ emails by now
Post by: CharlieBrady on February 05, 2015, 04:23:22 AM
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.
Title: Re: Maillog has 350,000+ emails by now
Post by: CharlieBrady on February 05, 2015, 04:24:51 AM
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.