Koozali.org: home of the SME Server

Maillog has 350,000+ emails by now

Offline MSmith

  • *
  • 675
  • +0/-0
Maillog has 350,000+ emails by now
« 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?

...

Offline brianr

  • *
  • 990
  • +2/-0
Re: Maillog has 350,000+ emails by now
« Reply #1 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.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Maillog has 350,000+ emails by now
« Reply #2 on: February 04, 2015, 07:40:49 PM »
use imapsync to move emails older than tot
you'll find many examples with google

Offline MSmith

  • *
  • 675
  • +0/-0
Re: Maillog has 350,000+ emails by now
« Reply #3 on: February 04, 2015, 10:07:19 PM »
Those are both great ideas, thanks!
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Maillog has 350,000+ emails by now
« Reply #4 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.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Maillog has 350,000+ emails by now
« Reply #5 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.