Re: [Exim] quotas on non-appendfile transports

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Christian G. Warden
CC: exim-users
Betreff: Re: [Exim] quotas on non-appendfile transports
On Fri, 25 Jul 2003, Christian G. Warden wrote:

> Thanks, but I think the check needs to be in the transport because the
> routers check the conditions before expanding the data.


Does the message_size_limit for transports help?

> deliver_to_user:
> driver = pipe
> command = deliver -u ${substr_-1:${substr_1:$address_file}}
> # enforce quota. expansion is forced to fail if quota is exceeded
> # so that delivery is deferred rather than failed.
> message_size_limit = ${lookup mysql{SELECT ...}{0}fail}


Ah, I see you have found it already.

Er, so what was the question again? .... ah yes, you wanted to do quota
warning stuff. I'm afraid I can't see an easy way of handling that.

There may be fudges. For example, you could vary the command that is
obeyed, depending on the value of $message_size. If the message is too
big, pipe it to a script that generates the warning message.


--
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