Date: Wed, 13 Jan 2010 11:32:17 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "S.N.Grigoriev" <serguey-grigoriev@yandex.ru> Cc: stable@freebsd.org Subject: Re: sendmail replacement Message-ID: <4B4DAF41.5090903@infracaninophile.co.uk> In-Reply-To: <661263379937@webmail51.yandex.ru> References: <661263379937@webmail51.yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B4DAF41.5090903>