chaouche yacine writes:
Bonjour courier users,I have a weired problem with setting quotas on mailboxes. Here's an example : For this mailbox, current consumed quota is 690880961 on a 840957952 limitroot@messagerie[CHROOT][10.10.10.20] ~/SCRIPTS/MAIL # head /var/vmail/algerian-radio.dz/a.chaouche/maildirsize840957952S 690880961 7252 root@messagerie[CHROOT][10.10.10.20] ~/SCRIPTS/MAIL # What's really on the disk is 698912048,root@messagerie[CHROOT][10.10.10.20] /var/vmail/algerian-radio.dz/a.chaouche # du -s -b698912048 .root@messagerie[CHROOT][10.10.10.20] /var/vmail/algerian-radio.dz/a.chaouche #I made the math it's 7 megs difference, but that's "ok" compared to when I change the quota limit from initial 840 957 952 to 700 000 000 (still above what's on disk and what's reported on maildirsize). Quota goes from 690880961 to 844259131 ?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/maildirsize700000000S 844259131 24530 root@messagerie[CHROOT][10.10.10.20] ~/SCRIPTS/MAIL # Am I doing something wrong ?
No.Courier calculates the size of the mailbox, in exact bytes. du/df report the usage in disk blocks. As you were taught in the "Operating System 101" course, in college, a single byte file will, with most filesystems, take up a single block of disk space, which on Linux is 4096 bytes.
See also: http://www.courier-mta.org/maildirquota.html
pgpTsvhZJbNgE.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