Hello dovecot
Problem : maildirsize and dovecot quota get have different values
dovecot version : 2.2.13 happens with : some mailboxes
This issue happens only to some mailboxes and only for a specific period of time until maildirsize gets updated by something (not me). I can't reproduce this now because it happened this morning and now its 2 PM and the problem is gone (maildirsize was updated).
Anybody experienced the same situation ?
-- Yassine.
how do you measure the difference?
dovecot quota takes only into consideration either the physical or virtual size of the files.
Aki
On 09.02.2017 14:48, chaouche yacine wrote:
Hello dovecot
Problem : maildirsize and dovecot quota get have different values
dovecot version : 2.2.13 happens with : some mailboxes
This issue happens only to some mailboxes and only for a specific period of time until maildirsize gets updated by something (not me). I can't reproduce this now because it happened this morning and now its 2 PM and the problem is gone (maildirsize was updated).
Anybody experienced the same situation ?
-- Yassine.
On Thursday, February 9, 2017 2:02 PM, Aki Tuomi <aki.tuomi@dovecot.fi> wrote:
how do you measure the difference?
header of maildirsize and output of doveadm quota get -u user@domain.tld
Here's another occurence that happened a couple weeks ago on 25-01-2017 (retrieved from a mail I sent to the user and to teammates):
in some unit in % of quota in Mb
maildirsize value : 785744731 73% 749.34
doveadm quota get value : 597777 57% 583.76
command line traces :
- doveadm quota get
root@messagerie[10.10.10.19] ~/SCRIPTS/MAIL # doveadm quota get -u hakim.b@domain.tld Quota name Type Value Limit % User quota STORAGE 597777 1048576 57 User quota MESSAGE 7210 - 0 root@messagerie[10.10.10.19] ~/SCRIPTS/MAIL #
- maildirsize header :
root@messagerie[10.10.10.19] /var/vmail/domain.tld/hakim.b # head maildirsize 1073741824S 785744731 7414 420741 1 420854 1 420567 1 420632 1 420607 1 420721 1 421077 1 420863 1
root@messagerie[10.10.10.19] /var/vmail/domain.tld/hakim.b #
Who delievers incoming mail, dovecot LDA or something else?
This is what caused a similar problem for me: https://dovecot.org/list/dovecot/2016-April/104091.html
I am using dovecot lmtp
root@messagerie[10.10.10.19] ~ # grep virtual_transport /etc/postfix/main.cf # transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf # virtual_transport = maildrop virtual_transport = lmtp:unix:private/dovecot-lmtp root@messagerie[10.10.10.19] ~ #
On Thursday, February 9, 2017 7:54 PM, WJCarpenter <bill-dovecot@carpenter.org> wrote:
Who delievers incoming mail, dovecot LDA or something else?
This is what caused a similar problem for me: https://dovecot.org/list/dovecot/2016-April/104091.html
Now this is interesting : du, doveadm quota get and maildirsize have three different values for this particular user :
Max Quota is : 1G
du : 883M (86%) maildirsize : 1048M (102%) doveadm : 34402? (32%)
Trace
root@messagerie[10.10.10.19] ~ # cd /var/vmail/domain.tld/m.stefan/ root@messagerie[10.10.10.19] ~ # alias dush alias dush='du -h --max-depth=1 | sort -h' root@messagerie[10.10.10.19] /var/vmail/domain.tld/m.stefan # dush
4.0K ./courierimapkeywords 4.0K ./new 4.0K ./tmp 8.0K ./courierimaphieracl 28K ./.INBOX.Altert 28K ./.INBOX.notifs 36K ./.BOITE_RECEPTION 36K ./.PIGE 80K ./dovecot 428K ./.Drafts 728K ./.Alert Process 1020K ./.Trash 1.3M ./.Junk 3.4M ./cur 3.6M ./.Alert BLANC 7.5M ./.Alert PUB 9.7M ./.IT SUPPORT 9.9M ./.GLPI 12M ./.REGIE 15M ./.LTO 27M ./.VDN 29M ./.Sent 43M ./.HD SUPPORT 105M ./.MAM 105M ./.PRTG 514M ./.INBOX 883M . root@messagerie[10.10.10.19] /var/vmail/domain.tld/m.stefan # cat maildirsize 1073741824S 1098898439 9380 -382366814 -439 382 1 27713 1 -383309268 -489 27433 1 4274 1 27740 1 31452 1 -665709 -153 5722 1 5797 1 27713 1 158840 1 27203 1 27744 1 26032 1 27717 1 1807 1 26989 1 27152 1 26239 1 3066 1 30846 1 4272 1 26020 1 27713 1 30040 1 26753 1 27152 1 27125 1 27744 1 26559 1 26166 1 29845 1 27121 1 27740 1 88624 1 32080 1 26672 1 27121 1 27152 1 26343 1 31456 1 27717 1 27152 1 26343 1 26032 1 29847 1 28309 1 29709 1 26241 1 26343 1 27152 1 31360 1 26016 1 27717 1 30857 1 27148 1 26343 1 28309 1 27152 1 26343 1 26168 1 28305 1 27822 1 27152 1 47273 1 26343 1 32056 1 26460 1 30523 1 28141 1 28152 1 28309 1 27148 1 26343 1 3999 1 1688 1 27990 1 28305 1 27152 1 26343 1 26032 1 27928 1 27479 1 90009 1 27366 1 27264 1 69705 1 27261 1 48383 1 28309 1 26241 1 27152 1 32079 1 30474 1 26016 1 30146 1 27713 1 29818 1 27152 1 30769 1 29194 1 27717 1 27740 1 1508 1 1536 1 1999 1 26146 1 1550 1 1587 1 27125 1 47289 1 27496 1 27744 1 32080 1 26464 1 32048 1 27713 1 27744 1 29845 1 27121 1 27744 1 26032 1 30146 1 27121 1 45454 1 26241 1 28332 1 32103 1 3859 1 26016 1 27121 1 28336 1 4272 1 29709 1 29688 1 27125 1 28336 1 1757 1 4631 1 54951 1 26170 1 1757 1 1975 1 29765 1 28882 1 1757 1 25683 1 71184 1 28332 1 32080 1 55040 1 26464 1 1757 1 4631 1 30706 1 4322 1 49607 1 1757 1 1757 1 46535 1 47378 1 27717 1 27744 1 21723 1 1759 1 1757 1 20218 1 21737 1 21724 1 539443 1 1892 1 27713 1 27744 1 26036 1 27713 1 27740 1 32079 1 12815596 1 26523 1 54511 1 26020 1 27125 1 29847 1 28336 1 30423 1 27009 1 27065 1 26510 1 27121 1 324880 1 27740 1 21128 1 213811 1 20186 1 20239 1 26146 1 21360 1 29481 1 25668 1 27826 1 28128 1 27125 1 31333 1 1820 1 28332 1 26488 1 27778 1 31127 1 4290 1 4290 1 4309 1 27121 1 27744 1 4290 1 8871 1 8871 1 4290 1 1773 1 30578 1 47705 1 10764 1 10764 1 30433 1 31066 1 4290 1 30461 1 31094 1 26680 1 29135 1 29141 1 26032 1 30146 1 30109 1 31054 1 29226 1 31483 1 26016 1 29949 1 30890 1 30095 1 29226 1 5880 1 29173 1 30422 1 root@messagerie[10.10.10.19] /var/vmail/domain.tld/m.stefan # doveadm quota get -u m.stefan@domain.tld Quota name Type Value Limit % User quota STORAGE 344402 1048576 32 User quota MESSAGE 8542 - 0 root@messagerie[10.10.10.19] /var/vmail/domain.tld/m.stefan #
On Sunday, February 12, 2017 2:18 PM, chaouche yacine <yacinechaouche@yahoo.com> wrote: I am using dovecot lmtp
root@messagerie[10.10.10.19] ~ # grep virtual_transport /etc/postfix/main.cf # transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf # virtual_transport = maildrop virtual_transport = lmtp:unix:private/dovecot-lmtp root@messagerie[10.10.10.19] ~ #
On Thursday, February 9, 2017 7:54 PM, WJCarpenter <bill-dovecot@carpenter.org> wrote:
Who delievers incoming mail, dovecot LDA or something else?
This is what caused a similar problem for me: https://dovecot.org/list/dovecot/2016-April/104091.html
Just a follow-up with another interesting situation : here's a maildirsize file that records 0 bytes out of 0 messages, yet it has many lines (which are supposed to be mail file sizes, 1 for received mail and -1 for deleted mail) :
root@messagerie[10.10.10.19] /var/vmail/backup.algerian-radio.dz/sec-drh # head maildirsize 5368709120S 0 0 5664 1 3713 1 6431 1 4012 1 5801 1 5277612 1 2667474 1 5520 1 root@messagerie[10.10.10.19] /var/vmail/backup.algerian-radio.dz/sec-drh #
And here's the output of du showing that the maildir is far from empty :
root@messagerie[10.10.10.19] /var/vmail/backup.algerian-radio.dz/sec-drh # du -h --max-depth=1 | sort -h 4.0K ./dovecot 4.0K ./tmp 8.0K ./courierimaphieracl 24K ./.Archive 2.9M ./new 471M ./cur 517M ./.Sent 991M . root@messagerie[10.10.10.19] /var/vmail/backup.algerian-radio.dz/sec-drh #
-- Yassine.
participants (3)
-
Aki Tuomi
-
chaouche yacine
-
WJCarpenter