Prev | Current Page 1079 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

9.23 on page 989), which defaults to 60 seconds.
So, for example, if you want to reject a host that has more than 10 simultaneous connections
to your server (sometime in the past 60 seconds), where that host has the IP address
192.168.23.45, you would put the following into your access database source file:
ClientRate:192.168.23.45 10
Here, if the host with the IP address 192.168.23.45 tries to set up an 11thsimultaneous
connection to your server, that connection will be denied.
You enable FEATURE(conncontrol) like this:
FEATURE(`conncontrol??)
But note, if you have not already declared the access database (?§7.5 on page 277), you must
do so before declaring this new feature, or you will get the following error when building
your new configuration file:
*** ERROR: FEATURE(conncontrol) requires FEATURE(access_db)
* This feature limits per connecting host, whereas the FEATURE(ratecontrol) (?§17.8.43 on page 638) limits all
simultaneous connections.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
620 | Chapter 17: Configure sendmail.cf with m4
Once you have successfully enabled this FEATURE(conncontrol), you may use it to control
the number of simultaneous connections, based on IP addresses of hosts or networks, or to
set the default limit:
ClientRate:192.


Pages:
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091
dieta light pozycjonowanie kancelaria notarialna Warszawa śmieszne dowcipy Tango Olsztyn