Hi Jared,
On Thu, 20 Jul 2006 17:00:31 +0000
Jared P Bostic <[EMAIL PROTECTED]> wrote:
> I'm setting up 0.32 behind a load balancer and noticed
> that the TCP service checks that it sends are really
> annoying to sift through in the log files. I would like to
> use fairly verbose logging for testing, but not have qpsmtpd
> constantly need to do all the connect() checks on my load
> balancer's internal IP. Does anyone have thoughts to share
> on how to just close the TCP connections from a particular
> address, without any actions, checks, or logging? Or, is
> there a better way?
If you're running -forkserver you can use the pre-connection hook and
drop the connection from the balancer with the 'hosts_allow' plugin. Put
one line in the 'hosts_allow' config file:
192.168.1.2 DENYSOFT Yes, I'm alive
with "192.168.1.2" being the IP of the balancer. This happens before the
child is forked and drops a maximum of one line to the log (with log
level == LOGDEBUG). Mabye remove the
::log(LOGDEBUG, $line);
line from sub respond_client() in qpsmtpd-forkserver if you don't need
it.
Hanno