From owner-freebsd-questions@FreeBSD.ORG Sun Oct 17 11:24:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0533F16A4D2 for ; Sun, 17 Oct 2004 11:24:05 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C46D43D66 for ; Sun, 17 Oct 2004 11:24:04 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i9HBNxp6009707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 17 Oct 2004 12:23:59 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i9HBNxEn009706; Sun, 17 Oct 2004 12:23:59 +0100 (BST) (envelope-from matthew) Date: Sun, 17 Oct 2004 12:23:59 +0100 From: Matthew Seaman To: Lewis Thompson Message-ID: <20041017112359.GC9251@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Lewis Thompson , questions@freebsd.org References: <20041017102035.GA93366@mrtall.compsoc.man.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mvpLiMfbWzRoNl4x" Content-Disposition: inline In-Reply-To: <20041017102035.GA93366@mrtall.compsoc.man.ac.uk> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 17 Oct 2004 12:23:59 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.0.0 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on happy-idiot-talk.infracaninophile.co.uk cc: questions@freebsd.org Subject: Re: World sendmail and LDAP. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2004 11:24:05 -0000 --mvpLiMfbWzRoNl4x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 17, 2004 at 11:20:35AM +0100, Lewis Thompson wrote: > I'm just wondering if anybody can tell me how I can build sendmail from > world with LDAP support. I currently have SASL support enabled in > make.conf (copied examples from defaults/make.conf) and hoped it might > be possible to do the same for LDAP. Can anybody tell me if this is the > case? Thanks, This is certainly possible, or, at least by my reading of various files, it should be possible. See the mail/sendmail port -- particularly files/site.config.m4.ldap and Makefile for details. I think that what you need to do is: - install one of the net/openldap2{2,1}-{sasl-,}client ports according to taste - edit the /etc/make.conf settings and append: '-I/usr/local/include -DLDAPMAP' to SENDMAIL_CFLAGS '-L/usr/local/lib' to SENDMAIL_LDFLAGS (if it isn't there already) '-lldap -llber' to SENDMAIL_LDADD Then recompile and reinstall sendmail. There's plenty in /usr/share/sendmail/cf/README on how to configure sendmail to use its LDAP support once it has it. I think, but I'm not at all sure, that you should configure sendmail with both SASL and LDAP support for best results. I'd be interested in hearing how you get on with this -- plus it would probably be a good note to add to the default make.conf file. Alternatively, you can just install the mail/sendmail-ldap port. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --mvpLiMfbWzRoNl4x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBclZPiD657aJF7eIRAsNAAKCKL2i8bY+7T7yEEaDHJZWDptcQ+QCeJoCx +Z/vstfplvXVFPJa8FRllZc= =z16v -----END PGP SIGNATURE----- --mvpLiMfbWzRoNl4x--