From owner-freebsd-questions@FreeBSD.ORG Fri Jan 23 10:27:57 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 7C4A916A4CE for ; Fri, 23 Jan 2004 10:27:57 -0800 (PST) Received: from smtp03.mrf.mail.rcn.net (smtp03.mrf.mail.rcn.net [207.172.4.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEFCD43D46 for ; Fri, 23 Jan 2004 10:27:55 -0800 (PST) (envelope-from roberthuff@rcn.com) Received: from 209-6-197-67.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.197.67] helo=jerusalem.litteratus.org.litteratus.org) by smtp03.mrf.mail.rcn.net with esmtp (Exim 3.35 #4) id 1Ak626-0007l7-00 for questions@freebsd.org; Fri, 23 Jan 2004 13:27:54 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16401.26534.493998.218627@jerusalem.litteratus.org> Date: Fri, 23 Jan 2004 13:27:50 -0500 To: questions@freebsd.org In-Reply-To: <20040122120933.GD42056@happy-idiot-talk.infracaninophile.co.uk> References: <20040122120933.GD42056@happy-idiot-talk.infracaninophile.co.uk> X-Mailer: VM 7.14 under 21.5 (beta15) "celery" XEmacs Lucid Subject: sendmail + sasl 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: Fri, 23 Jan 2004 18:27:57 -0000 Matthew Seaman writes: > You don't mention SASL (Simple Authentication and Security Layer) -- > by default, the sendmail on FreeBSD doesn't contain any SASL > functionality, but you will need to add it in order to use > authentication. > > First install the security/cyrus-sasl2 port. Then edit your > /etc/make.conf to change the sendmail(8) compilation to include > linking in the SASL libraries: > > SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 > SENDMAIL_LDFLAGS=-L/usr/local/lib > SENDMAIL_LDADD=-lsasl2 Did this. > Then rebuild and re-install sendmail from the system sources. Easiest > way to do that is to do a complete 'make buildworld, make > installworld' cycle as documented in the handbook. Then you need to > add the SASL options to your sendmail configuration, as you have done. > > There are some more detailed instructions here: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html Followed these instructions, had libmilter break thus: ln -sf /usr/src/lib/libmilter/../../contrib/sendmail/include/sm/os/sm_os_freebsd.h sm_os.h cc -O -pipe -mcpu=pentiumpro -I/usr/src/lib/libmilter/../../contrib/sendmail/src -I/usr/src/lib/libmilter/../../contrib/sendmail/include -I. -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_THREAD_SAFE 3D-I/usr/local/include -DSASL=3D2 -c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/main.c cc: 3D-I/usr/local/include: No such file or directory In file included from /usr/src/contrib/sendmail/include/sendmail/sendmail.h:24, from /usr/src/contrib/sendmail/src/sendmail.h:40, from /usr/src/contrib/sendmail/libmilter/libmilter.h:31, from /usr/src/contrib/sendmail/libmilter/main.c:15: /usr/src/contrib/sendmail/src/conf.h:129:5: invalid suffix "D2" on integer constant In file included from /usr/src/contrib/sendmail/libmilter/libmilter.h:31, from /usr/src/contrib/sendmail/libmilter/main.c:15: /usr/src/contrib/sendmail/src/sendmail.h:126:5: invalid suffix "D2" on integer constant /usr/src/contrib/sendmail/src/sendmail.h:542:5: invalid suffix "D2" on integer constant /usr/src/contrib/sendmail/src/sendmail.h:665:5: invalid suffix "D2" on integer constant /usr/src/contrib/sendmail/src/sendmail.h:1647:6: invalid suffix "D2" on integer constant /usr/src/contrib/sendmail/src/sendmail.h:2012:5: invalid suffix "D2" on integer constant /usr/src/contrib/sendmail/src/sendmail.h:2359:5: invalid suffix "D2" on integer constant *** Error code 1 Stop in /usr/src/lib/libmilter. I'm running: FreeBSD 5.1-CURRENT #0: Tue Oct 21 23:17:38 EDT 2003 with the source tree updated to 00:01 today. Robert Huff