Mailing List Archive

[Bug 2668] Feature request: Allow smtp_load_reserve to accept expansions
https://bugs.exim.org/show_bug.cgi?id=2668

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX

--- Comment #1 from Jeremy Harris <jgh146exb@wizmail.org> ---
The option refuses the SMTP connection before the client can send any SMTP
commands, inclusing doing SMTP authentication. The attempted expansion would
always return "15.0".

You'll need to write an explicit test in an ACL; MAIL or later.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2668] Feature request: Allow smtp_load_reserve to accept expansions [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2668

--- Comment #2 from David Anderson <bugs.exim.org@dw-perspective.org.uk> ---
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.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##