Set as fillows: mail_location = maildir:/var/vmail/%d/%n/Maildir
Dovecot error record for every mailbox:
Error: autoexpunge: Couldn't create dovecot.autoexpunge.lock lock: file_create_locked(/var/vmail/<full_email>/dovecot.autoexpunge.lock) failed: safe_mkstemp(/var/vmail/<full_email>/dovecot.autoexpunge.lock) failed: No such file or directory
The problem is it tries to create /var/vmail/<full_email>/dovecot.autoexpunge.lock
WITHOUT checking for existence and creating <full_email>
dir in it.
This leads to No such file or directory
error.
If I do mkdir /var/vmail/<full_email>
then errors are not thrown and lockfile is created and then deleted ok.
There is NO settings regarding autoexpunge lockfiles. CONTROL option pointing to other dir does not work either.