[exim-dev] [Bug 2668] Feature request: Allow smtp_load_reser…

Top Pagina
Delete this message
Reply to this message
Auteur: admin
Datum:  
Aan: exim-dev
Onderwerp: [exim-dev] [Bug 2668] Feature request: Allow smtp_load_reserve to accept expansions
https://bugs.exim.org/show_bug.cgi?id=2668

--- Comment #2 from David Anderson <bugs.exim.org@???> ---
Ah yes. I started on the idea of making it depend on the TCP port, and then
lost my bearings....

For anyone else who wants to do this, here's how it's done with an ACL:

# Only hosts in "smtp_reserve_hosts" can connect above this value
smtp_load_reserve = 15.0

check_smtp_mail:

# ...

# Forbid non-authenticated senders above this load (multiplication factor 1000)
defer condition = ${if and { {>={$load_average}{9000}}
{eq{$authenticated_id}{}}}}
      message = Load too high - please retry later


--
You are receiving this mail because:
You are on the CC list for the bug.