[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quota Bounce messages


>> On Thu, Sep 16, 2004 at 01:15:40PM +0200, Jose Javier Sianes Ruiz wrote:
>>> Hi. I want to modify Qmail-ldap source code to eliminate the bounce
>>> notification about user overquota. This message is generated by calling
>>> a
>>> function named 'quota_bounce' in condwrite.c and qmail-local.c . The
>>> definition of this procedure is:
>>>
>>>
>>> /* Over line 170 in qmail-local.c file */
>>> /* quota handling warning and bounce */
>>> void quota_bounce(const char *type)
>>> {
>>>         strerr_die3x(100, "The users ", type," is over the allowed
>>> quota
>>> (size). (#5.2.2)");
>>>
>>> }
>>>
>>> I would like to modify this function to eliminate bounce email
>>> notification for this issue (only this, I dont want to disable all
>>> bounce
>>> messages). Anyone have an idea?
>>>
>>
>> And what should it do? Temporary deferrals or just drop the mail?
>> For the first on change 100 to 111 and for the second on to 0.
>>
>> --
>> :wq Claudio
>>
>
>  Just drop the message. Thanks.
>
>
> Javier Sianes
>

There is a problem: If I change error 100 to 0 (hard to success), when I
start Qmail I get in the logfile a 'success' entry instead of 'fail', and
the email is stored in user's maildir, even if the quota is over:

Before: (Qmail mark as a fail and not deliver the mail to the user. A
bounce message is sended)

@4000000041494af92eb4c78c delivery 3236: success: did_1+0+0/
@4000000041494af92f8b41cc estate: local 2/30 remote 11/50
@4000000041494af92f8b593c delivery 3235: fail:
The_users_mailfolder_is_over_the_allowed_quota_(size)._(#5.2.2)/
@4000000041494af937f45d1c estate: local 1/30 remote 11/50
@4000000041494af937f4748c delivery 3237: sucess: did_1+0+0/


Now: (Qmail mark as a success and deliver the mail to the user even if the
quota is over. No bounce message is sended)

@4000000041497bba33d49bac estate: local 1/30 remote 9/50
@4000000041497bc4297f15c4 delivery 1: success:
The_users_mailfolder_is_over_the_allowed_quota_(size)._(#5.2.2)/
@4000000041497bc4297f38ec estate: local 0/30 remote 9/50
@4000000041497bc4297f40bc fin msg 262305






This mailing list archive is a service of Copilot Consulting.