9.21 on page 812) holds.
${client_ptr} is transient. If it is defined in the configuration file or in the command line,
that definition can be ignored by sendmail. Note that a $& prefix is necessary when you
reference this macro in rules (that is, use $&{client_ptr}, not ${client_ptr}).
21.9.24 ${client_rate}
Rate of client connections V8.13 and later
When a host connects to the listening sendmail server, the server forks a child to handle the
new connection. Before forking, the server increments the count of total inbound connections
from that particular client identified by its IP address. The rate of those connections is
then updated inside a specific window of time (defined by the ConnectionRateWindowSize
option; ?§24.9.23 on page 989), which defaults to 60 seconds.
Beginning withV8.13 sendmail, th e${client_rate} macro holds that count as its value,
making it available to use in rule sets.
Also beginning withV8.13, if you declare FEATURE(ratecontrol) (?§17.8.43 on page 638), a
rule set called RateControl will be added to your configuration file that looks up the
current IP address in the access database. The source text file for the access database may
contain that address with a literal ClientRate: prefix, as, for example:
ClientRate:123.45.67.89 4
Note that the literal prefix is followed by the IP address to be looked up, then tabs or
spaces,* and lastly by the limit to impose for the maximum connection rate for that IP
address.
Pages:
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432