On Wed, 2011-11-09 at 20:35 +0200, Adrian Minta wrote:
On 11/09/11 19:59, Timo Sirainen wrote:
Anyway, here's a guess: the quota is stored in mysql in "integer", which has a maximum value of 2 GB. Actually looks like Dovecot wiki pages also use "integer". Replace that with "bigint" and recalculate quota and it should work.
Actually the mysql part is OK: quota | bigint(20)
As you can see the value readed from mysql ( 2000000bytes) is also OK:
2000000 kilobytes is the quota limit.
- QUOTA "user" (STORAGE 1096 2000000)
The problem is the 1096 number calculated internally by dovecot. By tweaking the SQL querry I coud put any value instead of 2000000, but I was unable to change 1096 part.
Is the quota in the database 1096 or >2GB? i.e. is the problem with reading it, or updating it? In general the quota code uses 64bit integers everywhere so this shouldn't be happening.