From owner-freebsd-stable@FreeBSD.ORG Fri Mar 5 06:47:26 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67C6F16A4CE for ; Fri, 5 Mar 2004 06:47:26 -0800 (PST) Received: from lakemtao03.cox.net (lakemtao03.cox.net [68.1.17.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id E43DA43D31 for ; Fri, 5 Mar 2004 06:47:25 -0800 (PST) (envelope-from A.J.Caines@halplant.com) Received: from mail.halplant.com ([68.100.162.49]) by lakemtao03.cox.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with ESMTP id <20040305144725.GGQA29592.lakemtao03.cox.net@mail.halplant.com> for ; Fri, 5 Mar 2004 09:47:25 -0500 Received: by mail.halplant.com (Postfix, from userid 1001) id ADEEFC; Fri, 5 Mar 2004 09:47:23 -0500 (EST) Date: Fri, 5 Mar 2004 09:47:22 -0500 From: Andrew J Caines To: stable@freebsd.org Message-ID: <20040305144722.GE24101@hal9000.halplant.com> Mail-Followup-To: stable@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: H.A.L. Plant X-PGP-Fingerprint: C59A 2F74 1139 9432 B457 0B61 DDF2 AA61 67C3 18A1 X-Powered-by: FreeBSD 4.9-STABLE X-URL: http://halplant.com:88/ X-Yahoo-Profile: AJ_Z0 X-ICQ: 283813972 Importance: Normal User-Agent: Mutt/1.5.6i Subject: Re: Postfix install on 4.9 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrew J Caines List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 14:47:26 -0000 Wolfgang, > First, I installed djbdns and qmail, and now, I would like to install > postfix but it doesn't compile. You are aware that Qmail and Postfix both provide the same mail functions, right? While it's possible to use parts of one with the other, it's normally a choice between one or the other. Of course trying both and choosing the one which suits your needs and preferences is the best answer to the question of which is "best". > "[$i]"; cd $i; make 'CC=cc -DUSE_SASL_AUTH -I/usr/local/include ... > /usr/libexec/elf/ld: cannot find -lkrb The build is looking for Kerberos libraries and not finding them. What's not so obvious is that it's looking for Kerberos because of SASL. If you're not going to use SASL, then don't choose it in the menu you get when you build Postfix; similarly with the other options. If you do want SASL and you do want your SASL to use Kerberos, then you need to set SASLKRB in your POSTFIX_OPTIONS. If you want SASL but nor Kerberos, then you'll probably need to define WITHOUT_GSSAPI in your cyrus-sasl2 build. The postfix port is a little unusual in that instead of a series of WITH_FOO variables to select optional components, the variable POSTFIX_OPTIONS contains that list. See the file scripts/configure.postfix in the port. You can make your POSTFIX_OPTIONS permanent by putting it in make.conf, or better in pkgtools.conf for portupgrade, eg. ----8<---- MAKE_ARGS = { 'security/cyrus-sasl2' => '-DWITHOUT_GSSAPI -DWITH_DEV_URANDOM', 'mail/postfix' => '-DBATCH POSTFIX_OPTIONS="SASL2"' } ----8<---- This will (should) build cyrus-sasl2 without Kerberos, skip the menu by setting "BATCH" and chooses to use Cyrus SASLv2 for postfix. Please lose the footer when publishing to a public mailing list. -Andrew- -- _______________________________________________________________________ | -Andrew J. Caines- Unix Systems Engineer A.J.Caines@halplant.com | | "They that can give up essential liberty to obtain a little temporary | | safety deserve neither liberty nor safety" - Benjamin Franklin, 1759 |