[Dovecot] Quota problems on uidlist files
Hi All,
Please excuse me for this somewhat a slightly uneducated explanation of a problem we are experiencing. I'm more a web developer rather than a sysadmin, and have only recently been looking at how exactly dovecot works.
We're having a problem when users/groups quotas are reached on our server platform. Our platform bases quotas on groups - i.e. domains, so a single user has a user username and group of their domain; and the domain has a set amount of space available.
This means that if they then try and access their email, via either imap or in most cases webmail, it would seem that dovecot is unable to create the dovecot-uidlist file - which makes complete sense, because it's running as that user and under the group as detailed above..
We've tried changing a pre-existing file to have group ownership of nobody, but from what we can gather, this file is not actually updated, but deleted and recreated when changes occur.
One solution would be to take the dovecot-uidlist file out of the mail directory structure, on which the quotas are enforced, but this is not configurable in dovecot. Alternatively, having someway of changing to ownership of the file would also get around this problem.
Does anyone have any experience of either a work around for this, or something which we can change in dovecot that will allow users to create a dovecot file, even if they are over quotas?
Many thanks James
James Nunnerley Applications Developer Namesco Limited
James Nunnerley wrote: ...
One solution would be to take the dovecot-uidlist file out of the mail directory structure, on which the quotas are enforced, but this is not configurable in dovecot. Alternatively, having someway of changing to ownership of the file would also get around this problem.
It is possible, even if it's not documented as well as it should be. We use this mail_location setting here:
mail_location = maildir:%h/Maildir:INDEX=/mail/index/%u:CONTROL=/mail/index/%u
This results in index files (INDEX=..) as well as dovecot-uidlist files (CONTROL=..) being stored ouside of the home partition (where user/group quotas do not apply).
Hope that helps.
Best Regards, Michael Paesold
participants (2)
-
James Nunnerley
-
Michael Paesold