From owner-freebsd-stable@FreeBSD.ORG Wed Jan 13 11:32:32 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4150C106566B for ; Wed, 13 Jan 2010 11:32:32 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 941508FC1C for ; Wed, 13 Jan 2010 11:32:31 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.3) with ESMTP id o0DBWNvI080645; Wed, 13 Jan 2010 11:32:24 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o0DBWNvI080645 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1263382345; bh=D6dAMtnCpuFNHcim66xsJJmzYuoXDf9Xnicg9Q1IElk=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B4DAF41.5090903@infracaninophile.co.uk>|Date:=20W ed,=2013=20Jan=202010=2011:32:17=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20091129)|MIME-Vers ion:=201.0|To:=20"S.N.Grigoriev"=20|C C:=20stable@freebsd.org|Subject:=20Re:=20sendmail=20replacement|Re ferences:=20<661263379937@webmail51.yandex.ru>|In-Reply-To:=20<661 263379937@webmail51.yandex.ru>|X-Enigmail-Version:=200.95.6|Conten t-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20pro tocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"------- -----enigA4770CAD8FEA7BC309CA4437"; b=olLrRqeBJB7l2gelQB1wpV62SMjgysZmfVXDP837dc3s8jfoDTyLmFlX7mH3NjOae AXTdmHgjxuyVlfYWf7pOG92DihyJb53dkCTTp5aSjU+KciQsbmh4Jgj2w1rnwinXRK Owb0Eknr0ndFb8PQ39kTD1HQLvDbuSImgCBZ5lXk= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B4DAF41.5090903@infracaninophile.co.uk> Date: Wed, 13 Jan 2010 11:32:17 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20091129) MIME-Version: 1.0 To: "S.N.Grigoriev" References: <661263379937@webmail51.yandex.ru> In-Reply-To: <661263379937@webmail51.yandex.ru> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigA4770CAD8FEA7BC309CA4437" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: stable@freebsd.org Subject: Re: sendmail replacement X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2010 11:32:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA4770CAD8FEA7BC309CA4437 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable S.N.Grigoriev wrote: > I would like to know if there is a way to completely > replace the base sendmail with a ports one. The goal > is to have corresponding files on the traditional places > (not in /usr/local) and to use the system sendmail > startup script but not /usr/local/etc/rc.d/sendmail.sh. That's not the usual approach with sendmail, unlike several other softwar= e packages. Because of the existence of mailer.conf(5) you can achieve equivalent=20 functionality without overwriting the base system sendmail. With the following contents: % cat /etc/mail/mailer.conf=20 # $FreeBSD: src/etc/mail/mailer.conf,v 1.3.36.1 2009/08/03 08:13:06 kensm= ith Exp $ # # Execute the "real" sendmail program, named /usr/libexec/sendmail/sendma= il # sendmail /usr/local/sbin/sendmail send-mail /usr/local/sbin/sendmail mailq /usr/local/sbin/sendmail newaliases /usr/local/sbin/sendmail hoststat /usr/local/sbin/sendmail purgestat /usr/local/sbin/sendmail all sendmail related commands are mapped onto the ports version of sendma= il, installed under LOCALBASE=3D/usr/local as usual. These commands are in f= act=20 exactly the same wrapper scripts as used with the system sendmail. With t= his=20 setup it is not necessary to use the init script provided by the sendmail= port:=20 simply adding sendmail_enable=3D"YES" to /etc/rc.conf will now cause the ports version of sendmail to be starte= d=20 using /etc/rc.d/sendmail. In addition, the following entries in /etc/mak= e.conf=20 will allow rebuild sendmail configurations and db maps using the Makefile= in=20 /etc/mail: WITH_SENDMAIL_PORT=3D yes SENDMAIL_CF_DIR=3D /usr/local/share/sendmail/cf MAKEMAP=3D /usr/local/sbin/makemap Finally, adding=20 WITHOUT_SENDMAIL=3Dyes=20 to /etc/src.conf will suppress building sendmail as part of the base syst= em, while still building and installing the mailwrapper commands. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigA4770CAD8FEA7BC309CA4437 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAktNr0cACgkQ8Mjk52CukIyc6wCgkDztCl8F1RqxYcMgqzM6P1uA P30AnjWbKtn5+YlbmKPiGq4dXXtmOEPX =MzRD -----END PGP SIGNATURE----- --------------enigA4770CAD8FEA7BC309CA4437--