On Mon, Apr 29, 2002 at 09:37:49PM +0800, Anthony wrote: > Hi > > I was setup a qmail server with ldap patch. Everything work fine except some problem. > > I set ldapdefaultquota (10000S, 100C) and quotawarning ( Quota Exceed !) in the >~/control directory. When I try to send a large mail to one user of this server, the >mail will drop and returned to the sender because the mail exceed the quota setting. >But no warning messages send to the receipent. Why ? > If some user sends a mail that will not fit into the quota there is no need for a quota warning for the recipient. A quota warning is sent to the user only if he gets over a defined threshold (70% defined in qmail-ldap.h). In your case this threashold is not reached and so no warning is sent. As an example if i send a 20kB message to your user (20kB >> 10000 bytes) the message will never fit and so why should I send a warning to the user?
> It seems the quota function is worked except quota warning. > quota warning works if you send multiple small messages but not for large messages in the default case with a 70% threshold messages large than 30% of the quota have this problem. Normaly you will have a quota of more or less 10MB so only mails bigger than 3MB have this problem. > So Is there any etting required ? > > I spend a lot of time to solve this problem but still no solution. > If you realy need to send a warning have a look at qmail-local.c (function maildir and mailfile). -- :wq Claudio
