From owner-freebsd-current@FreeBSD.ORG Thu Aug 4 17:30:57 2011 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E36A106564A for ; Thu, 4 Aug 2011 17:30:57 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id B5DE28FC08 for ; Thu, 4 Aug 2011 17:30:56 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 22F272A28C30; Thu, 4 Aug 2011 19:30:56 +0200 (CEST) Date: Thu, 4 Aug 2011 19:30:56 +0200 From: Ed Schouten To: current@FreeBSD.org Message-ID: <20110804173056.GD1787@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nmemrqcdn5VTmUEE" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: nsswitch.conf <-> WITHOUT_NIS X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 17:30:57 -0000 --nmemrqcdn5VTmUEE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi folks, I just noticed cron doesn't work nicely when running a system built without NIS, since it won't allow you to send emails: | Aug 4 09:45:00 palm postfix/sendmail[12217]: fatal: www(80): No recipien= t addresses found in message header | Aug 4 10:45:00 palm postfix/sendmail[12827]: fatal: www(80): No recipien= t addresses found in message header | Aug 4 11:45:00 palm postfix/sendmail[13515]: fatal: www(80): No recipien= t addresses found in message header | Aug 4 12:45:00 palm postfix/sendmail[14786]: fatal: www(80): No recipien= t addresses found in message header | Aug 4 13:45:01 palm postfix/sendmail[15409]: fatal: www(80): No recipien= t addresses found in message header | Aug 4 14:45:00 palm postfix/sendmail[18896]: fatal: www(80): No recipien= t addresses found in message header According to various sources, this can be fixed by properly configuration your nsswitch.conf. Now my question is, how should nsswitch.conf be adjusted? The src.conf manual page says this: If set, you might need to adopt your nsswitch.conf(5) and remove =E2=80=98nis=E2=80=99 entries. That sort of seems to imply that you can just remove these lines: group_compat: nis passwd_compat: nis services_compat: nis But on the other hand, nsswitch.conf says it will default to `nis' anyway. So I suspect the lines shouldn't be removed, but changed to `files', right? Maybe we should consider modifying the configuration file accordingly? --- etc/Makefile +++ etc/Makefile @@ -256,6 +256,9 @@ distribution: ${DESTDIR}/boot/device.hints .endif .endif +.if ${MK_NIS} =3D=3D "no" + sed -i "" -e 's/nis/files/' ${DESTDIR}/etc/nsswitch.conf +.endif =20 distrib-dirs: mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p = ${DESTDIR}/ --=20 Ed Schouten WWW: http://80386.nl/ --nmemrqcdn5VTmUEE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJOOtdQAAoJEG5e2P40kaK7vsUP/ifWUpyQ3a6tjUy/G5P48qVU Jmvp07sUkDXlBIJUe2KHqw9jk/rXwn5fl2fotLFAUxAhpVloF/hRgo3jRkRihO/7 tOGw1DsBWylhLq+7fXury//yQu8LwrUaDsHgVBdDFXJ+AdzZjbHso4MYXda4kMFr VwiPndK1E42YtEfDVhhT5scNNmyDLqbibHbl4cz5/tO3iM5cCAGAYtrjqqvuuPLl IeNxlaodgvtkm27/h8uZp176IABdtQ+5sBixt9kMaHccKTa1zZa4aV/AJ+5HU5mi qzuDNeERzyxDaSCkeDSeDAXKk+0sNYMCITFzIGZLzdGOkd+d4tm1p/v5Pw6Y5Wfa eERTZUlVmmiL7vqbqMkIuDeW5Kmbl5bp2ASzmv18AuKd0oFkuhr9uT+F1d2K2ho3 l6FexC8TmSGiM7n6LphhSGQQFGKC1g9PqWIxg1AVofagxRB9AmDDhlG4J81BcmIh qKYgqOFj9dYFOTBCK8MNntXe/ncdiqvCXIepquuEIbuQMluxBtP7aW07Q5G0s/6h evHdUWvooe9I1m6nIViM2Jt9ebEZBxX3IjigKRmF89nf8KDyaZoGVhMsItEy88Rj HKj2Jx5qypfeGq7m7Fb/g1rvMpedJcVDYqybGM2I1I3S17U/SmpfUgkWb+U35w9D qbzbUrkme8JqdY8x5yA3 =T5OO -----END PGP SIGNATURE----- --nmemrqcdn5VTmUEE--