I am wondering if I really need to use dovecot quota functions or not. Assume for the moment, that, each system user has a quota defined using Linux quotas, and that the Maildir is within their quota limited directory. So, any mail (or files created by the user etc) that would exceed the quota obviously can't be created.
In such an environment, is there any advantage to implementing the same quota already defined in the filesystem via dovecot? Or, can I just make things simpler and ignore dovecot quotas? Assuming I keep the index and control files out of the quota limited directories.
I presume if exceeding filesystem quota, the mail will not be delivered of course. If using lmtp, I presume it stays in the queue to retry later for some period of time. Steve
2011/10/9 Steve Fatula <compconsultant@yahoo.com>
I am wondering if I really need to use dovecot quota functions or not. Assume for the moment, that, each system user has a quota defined using Linux quotas, and that the Maildir is within their quota limited directory. So, any mail (or files created by the user etc) that would exceed the quota obviously can't be created.
In such an environment, is there any advantage to implementing the same quota already defined in the filesystem via dovecot? Or, can I just make things simpler and ignore dovecot quotas? Assuming I keep the index and control files out of the quota limited directories.
I presume if exceeding filesystem quota, the mail will not be delivered of course. If using lmtp, I presume it stays in the queue to retry later for some period of time.
Steve
But if you dont use quotas how do you know if the user is out of space? Or does the user gets a notification that it's running out of space, before you start rejecting emails?
Eduardo.
From:Eduardo Casarero <ecasarero@gmail.com> To:Steve Fatula <compconsultant@yahoo.com> Cc:Dovecot List <dovecot@dovecot.org> Sent:Sunday, October 9, 2011 2:37 PM Subject:Re: [Dovecot] Filesystem quotas
But if you dont use quotas how do you know if the user is out of space? Or does the user gets a notification that it's running out of space, before you start rejecting emails? How do I know, or, how does the user know? I couldn't care less, so, not an issue for me. The user gets notification when their used space is above a certain percent. These are system users, so, email is just one part of their quota space. They might have 1 email, and build a massive file, they'd still be out of space.
So, what do I get by using the Dovecot Quota/FS plugin? Is it just a matter of it counting used space? Something else? Better handling of out of space?
I think by using dovecot quota you can exclude some directories from the quota (e.g: spam or Trahs or whatever you like). More specificly it is better using dovecot quota as it will allow LDA to report quota exceeded in NDR . If using filesystem quota, I guess you'll send ugly messages reporting IO error or enability too write file, which is really not serious.
regards.
Le 10/10/2011 00:44, Steve Fatula a écrit :
From:Eduardo Casarero<ecasarero@gmail.com> To:Steve Fatula<compconsultant@yahoo.com> Cc:Dovecot List<dovecot@dovecot.org> Sent:Sunday, October 9, 2011 2:37 PM Subject:Re: [Dovecot] Filesystem quotas
But if you dont use quotas how do you know if the user is out of space? Or does the user gets a notification that it's running out of space, before you start rejecting emails? How do I know, or, how does the user know? I couldn't care less, so, not an issue for me. The user gets notification when their used space is above a certain percent. These are system users, so, email is just one part of their quota space. They might have 1 email, and build a massive file, they'd still be out of space.
So, what do I get by using the Dovecot Quota/FS plugin? Is it just a matter of it counting used space? Something else? Better handling of out of space?
Alexandre Chapellon
Ingénierie des systèmes open sources et réseaux. Follow me on twitter: @alxgomz <http://www.twitter.com/alxgomz>
On 10.10.2011, at 2.18, Alexandre Chapellon wrote:
I think by using dovecot quota you can exclude some directories from the quota (e.g: spam or Trahs or whatever you like).
No, it's filesystem quota so Dovecot can't override it.
More specificly it is better using dovecot quota as it will allow LDA to report quota exceeded in NDR . If using filesystem quota, I guess you'll send ugly messages reporting IO error or enability too write file, which is really not serious.
The error message is only slightly different: "Not enough disk space" (instead of "Quota exceeded")
So, what do I get by using the Dovecot Quota/FS plugin? Is it just a matter of it counting used space? Something else? Better handling of out of space?
With imap_quota plugin it allows IMAP client to see how much quota is used/left. You could also enable quota warnings. And configure the quota exceeded error message.
participants (4)
-
Alexandre Chapellon
-
Eduardo Casarero
-
Steve Fatula
-
Timo Sirainen