Re: [exim] String expansion in smtp_accept_max_per_connectio…

Top Pagina
Delete this message
Reply to this message
Auteur: Phil Pennock
Datum:  
Aan: exim-users
Onderwerp: Re: [exim] String expansion in smtp_accept_max_per_connection?
On 2011-05-12 at 22:28 +1000, Ted Cooper wrote:
> On 12/05/11 19:02, Phil Pennock wrote:
> > On 2011-05-11 at 14:55 -0700, carbonated beverage wrote:
> >> I saw the smtp_accept_max_per_connection variable is not subject to


> > Use ACLs; set a counter in the connect ACL in an $acl_c_foo variable,


> The $acl_c_foo values are only valid for the single connection, they are
> not shared between connects from the same IP address and as such can't
> be used as an alternative to an expandable smtp_accept_max_per_connection.


"smtp_accept_max_per_connection" is how many messages are received in a
single connection, so varying it based on source IP and controlling it
within a single connection should be entirely doable with $acl_c_foo.

Now, implementing "smtp_accept_max_per_host" would require an external
service of some kind, yes.

It might well be better to plan to limit that too and design for your
approach from the beginning. (But I don't see the flaw in what I said).

-Phil