Re: [exim] connection defer depending on load average

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Marc Perkel
Datum:  
To: Renaud Allard
CC: exim-users, Marten Lehmann
Betreff: 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}}