From owner-freebsd-ports Wed Jan 2 12:40:12 2002 Delivered-To: freebsd-ports@freebsd.org Received: from pr0n.kutulu.org (pr0n.kutulu.org [151.196.107.157]) by hub.freebsd.org (Postfix) with ESMTP id DFDA737B416 for ; Wed, 2 Jan 2002 12:40:06 -0800 (PST) Received: by pr0n.kutulu.org (Postfix, from userid 1000) id 4ED8752; Wed, 2 Jan 2002 15:42:12 -0500 (EST) Date: Wed, 2 Jan 2002 15:42:12 -0500 From: Kutulu To: Doug Silver Cc: freebsd-ports@FreeBSD.ORG Subject: Re: Sendmail port vs default sendmail (/usr/src)? Message-ID: <20020102154212.A1282@pr0n.kutulu.org> Mail-Followup-To: Doug Silver , freebsd-ports@FreeBSD.ORG References: <200201021953.g02Jr3O93839@onceler.kciLink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from dsilver@quantified.com on Wed, Jan 02, 2002 at 12:28:04PM -0800 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jan 02, 2002 at 12:28:04PM -0800, Doug Silver wrote: > If using the ports is preferred, why isn't a startup script included in > /usr/local/etc/rc script for the sendmail port to use? Because sendmail startup support is in the base system, there's no need to put a startup script in. Sendmail, in fact, is a special case, in that there is *a lot* of support in the base system for replacing it with a new version and/or totally different MTA. If you want to do this, here's the "proper" way. I say proper only because this is how the install documentation for postfix instruct one to replace sendmail with postfix, and I assume the same applies to replacing base sendmail with a ports sendmail: 1. Install sendmail from ports as normal. 2. Edit /etc/mail/mailer.conf * Replace each instance of the base sendmail path with the pathname to the new sendmail binary. 3. Optional but recommended: Edit /etc/make.conf and add: NO_SENDMAIL= true The various mail programs (like mailq and newaliases and even sendmail itself) are just links to mailwrapper(8), which reads /etc/mail/mailer.conf to determine what program to run for a given function. Read the man pages to mailer.conf(5) and mailwrapper(8) for more details, but overall it's a very clean way to replace the system MTA with very little collateral damage. --K To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message