Weird sub-folder error
Hi,
I’m running dovecot 2.2.13 and I ran into a weird problem.
A user migrated his mailboxes by letting users copy them from their old server to the new one through their MUA. All that went fine except for one very weird instance. The user is running Outlook 2010.
The user has a sub-folder structure which dovecot places as dotted names beneath the Inbox. (E.g. Maildir/.my.sub.folders). After copying all data, that user came back to us and complained about missing mails in their folders. Apparently 3 of her folders disappeared.
I found folders with similar (but different!) names in the dovecot storage but with no mails in them. After a while I noticed that something made dovecot create another level of nesting, like this:
Maildir/.My.Folder/Subfolder
In this case the Original folder structure was INBOX - My - Folder - Subfolder. When the user visited the subscription settings in her MUA she found the INBOX - My - Folder mailbox which was empty. The Subfolder was nowhere to be found. This appeared weird to me. I moved the Subfolder back directly under the Maildir directory and named it “.My.Folder.Subfolder”. doveadm now lists this folder correctly.
I could not find whether this is a known bug - so I’m letting you know. Maybe you can help understand what happened. Sounds like a weird server-side bug to me - this shouldn’t happen, right?
Cheers, Christian
— Christian Theune · ct@flyingcircus.io · +49 345 219401 0 Flying Circus Internet Operations GmbH · http://flyingcircus.io Forsterstraße 29 · 06112 Halle (Saale) · Deutschland HR Stendal HRB 21169 · Geschäftsführer: Christian. Theune, Christian. Zagrodnick
On 02 Mar 2015, at 14:46, Christian Theune <ct@flyingcircus.io> wrote:
Hi,
I’m running dovecot 2.2.13 and I ran into a weird problem.
A user migrated his mailboxes by letting users copy them from their old server to the new one through their MUA. All that went fine except for one very weird instance. The user is running Outlook 2010.
The user has a sub-folder structure which dovecot places as dotted names beneath the Inbox. (E.g. Maildir/.my.sub.folders). After copying all data, that user came back to us and complained about missing mails in their folders. Apparently 3 of her folders disappeared.
I found folders with similar (but different!) names in the dovecot storage but with no mails in them. After a while I noticed that something made dovecot create another level of nesting, like this:
Maildir/.My.Folder/Subfolder
In this case the Original folder structure was INBOX - My - Folder - Subfolder. When the user visited the subscription settings in her MUA she found the INBOX - My - Folder mailbox which was empty. The Subfolder was nowhere to be found. This appeared weird to me. I moved the Subfolder back directly under the Maildir directory and named it “.My.Folder.Subfolder”. doveadm now lists this folder correctly.
Actually, little correction. It didn’t fail to split a subfolder like this but some (to me unknown) character, maybe whitespace:
So the original hierarchy was:
“INBOX” - “Some Subfolder” which was turned into
Maildir/.Some/Subfolder
Christian
— Christian Theune · ct@flyingcircus.io · +49 345 219401 0 Flying Circus Internet Operations GmbH · http://flyingcircus.io Forsterstraße 29 · 06112 Halle (Saale) · Deutschland HR Stendal HRB 21169 · Geschäftsführer: Christian. Theune, Christian. Zagrodnick
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 2 Mar 2015, Christian Theune wrote:
Actually, little correction. It didn’t fail to split a subfolder like this but some (to me unknown) character, maybe whitespace:
So the original hierarchy was:
“INBOX” - “Some Subfolder” which was turned into
Maildir/.Some/Subfolder
is it even more possible, that the slash was in place before, too? E.g. "Jahr 2014/15" ?
Please show us your config, because the Maildir code forbids slashes normally, any CREATE command should reject the request.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVPVh2nz1H7kL/d9rAQLXBQf+Mb2BKzHtGquEsDEGBMwlhO1EXZvYetXL UYydKiCXU3vWKoKMaKWfotqbyvBYUnPC4cxfO7XodQ+yYMPTDOEVWzwjT2ewYGg8 mDeYgSN5ks86yqKUDikZ9swVh/1zKeqZbV4vcKfkU7YfY2TmCtw2Fb1ubhLY9RUO mqLXpxnkr/0UreTbme2lqCeF8mTiKkSQ4dv5A2eSNFxPF6M0C+8qn66N37IQE5T1 hH+36r9nZbwUGJu4bECnmyZyXsEQ1R4ivRcGACaD2W3dmmoqMo790XQk6oyMgpIT 5Rq8+2CPPgoyMQMhyphVZrBwxjXSVVLsjnXpQkrA9HLV8GvbOX+mkg== =pfT3 -----END PGP SIGNATURE-----
Hi,
interesting idea about “/“ being in the folder name. I’ll ask whether that was the case.
Here’s the doveconf -n output: (minus some privacy)
# 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 3.17.2-gentoo i686 Gentoo Base System release 2.2 auth_mechanisms = plain login auth_socket_path = /run/dovecot/auth-userdb disable_plaintext_auth = no first_valid_uid = 119 mail_location = maildir:~/Maildir mail_plugins = quota mail_privileged_group = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave duplicate namespace inbox { inbox = yes location = prefix = INBOX. separator = . type = private } passdb { args = /etc/dovecot/deny-users deny = yes driver = passwd-file } passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } plugin { quota = maildir sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } pop3_client_workarounds = outlook-no-nuls oe-ns-eoh protocols = imap pop3 sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = vmail mode = 0660 user = vmail } } service dict { unix_listener dict { group = vmail mode = 0600 user = vmail } } service managesieve-login { executable = /usr/libexec/dovecot/managesieve-login inet_listener sieve { address = xxx.xxx.xxx.xxx port = 4190 reuse_port = no ssl = no } } service managesieve { executable = /usr/libexec/dovecot/managesieve } ssl_cert = </etc/ssl/xxx.xxx.xxx-20150208.crt ssl_cipher_list = ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS ssl_key = </etc/ssl/xxx.xxx.xxx-20150208.key ssl_prefer_server_ciphers = yes ssl_protocols = !SSLv2 !SSLv3 userdb { args = uid=vmail gid=vmail home=/srv/vmail/%d/%n driver = static } protocol lda { mail_plugins = sieve sieve } protocol sieve { mail_location = maildir:~/Maildir managesieve_max_line_length = 65536 }
On 03 Mar 2015, at 08:25, Steffen Kaiser <skdovecot@smail.inf.fh-brs.de> wrote:
<Mail Attachment.txt>
PS: weird, your mail was shown in this way to me on OS X Mail. Haven’t seen that before. :)
— Christian Theune · ct@flyingcircus.io · +49 345 219401 0 Flying Circus Internet Operations GmbH · http://flyingcircus.io Forsterstraße 29 · 06112 Halle (Saale) · Deutschland HR Stendal HRB 21169 · Geschäftsführer: Christian. Theune, Christian. Zagrodnick
Hi,
On 03 Mar 2015, at 09:55, Christian Theune <ct@flyingcircus.io> wrote:
Hi,
interesting idea about “/“ being in the folder name. I’ll ask whether that was the case.
Feedback from the user was “probably not”. Anything I can help debugging this further?
Christian
— Christian Theune · ct@flyingcircus.io · +49 345 219401 0 Flying Circus Internet Operations GmbH · http://flyingcircus.io Forsterstraße 29 · 06112 Halle (Saale) · Deutschland HR Stendal HRB 21169 · Geschäftsführer: Christian. Theune, Christian. Zagrodnick
participants (2)
-
Christian Theune
-
Steffen Kaiser