Roberto Gonzalez Azevedo
2007-May-09 13:23 UTC
[Dovecot] Conflict -> Dovecot + Maildrop (maildirsize)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm having some problems with quota from sql (maildir++) and dovecot + maildrop. I'm using maildrop for MDA and dovecot as IMAP server. When an e-mail arrives, maildrop calculates the quota and updates the 'maildirsize' file. When i use dovecot (webmail, thunderbird) it updates the 'maildirsize' too, overwriting it, but in a different way. Both programas don't use the same pattern for 'maildirsize'. Let me show: 'maildirsize' with maildrop: " 1073741824S 117395679 1760 3675 1 3675 1 1610 1 1612 1 3222 2 9641 1 9641 1 5301 1 6415 1 11716 2 15419 1 15419 1 " 'maildirsize' with dovecot: " 1099511627776S 585847701 102542 5504023 959 " In both examples the quota is 1GB (1073741824S). And now ? Does anybody known how to fix that ? thanks - -- - ---------------------------- Roberto Gonzalez Azevedo Rio de Janeiro, Brazil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGQcttF+EMwkXLsEwRAoUOAKC0VXeC4USHyxOhsE5TQixk77hpmwCgxk5P ABOk8XHurCx/gEnd5StCkB8=B+0f -----END PGP SIGNATURE-----
Timo Sirainen
2007-May-11 14:40 UTC
[Dovecot] Conflict -> Dovecot + Maildrop (maildirsize)
On Wed, 2007-05-09 at 10:23 -0300, Roberto Gonzalez Azevedo wrote:> 'maildirsize' with dovecot: > " > 1099511627776S > 585847701 102542 > 5504023 959 > " > > In both examples the quota is 1GB (1073741824S). > And now ? Does anybody known how to fix that ?Looks like you're trying to tell the quota in bytes to Dovecot. Dovecot wants it to be in kilobytes in its configuration file / userdb (it still writes it in bytes to maildirsize, as you can see above it writes 1GB * 1024 value in there). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070511/6f3ad45e/attachment.bin>
censanet.com.br
2007-May-13 03:01 UTC
[Dovecot] Conflict -> Dovecot + Maildrop (maildirsize)
Timo Sirainen wrote:> On Wed, 2007-05-09 at 10:23 -0300, Roberto Gonzalez Azevedo wrote: > >> 'maildirsize' with dovecot: >> " >> 1099511627776S >> 585847701 102542 >> 5504023 959 >> " >> >> In both examples the quota is 1GB (1073741824S). >> And now ? Does anybody known how to fix that ? >> > > Looks like you're trying to tell the quota in bytes to Dovecot. Dovecot > wants it to be in kilobytes in its configuration file / userdb (it still > writes it in bytes to maildirsize, as you can see above it writes 1GB * > 1024 value in there). > >Ok, but it ('Looks like you're trying to tell the quota in bytes to Dovecot') isn't the problem, yet ;). I'll try to figure out the problem. Example: Some user has 1GB quota, and has 512MB used. When an e-mails arrives maildrop recalculates the quota (513MB). Then, using dovecot, the user deletes some e-mails and, now, 'maildirsize' is overwritten, but in a different pattern, so there's an inconsistency with the new 'maildirsize'. It isn't 511MB or less, it starts from beginning (1MB). A 'new' 'maildirsize' file. That's the problem. Does somebody known how to fix it ? Thanks. -- -------------------------------------------- Roberto Gonzalez Azevedo Rio de Janeiro, Brazil
> As I said in my original mail, this is simply a configuration issue: > > Looks like you're trying to tell the quota in bytes to Dovecot. Dovecot > wants it to be in kilobytes in its configuration file / userdb (it still > writes it in bytes to maildirsize, as you can see above it writes 1GB * > 1024 value in there). > > Where do you get the quota value for Dovecot? Divide it by 1024 and > it'll work right.I also use maildrop + dovecot. My quotas are stored in a mysql DB in couriers expected format: 50000000S (note the S on the end for storage). It makes for a very ugly userdb query trying to get that formatted to dovecot style of "maildir:storage=48828:ignore=Trash" How much would it take to allow dovecot's quota plugin to alternately accept "maildir:50000000S:ignore=Trash"? -- Kenny Dail <kend at amigo.net>