Greetings all, After migrating a few dozen people to our departmental mailserver, we've run into a problem with one user who makes extensive use of folders and nesting them. I've seen as many as 8 levels. The longest resulting folder name is 113 characters, which results in a total path length of 137 characters (/var/spool/mail/******). Their old mail server handled this fine, but dovecot is choking on it; imapsync reports "invalid mailbox name", and he gets the same error clicking on the mailboxes in Thunderbird (they seem to have been created, despite the error messages.) Mail was imported over using imapsync, and did so flawlessly for all the other accounts. Are we running up against a soft (configuration file) or hard (source) limit? Or is this a bug? Thanks! Brett
On Wed, 2009-11-25 at 11:59 -0500, Brett Dikeman wrote:> Greetings all, > > After migrating a few dozen people to our departmental mailserver, > we've run into a problem with one user who makes extensive use of > folders and nesting them. I've seen as many as 8 levels. The longest > resulting folder name is 113 characters, which results in a total path > length of 137 characters (/var/spool/mail/******).mbox or maildir? What OS? What filesystem?> Their old mail server handled this fine, but dovecot is choking on it; > imapsync reports "invalid mailbox name", and he gets the same error > clicking on the mailboxes in Thunderbird (they seem to have been > created, despite the error messages.)Try talking IMAP protocol directly: 1 login user pass 2 create mailbox/name Are you sure it's because of the mailbox name length? Maybe there's something else wrong in the name? The hardcoded mailbox length is 512 characters. With Maildir++ it's typically 255 characters because of OS/filesystem limits. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091125/cb678da0/attachment-0002.bin>
On Wed, Nov 25, 2009 at 12:46 PM, Timo Sirainen <tss at iki.fi> wrote:> mbox or maildir? What OS? What filesystem?Ah! Sorry- maildir, Debian Stable (Lenny) 64bit, XFS.>> Their old mail server handled this fine, but dovecot is choking on it; >> imapsync reports "invalid mailbox name", and he gets the same error >> clicking on the mailboxes in Thunderbird (they seem to have been >> created, despite the error messages.) > > Try talking IMAP protocol directly: > > 1 login user pass > 2 create mailbox/nameWell, as I said, at least some of the mailboxes were created...but they're not accessible.> Are you sure it's because of the mailbox name length?Nope, that's why I asked :)> The hardcoded mailbox length is 512 characters. With Maildir++ it's > typically 255 characters because of OS/filesystem limits.OK, we're well below that even taking into account the full path and filename. I'll start hunting elsewhere. Thanks for the quick reply, Timo. Brett