Quota plugin creates IMAP folder
Hi everyone,
I have noticed recently that Dovecot creates lock directories under users' Maildirs which look like IMAP folders. This is bad since users will see IMAP folders that are not supposed to be there.
In my logs I see
dovecot: imap(...): Error: file_create_locked(/.../Maildir/.vsize.lock) failed: Is a directory
The directory in question
# ls /.../Maildir/.vsize.lock/ cur/ dovecot.index.log dovecot-uidlist maildirfolder new/ tmp/
so Dovecot seems to think this to be an IMAP folder.
I am using Dovecot 2.2.27 under Debian, built from source, the lock_method is set to fnctl, and the quota plugin uses the maildir method.
Can somebody advice me on how to fix this?
Best regards, Thorsten
This is a configuration issue, not a bug.
use
mail_home=/path/to/some/directory
mail_location=maildir~/Maildir
that is, make sure the mail location is under mail home (even for virtual users).
Aki
On 24.01.2018 13:03, Thorsten Hater wrote:
Hi everyone,
I have noticed recently that Dovecot creates lock directories under users' Maildirs which look like IMAP folders. This is bad since users will see IMAP folders that are not supposed to be there.
In my logs I see
dovecot: imap(...): Error: file_create_locked(/.../Maildir/.vsize.lock) failed: Is a directory
The directory in question
# ls /.../Maildir/.vsize.lock/ cur/ dovecot.index.log dovecot-uidlist maildirfolder new/ tmp/
so Dovecot seems to think this to be an IMAP folder.
I am using Dovecot 2.2.27 under Debian, built from source, the lock_method is set to fnctl, and the quota plugin uses the maildir method.
Can somebody advice me on how to fix this?
Best regards, Thorsten
This is from my config
mail_location = maildir:~/Maildir
and in my userdb-ldap.conf
user_attrs =
...
=home=%{ldap:homedir},
...
Am I missing something?
On Wed, Jan 24, 2018 at 12:12 PM, Aki Tuomi aki.tuomi@dovecot.fi wrote:
This is a configuration issue, not a bug.
use
mail_home=/path/to/some/directory
mail_location=maildir~/Maildir
that is, make sure the mail location is under mail home (even for virtual users).
Aki
On 24.01.2018 13:03, Thorsten Hater wrote:
Hi everyone,
I have noticed recently that Dovecot creates lock directories under users' Maildirs which look like IMAP folders. This is bad since users will see IMAP folders that are not supposed to be there.
In my logs I see
dovecot: imap(...): Error: file_create_locked(/.../Maildir/.vsize.lock) failed: Is a directory
The directory in question
# ls /.../Maildir/.vsize.lock/ cur/ dovecot.index.log dovecot-uidlist maildirfolder new/ tmp/
so Dovecot seems to think this to be an IMAP folder.
I am using Dovecot 2.2.27 under Debian, built from source, the lock_method is set to fnctl, and the quota plugin uses the maildir method.
Can somebody advice me on how to fix this?
Best regards, Thorsten
On 24 Jan 2018, at 13.21, Thorsten Hater thorsten.hater@gmail.com wrote:
This is from my config
mail_location = maildir:~/Maildir
and in my userdb-ldap.conf
user_attrs =
...
=home=%{ldap:homedir},
...Am I missing something?
So what does "doveadm user <uid>" then return as home?
Sami
Well, I have to scrub most data from the output, but it is what I would have expected
# doveadm user <user> field value ... home /path/to/home mail maildir:~/Maildir ...
On Wed, Jan 24, 2018 at 12:30 PM, Sami Ketola sami.ketola@dovecot.fi wrote:
On 24 Jan 2018, at 13.21, Thorsten Hater thorsten.hater@gmail.com wrote:
This is from my config
mail_location = maildir:~/Maildir
and in my userdb-ldap.conf
user_attrs =
...
=home=%{ldap:homedir},
...Am I missing something?
So what does "doveadm user <uid>" then return as home?
Sami
Ah seems you have found a bug, apologies. =)
We'll look into it.
Aki
On 24.01.2018 13:34, Thorsten Hater wrote:
Well, I have to scrub most data from the output, but it is what I would have expected
# doveadm user <user> field value ... home /path/to/home mail maildir:~/Maildir ...
On Wed, Jan 24, 2018 at 12:30 PM, Sami Ketola
mailto:sami.ketola@dovecot.fi> wrote: > On 24 Jan 2018, at 13.21, Thorsten Hater <thorsten.hater@gmail.com <mailto:thorsten.hater@gmail.com>> wrote: > > This is from my config > > mail_location = maildir:~/Maildir > > and in my userdb-ldap.conf > > user_attrs = \ > ... \ > =home=%{ldap:homedir}, \ > ... > > Am I missing something? So what does "doveadm user <uid>" then return as home? Sami
As workaround, you can either use VOLATILEDIR setting for maildir, or you can set maildir_stat_dirs=yes in config.
Aki
On 24.01.2018 14:45, Aki Tuomi wrote:
Ah seems you have found a bug, apologies. =)
We'll look into it.
Aki
On 24.01.2018 13:34, Thorsten Hater wrote:
Well, I have to scrub most data from the output, but it is what I would have expected
# doveadm user <user> field value ... home /path/to/home mail maildir:~/Maildir ...
On Wed, Jan 24, 2018 at 12:30 PM, Sami Ketola
mailto:sami.ketola@dovecot.fi> wrote: > On 24 Jan 2018, at 13.21, Thorsten Hater <thorsten.hater@gmail.com <mailto:thorsten.hater@gmail.com>> wrote: > > This is from my config > > mail_location = maildir:~/Maildir > > and in my userdb-ldap.conf > > user_attrs = \ > ... \ > =home=%{ldap:homedir}, \ > ... > > Am I missing something? So what does "doveadm user <uid>" then return as home? Sami
Thanks for picking this up and for the hints. Sadly the version I am running is slightly too old for VOLATILEDIR and stat is not an option for performance reasons, if I am reading the documentation correctly.
Best regards, Thorsten
On Wed, Jan 24, 2018 at 1:51 PM, Aki Tuomi aki.tuomi@dovecot.fi wrote:
As workaround, you can either use VOLATILEDIR setting for maildir, or you can set maildir_stat_dirs=yes in config.
Aki
On 24.01.2018 14:45, Aki Tuomi wrote:
Ah seems you have found a bug, apologies. =)
We'll look into it.
Aki
On 24.01.2018 13:34, Thorsten Hater wrote:
Well, I have to scrub most data from the output, but it is what I would have expected
# doveadm user <user> field value ... home /path/to/home mail maildir:~/Maildir ...
On Wed, Jan 24, 2018 at 12:30 PM, Sami Ketola sami.ketola@dovecot.fi wrote:
On 24 Jan 2018, at 13.21, Thorsten Hater thorsten.hater@gmail.com wrote:
This is from my config
mail_location = maildir:~/Maildir
and in my userdb-ldap.conf
user_attrs =
...
=home=%{ldap:homedir},
...Am I missing something?
So what does "doveadm user <uid>" then return as home?
Sami
participants (3)
-
Aki Tuomi
-
Sami Ketola
-
Thorsten Hater