RE: [Exim] quota_warn_threshold specifics

Góra strony
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Dla: Eli
CC: exim-users
Temat: RE: [Exim] quota_warn_threshold specifics
On Wed, 23 Jun 2004, Eli wrote:

> I guess you could do some trickery and rather than using the "quota"
> variable to hold the users actual quota, use it to call a program to compute
> the used disk space and compare against their actual quota, and if they are
> over their quota, report a number less than the incoming message thus having
> Exim think they're over their quota and reject the message - BUT Exim would
> still go out and do it's own FS check to find out how much space is
> currently used would it not?


Yes, but you could do the whole thing without using "quota" at all. Just
use a "condition" option on a redirect router that defers delivery if
the quota is exceeded. It can have the quota screwed into the condition,
or looked up from somewhere, and the disk usage obtained as previously
discussed.

True, this won't be deferred with the "quota exceeded" error, so a
special retry won't be possible. But you could do your own "fail",
conditional upon the value of $message_age if you wanted.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book