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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Richard.Hall
Datum:  
To: exim-users
Betreff: Re: [exim] Refuse all incoming connections if load too high?
Tony,

On Sat, 7 May 2005, Tony Finch wrote:

> 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. [...] Have I missed something?
>
> I don't think so.


Good - I'm not as blind as I feared.

> You could just set the reserve hosts list to nothing,
> unless that conflicts with other requirements.


It does, unfortunately.

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


But speaking as a relic from the pre-ACL days myself, I will just note
that flexibility is often a trade-off with simplicity :-(

Thanks for your advice.

Richard