On Tue, Jul 19, 2011 at 12:45:07PM -0400, Thomas Harold wrote: > Dovecot itself has no issue with the bigger mailboxes, the problems are > mostly either client-side or in running backups.
Some filesystems have issues with that many files in a single directory. I'm thinking of ext2, but I'm sure there are others. The "HTree" feature of ext3 corrects or at least betters that (by a factor of 50 to 100 in some cases). I hope nobody is installing ext2 today, but I'm sure there are old machines that have not been upgraded. A litte OT on sed, just for the fun: > DIRS=`$FIND $BASE -maxdepth 3 -name subscriptions | \ > $GREP '/var/vmail' | \ > $SED 's:^/var/vmail/::' | $SED 's:subscriptions$::' | \ That would probably give unexpected results when confronted with $BASE/tmp/var/mail or directories (users?) named "subscriptions" :-) I like sed's -n option. It lets one integrate a previous grep by only outputting the line if it matches: DIRS=`$FIND $BASE -maxdepth 3 -name subscriptions \ | $SED -n 's:^/var/mail/::p' | $SED 's:/subscriptions$:/:' | \ or DIRS=`$FIND $BASE -maxdepth 3 -name subscriptions \ | $SED -n 's:^/var/mail/\(.*/\)subscriptions$:\1:p'