From owner-freebsd-questions@FreeBSD.ORG Sun Oct 15 20:07:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5FA3216A412 for ; Sun, 15 Oct 2006 20:07:12 +0000 (UTC) (envelope-from jonathan@hst.org.za) Received: from ctb-mesg5.saix.net (ctb-mesg5.saix.net [196.25.240.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBFA543D78 for ; Sun, 15 Oct 2006 20:07:10 +0000 (GMT) (envelope-from jonathan@hst.org.za) Received: from [172.16.0.1] (dsl-145-108-198.telkomadsl.co.za [165.145.108.198]) by ctb-mesg5.saix.net (Postfix) with ESMTP id C2ADC2D18 for ; Sun, 15 Oct 2006 22:07:20 +0200 (SAST) From: Jonathan McKeown To: freebsd-questions@freebsd.org Date: Sun, 15 Oct 2006 22:19:47 +0200 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610152219.47346.jonathan@hst.org.za> Subject: mimedefang with LDAP-enabled sendmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2006 20:07:12 -0000 I'm hoping someone can point me in the right direction. I'm running 6.1 (the security branch) with a recently-updated ports tree (1 September). I have modified /etc/make.conf to change the options for the system sendmail, by adding these lines: SENDMAIL_CFLAGS = -I/usr/local/include -DSASL=2 -DLDAPMAP SENDMAIL_LDFLAGS = -L/usr/local/lib SENDMAIL_LDADD = -lsasl2 -lldap -llber I have added the necessary ports and rebuilt world: when I run ldd /usr/libexec/sendmail/sendmail, I get libutil.so.5 => /lib/libutil.so.5 (0x28107000) libwrap.so.4 => /usr/lib/libwrap.so.4 (0x28113000) libssl.so.4 => /usr/lib/libssl.so.4 (0x2811a000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x28148000) libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0x2823a000) libldap-2.3.so.2 => /usr/local/lib/libldap-2.3.so.2 (0x2824f000) liblber-2.3.so.2 => /usr/local/lib/liblber-2.3.so.2 (0x2827f000) libc.so.6 => /lib/libc.so.6 (0x2828a000) and sendmail -d0.1 -bt