sieve stopped working and doveadm mailbox list without -s shows less folders then with

Timo Sirainen tss at iki.fi
Mon Sep 18 13:03:07 EEST 2017


On 18 Sep 2017, at 12.10, Ralf Becker <rb at egroupware.org <mailto:rb at egroupware.org>> wrote:
> 
> Am 14.09.17 um 01:07 schrieb Timo Sirainen:
>> On 7 Sep 2017, at 17.42, Ralf Becker <rb at egroupware.org <mailto:rb at egroupware.org>> wrote:
>>> Dovecot 2.2.31 with mailboxes in mdbox format.
>>> 
>>> Since a couple of days some mailboxes have the problem, that sieve rules
>>> moving mails to folders stop working and .sieve.log in mailbox shows:
>>> 
>>> sieve: info: started log at Sep 07 13:57:17.
>>> error:
>>> msgid=<20170907155704.EGroupware.S4yThVJRr12WSiJLpKbK0Bz at somedomain.egroupware.de <mailto:20170907155704.EGroupware.S4yThVJRr12WSiJLpKbK0Bz at somedomain.egroupware.de>>:
>>> failed to store into mailbox 'INBOX/Munser': Mailbox doesn't exist:
>>> INBOX/Munser.
>>> 
>>> When I do a doveadm mailbox list -s -u <user>@<domain> I get all folders
>>> incl. the one mentioned above, while doveadm mailbox list without -s
>>> shows just
>>> user
>>> INBOX
>> Subscriptions are stored independently from the actual folders. So it looks like the subscription file exists and is correct, but somehow you've lost all the folders. Do you see the folders in the filesystem under user/mailboxes/ directory? 
> 
> Yes, the folders exist under
> /var/dovecot/imap/<domain>/<user>/mdbox/mailboxes/.
> Just doveadm mailbox list -u <user>@<domain> (without -s) does only show
> INBOX and user.
> (I can send you the list of folders via private mail, but I can not post
> them on the list.)
> 
> Anything I can do to get Dovecot to eg. rescan the folders from the
> filesystem or any other way to fix that problem?
> I have it with a couple of mailboxes, so I believe it's some kind of
> systematic problem, nothing the users did.

I can't really think of any reason why it wouldn't simply work. Especially since you're not using v2.2.32, the folder listing is always performed by listing the directories in filesystem, so there's nothing really to resync. What's your doveconf -n? You could try with mailbox_list_index=no if that happens to make any difference, but it shouldn't.

You could also try what "strace -o log -s 100 doveadm mailbox list -u user at domain" shows. Is it opening the correct mailboxes/ directory? Maybe the path is just wrong for some reason (some typo added somewhere)?



More information about the dovecot mailing list