Re: [exim] Refuse all incoming connections if load too high?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tony Finch
Fecha:  
A: Richard.Hall
Cc: exim-users
Asunto: Re: [exim] Refuse all incoming connections if load too high?
On Sat, 7 May 2005, Richard.Hall wrote:
>
> I'm looking for a way to refuse (4xx) _all_ incoming connections if the
> load average is too high. I'm aware of smtp_load_reserve and
> smtp_reserve_hosts, but I want something that applies even to the reserved
> hosts. I had assumed that there would be a main configuration option for
> this, but I can't see it. Have I missed something?


I don't think so. You could just set the reserve hosts list to nothing,
unless that conflicts with other requirements. Or keep your work-around.

> At the moment I'm thinking I will have to do this with smtp_acl_connect
> and a condition test on $load_average, which I guess isn't exactly rocket
> science. But it seems odd that, with all the other main config options in
> this area, there isn't one for this? Heck, even sendmail has one!


These kinds of main configuration option are relics from the pre-ACL days.
Doing this kind of thing in the ACLs is much more flexible than having a
global option.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}