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}}
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/