Re: [exim] too many connections from that IP address

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Vincent Stemen
Data:  
Para: exim-users
Asunto: Re: [exim] too many connections from that IP address
On Tue, Apr 01, 2008 at 08:01:21AM +0900, Randy Bush wrote:
> my base server's exim is being rude to my home gateway
>
> 2008-03-31 22:57:12 Connection from [210.138.216.50] refused: too many
> connections from that IP address
> 2008-03-31 22:57:16 Connection from [210.138.216.50] refused: too many
> connections from that IP address
>
> of course, i am the cause
>
> smtp_accept_max = 100
> smtp_accept_max_per_connection = 12
> smtp_accept_max_per_host = 4
>
> but i need that to cut down the massive assaults.
>
> is there a config knob to have an exception list to the throttle?
>
> ( yes, i should write less email. try telling that to my wife :)
>
> randy


Hi Randy.

I do it with smtp_accept_max_per_host like this

# Restrict the number of simultaneous IP connections from a single
# host (strictly, from a single IP address). Limits for given ip
# addresses are defined in /etc/exim/max-per-host.

smtp_accept_max_per_host = ${lookup{$sender_host_address} iplsearch{/etc/exim/max-per-host}}


And then in the max-per-host file,

# Maximum number of simultaneous connections per host

# IP address/mask max connections

  127.0.0.1           20


  # default
  0.0.0.0/0           2


  # Our IP address
  # Replace the x's with your IP address
  xx.xxx.xx.xxx       20