From owner-freebsd-questions Fri Aug 2 11:23:38 2002 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 080BB37B408 for ; Fri, 2 Aug 2002 11:23:29 -0700 (PDT) Received: from enterprise.francisscott.net (enterprise.francisscott.net [64.81.95.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id A474143E3B for ; Fri, 2 Aug 2002 11:23:28 -0700 (PDT) (envelope-from scott@lampert.org) Received: from cobalt.heavymetal.org (cobalt.heavymetal.org [64.81.95.242]) by enterprise.francisscott.net (Postfix) with ESMTP id 65AF457F7; Fri, 2 Aug 2002 11:23:28 -0700 (PDT) Received: by cobalt.heavymetal.org (Postfix, from userid 1001) id B0D0E3170; Fri, 2 Aug 2002 11:23:27 -0700 (PDT) Date: Fri, 2 Aug 2002 11:23:27 -0700 From: Scott Lampert To: Toomas Aas Cc: freebsd-questions@freebsd.org Subject: Re: Starting postfix on 4.6 Message-ID: <20020802182327.GA73022@cobalt.heavymetal.org> References: <200208021812.g72IC1V02670@lv.raad.tartu.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208021812.g72IC1V02670@lv.raad.tartu.ee> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Aug 02, 2002 at 09:10:58PM +0300, Toomas Aas wrote: > From: "Toomas Aas" > To: freebsd-questions@freebsd.org > Date: Fri, 2 Aug 2002 21:10:58 +0300 > Subject: Starting postfix on 4.6 > > Hello! > > The new Sendmail startup mechanism on 4.6 requires that people using > MTAs other than Sendmail specify the startup script with > mta_start_script variable in rc.conf. I'm using an old(ish) version > of Postfix, installed from ports in July 2001 and I can't figure out > what the value of mta_start_script should be. As a wild guess, I > tried "/usr/local/sbin/postfix" and "/usr/local/sbin/postfix start", > but it didn't work (error messages on bootup scroll off the screen so > fast I can't read them and they don't seem to get logged anywhere). > > As a workaround, I created an /usr/local/etc/rc.d/postfix.sh script > which works OK, but it seems kind of inelegant. You should read /usr/ports/mail/postfix/pkg-message. This file is displayed if you install or upgrade a more recent version of Postfix. Be sure to cvsup your ports tree if you haven't in a long time or that file may not exist. One caveat with the procedure mentioned in there, however, is that if you compile Postfix with MySQL support, you cannot load the resulting Postfix the way those instructions suggest. The issue is that the MySQL library path isn't merged in until the scripts in /usr/local/etc/rc.d are loaded. In that case you can either write your own rc.postfix script that handles this case or just do: ln -s /usr/local/sbin/postfix /etc/postfix.sh -Scott -- Scott Lampert "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, 1759 Public Key: http://www.lampert.org/lampert.key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message