On 25/07/10 15:15, Matus UHLAR - fantomas wrote: > any program that does not update maildirsize, e.g. anything executed by > dotforward.
Normally dorforwards are empty as it is in this case. > The current size is 65730008 B (62.685 MB) which means the available space > is 7670312 B (7.314 MB) which is less than 12.32M needed for the mail. > So the user does NOT have enough of free space in maildir. Yes, it doesn't but that 12.32M is taken from mailq which isn't nicely parsed to get that information from. It's easy to manually watch and see if some users have big messages in the queue so then they propably have quota problem. I would like to automate that info. If I will only look at the maildirsize, i see that the mailbox has space. But as there is that 12.32M in queue, courier is blocking every mail delivery even if those new would fit in. I've still not seen suggestion to get that information in nicely parsed. I know "mailq --batch" but it's not still in nicely format as there can be mails which would have already been delivered to some user but hanging there for some other users. > my experience saye that the warning mails are stored in the maildir every > day (24h) when the percentage is hit. Which means, if the mail stays in > queue for 5 days, 4-5 warnings get delivered. Ok, then I have something wrong in my enviroment. As those don't get delivered in the situation which I'm describing. I have file: /etc/courier/quotawarnmsg I'm using userdb and hosteddomains. DEFAULTDELIVERY="|| /usr/lib/courier/bin/dotforward | /usr/lib/courier/bin/maildrop -w 90" MAILDROPDEFAULT=./Maildir /etc/courier/maildroprc has couple of check like "xfilter "/usr/bin/spamc". I don't have any idea what else > If you know the user has 70MB quota and the maximum allowed mail size is > 14MB, it means that if mailbox usage crosses 80% ((70 - 14) / 70 * 100), > there may be a mail that doesn't fit there. In such case you have to use > maildrop -w 80 for this user. Users quotas based on the users own choices. They have web gui to edit their mailboxes and their sizes. So changing maildrop parameters per user doesn't seem a nice option. And of course some of the users want big messages to go trought, so I have sizelimit of 100M and people of course can make smaller than that mailboxes. So there would be situations where even if the mailbox is empty no mail is delivered and one got first a bigger email than it's mailbox is and then it's blocking the rest of deliverys. -- Yhteistyöterveisin, Jani Ollikainen @ Pronetko Networks Oy ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users