I want to ask something about the ratelimit feature, cause I didnt find anything at the web of how it works.
at the top are these lines
acl_smtp_notquit = acl_notquit
acl_smtp_connect = acl_connect
and at ACL section is:
acl_connect:
# ignore pop before smtp
accept condition = ${if match_ip{$sender_host_address}{iplsearch;/etc/relayhost
s}{1}{${if eq{$sender_host_address}{127.0.0.1}{1}{0}}}}
accept hosts = +relay_hosts
#only rate limit port 25
accept condition = ${if eq {$interface_port}{25}{no}{yes}}
defer
message = The server has reached its limit for processing requests from your
host. Please try again later.
log_message = Host is ratelimited
ratelimit = 1 / 2h / per_conn / noupdate
accept
# do not change the comment in the line below, it is required for /usr/local/cpa
nel/bin/check_exim_config
#acl_smtp_notquit is required for this to work (exim 4.68)
acl_notquit:
# ignore authenticated hosts
accept authenticated = *
# ignore pop before smtp
accept condition = ${if match_ip{$sender_host_address}{iplsearch;/etc/relayhost
s}{1}{${if eq{$sender_host_address}{127.0.0.1}{1}{0}}}}
accept hosts = +relay_hosts
#only rate limit port 25
accept condition = ${if eq {$interface_port}{25}{no}{yes}}
warn condition = ${if match {$smtp_notquit_reason}{command}{yes}{no}}
logwrite = Host Ratelimited: ${sender_host_address}: $smtp_notquit_reason
ratelimit = 1 / 2h / per_conn
I want to know how the rule works and what ratelimit = 1 / 2h / per_conn / noupdate and ratelimit = 1 / 2h / per_conn means.
These values are fine for normal use? Could I have some problems with ratelimit?¿



LinkBack URL
About LinkBacks
Reply With Quote






