Re: [exim] ACL to drop connectio

Góra strony
Delete this message
Reply to this message
Autor: W B Hacker
Data:  
Dla: exim users
Temat: Re: [exim] ACL to drop connectio
Graeme Fowler wrote:
> On Fri, 2010-06-11 at 12:30 -0400, W B Hacker wrote:
>> YMMV, but the built-in limits work really well here.
>
> ...so explaining them would be useful, would it not?
>
> J-P, what you're looking for is the global option:
>
> smtp_accept_max_per_host
>
> We use it like this:
>
> smtp_accept_max_per_host       = ${if \
>                                      match_ip\
>                                         {$sender_host_address}\
>                                         {+priority_hosts}\
>                                      {0}\
>                                      {2}\
>                                    }

>
> What that says is: if the connecting IP is in the hostlist
> "priority_hosts", let them connect unlimited times simultaneously; every
> other host can connect a maximum of 2 simultaneous SMTP sessions.
>
> It's not an ACL option.
>
> Graeme
>
>


That's quite elegant! (Given one understands '0' means 'infinity' here)

But is it 'cheap'?

Bill