Re: [exim] connection defer depending on load average

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Perkel
Dátum:  
Címzett: Renaud Allard
CC: exim-users, Marten Lehmann
Tárgy: Re: [exim] connection defer depending on load average


Renaud Allard wrote:
> Marten Lehmann wrote:
>
>> Hello,
>>
>> how can I defer connections (giving a 4xx error) to our smtp server depending
>> on the system load?
>>
>> I currently have an option that only queues messages instead of delivering
>> them immediately, but this causes more pain than it helps, because while
>> mailboxes exceeding their limit would just cause a 5xx error at smtp time on
>> any new message, now cause a bounce per message.
>>
>>
>
> Have a look at
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch14.html#SECID105
> More specifically: smtp_load_reserve
>


Ir's easier to just answer the question than just point someone to the docs.

defer    condition = ${if > {$load_average}{40000}{true}{false}}