Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11]) by narn.NetBSD.org (Postfix) with ESMTP id 84F4663B11D for ; Wed, 13 Aug 2008 15:41:30 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 0) id 30FF163B165; Wed, 13 Aug 2008 15:41:30 +0000 (UTC) Received: from cvs.netbsd.org (unknown [IPv6:2001:4f8:4:7:2e0:81ff:fe25:eab4]) by mail.netbsd.org (Postfix) with ESMTP id 624AE63B10C for ; Wed, 13 Aug 2008 15:41:29 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 4C348175D0; Wed, 13 Aug 2008 15:41:29 +0000 (UTC) From: Emmanuel Dreyfus Subject: CVS commit: pkgsrc/mail/sendmail To: pkgsrc-changes@NetBSD.org Reply-To: manu@netbsd.org Message-Id: <20080813154129.4C348175D0@cvs.netbsd.org> Date: Wed, 13 Aug 2008 15:41:29 +0000 (UTC) Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes Precedence: list Module Name: pkgsrc Committed By: manu Date: Wed Aug 13 15:41:29 UTC 2008 Modified Files: pkgsrc/mail/sendmail: Makefile pkgsrc/mail/sendmail/files: site.config.m4-ldap Log Message: Enable _FFR_LDAP_NETWORK_TIMEOUT This feature adds a -c switch to LDAPMAP definitions, which can be used to specify a connection timeout (the equivalent of ldap.conf's bind_timeout) Here is an usage example, in sendmail.cf: O LDAPDefaultSpec=-w 3 -c 1 -l 3 If the server does not connect after 1 second (-c 1), we give up. If it does not anwer after 3 seconds (-l 3), we give up with a temporary failure. Using -c is the only way to avoid sendmail getting stuck against a half-dead slapd, where the TCP port is in listening state but the server will not serve anything. To generate a diff of this commit: cvs rdiff -r1.103 -r1.104 pkgsrc/mail/sendmail/Makefile cvs rdiff -r1.5 -r1.6 pkgsrc/mail/sendmail/files/site.config.m4-ldap Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.