chaouche yacine writes:

>----- Original Message -----
>From: Sam Varshavchik <mr...@courier-mta.com>
>To: Courier Users <courier-users@lists.sourceforge.net>
>Sent: Sunday, August 14, 2016 2:50 PM
>Subject: Re: [courier-users] Weired quota recalculation

>
>No.
>
>Courier calculates the size of the mailbox, in exact bytes. du/df report the
>usage in disk blocks.

That's du's default behaviour. Exact bytes are obtained with -b.

>> root@messagerie[CHROOT][10.10.10.20] /var/vmail/algerian- radio.dz/a.chaouche
>> # du -s -b
>> 698912048    .
>>

I should have skipped the output of du alltogether.

Before maildirmake.courier -q
=============================
>> root@messagerie[CHROOT][10.10.10.20] ~/SCRIPTS/MAIL # head
>> /var/vmail/algerian-radio.dz/a.chaouche/maildirsize
>> 840957952S
>> 690880961 7252
>> root@messagerie[CHROOT][10.10.10.20] ~/SCRIPTS/MAIL #
>>

After maildirmake.courier -q
=============================
>> root@messagerie[CHROOT][10.10.10.20] ~/SCRIPTS/MAIL # maildirmake.courier -q
>> 700000000S /var/vmail/algerian-radio.dz/a.chaouche/
>> root@messagerie[CHROOT][10.10.10.20] ~/SCRIPTS/MAIL # head
>> /var/vmail/algerian-radio.dz/a.chaouche/maildirsize
>> 700000000S
>>  844259131      24530
>>
>> root@messagerie[CHROOT][10.10.10.20] ~/SCRIPTS/MAIL #


Both message count and maildir size have changed. Here's output of find . - type f | wc -l

root@messagerie[CHROOT][10.10.10.20] /var/vmail/algerian-radio.dz/a.chaouche # find . -type f | wc -l
7396
root@messagerie[CHROOT][10.10.10.20] /var/vmail/algerian-radio.dz/a.chaouche #

Which is closer to the original data stored in maildirsize

I would check the filesystem consistency using fsck.


Attachment: pgpetSjDH64fu.pgp
Description: PGP signature

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to