From: Matus UHLAR - fantomas <uh...@fantomas.sk> To: courier-users@lists.sourceforge.net Sent: Wednesday, May 25, 2016 7:10 AM Subject: Re: [courier-users] How to force quota recalculation ?
>>On 25/05/16 01:48, chaouche yacine wrote: >>> maildirsize shows 200Mb+ of disk usage while du shows only 64Mb. > >how could this happen? Did someone modify the maildir's data manually (not by courier's sw)? I don't think so. I'm not running another software except courier. >>> How >>> can I ask courier to recaclculate the quota and allow this poor user >>> to receive mail again ? >I have used rebuilsing quota with "maildirmake -q209715200S ./" That command hangs for reasons I don't understand. I did a trace and it seems it is trying to access a random tmp file that doesn't exist, but it keeps trying instead of giving up and exiting with an error : # maildirmake.courier -q 209715200S /var/vmail/domain.tld/a.aitahmed Here's an strace of it : root@messagerie[CHROOT][10.10.10.19] ~ # ps ax | grep maildirmake 2510 ? S 0:00 su -c maildirmake -q 1073741824S domain.tld/meziane.ziani vmail 2511 ? S 0:00 maildirmake -q 1073741824S domain.tld/meziane.ziani 9608 pts/7 S+ 0:00 maildirmake.courier -q 209715200S /var/vmail/domain.tld/a.aitahmed 10455 pts/6 S+ 0:00 grep --color=always maildirmake root@messagerie[CHROOT][10.10.10.19] ~ # strace -p 9608 Process 9608 attached - interrupt to quit restart_syscall(<... resuming interrupted call ...>) = 0 stat("/var/vmail/domain.tld/a.aitahmed/tmp/1464167777.9608_NeWmAiLdIrSiZe.messagerie", 0x7fffc3728da0) = -1 ENOENT (No such file or directory) open("/var/vmail/domain.tld/a.aitahmed/tmp/1464167777.9608_NeWmAiLdIrSiZe.messagerie", O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK, 0644) = -1 ENOENT (No such file or directory) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({3, 0}, 0x7fffc3728c40) = 0 stat("/var/vmail/domain.tld/a.aitahmed/tmp/1464167780.9608_NeWmAiLdIrSiZe.messagerie", 0x7fffc3728da0) = -1 ENOENT (No such file or directory) open("/var/vmail/domain.tld/a.aitahmed/tmp/1464167780.9608_NeWmAiLdIrSiZe.messagerie", O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK, 0644) = -1 ENOENT (No such file or directory) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({3, 0}, 0x7fffc3728c40) = 0 stat("/var/vmail/domain.tld/a.aitahmed/tmp/1464167783.9608_NeWmAiLdIrSiZe.messagerie", 0x7fffc3728da0) = -1 ENOENT (No such file or directory) open("/var/vmail/domain.tld/a.aitahmed/tmp/1464167783.9608_NeWmAiLdIrSiZe.messagerie", O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK, 0644) = -1 ENOENT (No such file or directory) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({3, 0}, 0x7fffc3728c40) = 0 stat("/var/vmail/domain.tld/a.aitahmed/tmp/1464167786.9608_NeWmAiLdIrSiZe.messagerie", 0x7fffc3728da0) = -1 ENOENT (No such file or directory) open("/var/vmail/domain.tld/a.aitahmed/tmp/1464167786.9608_NeWmAiLdIrSiZe.messagerie", O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK, 0644) = -1 ENOENT (No such file or directory) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({3, 0}, 0x7fffc3728c40) = 0 stat("/var/vmail/domain.tld/a.aitahmed/tmp/1464167789.9608_NeWmAiLdIrSiZe.messagerie", 0x7fffc3728da0) = -1 ENOENT (No such file or directory) open("/var/vmail/domain.tld/a.aitahmed/tmp/1464167789.9608_NeWmAiLdIrSiZe.messagerie", O_RDWR|O_CREAT|O_APPEND|O_NONBLOCK, 0644) = -1 ENOENT (No such file or directory) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({3, 0}, ^C <unfinished ...> Process 9608 detached root@messagerie[CHROOT][10.10.10.19] ~ # ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users