Re: [exim] Connection limiting in general and per host

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] Connection limiting in general and per host
On 23/10/2021 02:58, AC via Exim-users wrote:
> I currently have smtp_accept_max_per_connection configured to reduce the number of connections bots can make to the server.


The docs say
"the number of MAIL commands that Exim is prepared to accept over a single SMTP connection"

which is not what you want.

>  However, for some internal hosts I'd like to override that so the internal hosts can send more messages in a single connection.  I see that there's a setting smtp_accept_max_per_host


Which is what you want.

> that I could potentially use but it's not clear how to use that with some kind of fallback for hosts outside of my network.  I'd really only need two values, one for the inside network (unlimited or very large) and one for the outside world


smtp_accept_max_per_host is expanded, so you can make it depend
on $sender_host_address. Write an expansion which results in two
numbers, testing against the CIDR for your internal net.

--
Cheers,
Jeremy