On 2 May 2018, at 12.52, John van der Kamp <jkamp@amazon.nl> wrote:

There seems to be a problem with new user directories and the imapc backend. On a test setup I get the following error in the log:

May 02 10:09:58 imap(user1@domain.com): Error: Couldn't create mailbox list lock /tmp/tmp0Y5TMn/dovecot1/users/user1@domain.com/imapc/mailboxes.lock: file_create_locked(/tmp/tmp0Y5TMn/dovecot1/users/user1@domain.com/imapc/mailboxes.lock) failed: safe_mkstemp(/tmp/tmp0Y5TMn/dovecot1/users/user1@domain.com/imapc/mailboxes.lock) failed: No such file or directory

The 'imapc' part in the user directory is not there (yet), and so the mailboxes.lock file cannot be created. A [SERVERBUG] Internal error occurred is returned to the client.
This may have already been broken in an earlier release.
Older releases don't seem to have the mailbox lock at this point, so they don't return an error when the imapc directory is not there yet.

Should be fixed by https://github.com/dovecot/core/commit/27366c1b4258a8b3becfb1c3e30b0d3aa8798daa