[Dovecot] Driving quota out of a database.
Hi there, I'm using postgres as a userdb for dovecot. I'm am trying to get the quota plugin to work.
I have a column in my table that returns the quota in KB. I am using the postgres expression "('maildir:storage=' || mailstore_control.mailbox.quota) AS quota" as recommended in the manuals. This expression is NULL to start with, which I take to mean unlimited quota.
Trouble is, if I change it to a value, and then change it back to null, I don't seem to go back to unlimited quota.
I'm using maildir++ quotas.
What gives? :-)
David
Griffin Information Systems Ltd 20 St Christopher's Way, Pride Park, Derby DE24 8JY www.griffin.com http://www.griffin.com/
Registered in England and Wales. Company Registration Number: 3676297.
On Mon, 2007-03-05 at 11:52 +0000, David Craigon wrote:
Trouble is, if I change it to a value, and then change it back to null, I don't seem to go back to unlimited quota.
I'm using maildir++ quotas.
Dovecot's maildir++ quota works by first using the quota=nn setting in Dovecot, but if it's not given the quota limits in maildirsize file are used.
Either delete maildirsize file, or use storage=0 instead of NULL quota value.
Hi David,
i also could not get quota to work, i have maildirsize files in the mboxes and set quota=maildir.
Whatever i try dovecot is not taking care of the maildirsize file, not updating or using it.
if i understood you right, i shall try to use storage=0 and then it may work ?
Thanks
Timo Sirainen wrote:
On Mon, 2007-03-05 at 11:52 +0000, David Craigon wrote:
Trouble is, if I change it to a value, and then change it back to null, I don't seem to go back to unlimited quota.
I'm using maildir++ quotas.
Dovecot's maildir++ quota works by first using the quota=nn setting in Dovecot, but if it's not given the quota limits in maildirsize file are used.
Either delete maildirsize file, or use storage=0 instead of NULL quota value.
participants (3)
-
David Craigon
-
Frank Doege
-
Timo Sirainen