[Dovecot] path field in mysql quota
What is the path field for in the quota table in mysql? Is the username not enough information for storing and updating quotas?
-- Marshal Newrock, Ideal Solution LLC http://www.idealso.com
On Wed, 3 Jan 2007 23:18:22 +0200 Timo Sirainen <tss@iki.fi> wrote:
On 3.1.2007, at 22.15, Marshal Newrock wrote:
What is the path field for in the quota table in mysql? Is the username not enough information for storing and updating quotas?
It supports having both "max. number of messages" as well as "max.
number of bytes" quotas.
That makes sense. Thanks.
So, a little more on quotas. If I'm understanding a previous posting correctly, to have per-user quotas, I have to return a quota field from the database in the format specified on http://wiki.dovecot.org/Quota/Dict. If I omit "messages=...", then I assume that it will only apply the storage size quota.
Is there a way to tell the LDA to ignore the quota but update the quota usage when delivering? And also to apply quotas to pop/imap. My goal is to have postfix reject mail for users who are over quota, but always deliver once the mail gets to the storage server. At worst, I can add a certain amount to the quota in the query.
-- Marshal Newrock, Ideal Solution LLC http://www.idealso.com
On 4.1.2007, at 1.01, Marshal Newrock wrote:
So, a little more on quotas. If I'm understanding a previous posting correctly, to have per-user quotas, I have to return a quota field
from the database in the format specified on http://wiki.dovecot.org/Quota/Dict. If I omit "messages=...", then I assume that it will only apply the storage size quota.
Yep.
Is there a way to tell the LDA to ignore the quota but update the
quota usage when delivering? And also to apply quotas to pop/imap.
With 1.0rc's quota code, unfortunately not. With my quota-rewrite, yes:
http://dovecot.org/patches/quota-rewrite.diff
With it the quota is always tracked. So set "quota" in dovecot.conf,
and make userdb return "quota_rule" for imap/pop3 but not for deliver
(with SQL userdb and checkpassword userdbs this is easy, with others
it's not..).
participants (2)
-
Marshal Newrock
-
Timo Sirainen