[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-----
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).
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
On Sun, 2007-05-13 at 00:01 -0300, censanet.com.br wrote:
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 ?
From your previous mail:
1099511627776S 585847701 102542 5504023 959
Dovecot calculated the size as 558MB, not 1MB?
If you're wondering about the extra spaces written by maildrop, they should have no meaning.
If Dovecot calculated the maildir size differently than maildrop, I can think of 3 reasons:
- Trash mailbox. Do you use ignore=Trash?
- You're using an older Dovecot version which has bugs in its Maildir++ code.
- You're using multiple namespaces and the quota plugin got confused by those.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Excuse me for my last errors. I'll show you now what really happen. User 'x' has 1800000S (1,7 MB) in courier's pattern Here's the 'maildirsize', using courier-imap: ' 1800000S 395196 21 3073 1 '
Thunderbird says: "Usage: 389 of 1758 KB, 22% FULL"
Here's the 'maildirsize' when I use dovecot, at the same moment : ' 1843200000S 398269 22 '
Thunderbird says now: "Usage 388 of 1800000 KB, 0% FULL"
That's the problem. So, people who is using webmail or other stuff would think that they have a large mailbox ... Is it possible to change dovecot's pattern ? Some *magical* parameter ... ?
thanks
Roberto Gonzalez Azevedo
Timo Sirainen wrote:
On Sun, 2007-05-13 at 00:01 -0300, censanet.com.br wrote:
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 ?
From your previous mail:
1099511627776S 585847701 102542 5504023 959
Dovecot calculated the size as 558MB, not 1MB?
If you're wondering about the extra spaces written by maildrop, they should have no meaning.
If Dovecot calculated the maildir size differently than maildrop, I can think of 3 reasons:
- Trash mailbox. Do you use ignore=Trash?
- You're using an older Dovecot version which has bugs in its Maildir++ code.
- You're using multiple namespaces and the quota plugin got confused by those.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFGUaSwF+EMwkXLsEwRAnx4AJ9ZgQK/fOOmy82NiKjYsiyIsGdp6ACgtAfF QlC+ckVavu/n2ZIHYXBFgXM= =DHwj -----END PGP SIGNATURE-----
On Mon, 2007-05-21 at 10:54 -0300, Roberto Gonzalez Azevedo wrote:
-----BEGIN PGP SIGNED MESSAGE----- Thunderbird says: "Usage: 389 of 1758 KB, 22% FULL" .. Thunderbird says now: "Usage 388 of 1800000 KB, 0% FULL"
That's the problem. So, people who is using webmail or other stuff would think that they have a large mailbox ... Is it possible to change dovecot's pattern ? Some *magical* parameter ... ?
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.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Sorry for bothering you ... :( Now it's working. It was so simple that i couldn't believe ...
sorry ;)
Thanks
Roberto Gonzalez Azevedo
Timo Sirainen wrote:
On Mon, 2007-05-21 at 10:54 -0300, Roberto Gonzalez Azevedo wrote:
-----BEGIN PGP SIGNED MESSAGE----- Thunderbird says: "Usage: 389 of 1758 KB, 22% FULL" .. Thunderbird says now: "Usage 388 of 1800000 KB, 0% FULL"
That's the problem. So, people who is using webmail or other stuff would think that they have a large mailbox ... Is it possible to change dovecot's pattern ? Some *magical* parameter ... ?
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.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFGUfJaF+EMwkXLsEwRAgeOAKC0I15/42noOUkfM4fGGy9zdGCudQCfZL0R pxRz2D8jEZjqiCTKPS4qpAI= =DHAd -----END PGP SIGNATURE-----
participants (3)
-
censanet.com.br
-
Roberto Gonzalez Azevedo
-
Timo Sirainen