[exim-dev] patch suggested: add a /no_check option to quota …

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Heiko Schlittermann
日付:  
To: exim-dev
題目: [exim-dev] patch suggested: add a /no_check option to quota and quota_filecount
Hello,

I patched my copy of exim to have a /no_check option to the quota and
quota_filecount config items:


    …
        driver = appendfile
        quota = 10G/no_check
                   ~~~~~~~~~ optionally 



Why? What is it good for?

In a staged mailserver setup the outermost box is responsible for
accepting/deferring/rejecting the incoming messages based on the quota
usage for the destination account. It does so by asking a database about
the current limits and current usage of the account in question.

The inner mailserver *has* to deliver the message, it has no authority
to defer/reject just because the destination account is overquota.
*BUT* this inner mailserver has to maintain the "maildirsize" file, since
other maildir clients (POP3/IMAP) use it for their quota decisions and
maintain this file too.

If Exim maintains this file depends on the config item
"maildir_use_sizefile". But if Exim does not know about the current
limits, the first line (the "limits" line) becomes "0S,0C". If we want
to see there the real limits, we have to set the quota, resp.
quota_filecount config options. As soon as these values are not zero,
Exim would start checking for the overquota condition and rejects mail.

With the new "/no_check" option to "quota" and "quota_filecount" Exim
behaves as normal with regard to the maintenance of the "maildirsize"
file, but Exim does not reject the delivery just because of the
overquota condition.

1)  any suggestion for a better name? (/always_accept?)
2)  is there any chance to get this patch upstream - I hope it could
    be useful at other sites too.


For review, the patch can be found here:

    https://keller.schlittermann.de/hg/patches/exim/file/default/src.quota-no-check


I tried to patch the original sources as sensible as possible.

Greetings from Dresden
--
Heiko :: dresden : linux : SCHLITTERMANN.de
GPG Key 48D0359B : 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B