Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2007 22:46:56 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Firas Kraiem <fkraiem@enib.fr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sendmail and hostname
Message-ID:  <20070403204656.GB9413@slackbox.xs4all.nl>
In-Reply-To: <200704032229.44098.fkraiem@enib.fr>
References:  <200704032229.44098.fkraiem@enib.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

--z6Eq5LdranGa6ru8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 03, 2007 at 10:29:36PM +0200, Firas Kraiem wrote:
> Greetings
>=20
> I get this message when booting my FBSD home webserver :
>=20
>      Apr  3 22:23:55 alice sm-mta[509]: My unqualified host name (alice)
>      unknown; sleeping for retry
>=20
> From what I've understood after a bit of searching, the answer lies proba=
bly=20
> in the /etc/hosts file. So here goes :
>=20
>      127.0.0.1               localhost alice
>      192.168.1.2             alice

The hostname "alice" should have a domain part. And it should match the
hostname that is set in /etc/rc.conf. E.g, if /etc/rc.conf says

hostname=3D"alice.home.net"

then /etc hosts should have

::1  	  	localhost localhost.home.net
127.0.0.1	localhost localhost.home.net
192.168.1.2	alice alice.home.net


HTH, Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--z6Eq5LdranGa6ru8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQFGEr1AEnfvsMMhpyURAh6YAJ9quNCCDZGU0MkubyA5tc1SMO+kCwCfdat9
8ZV2JkO0R75QT6Fepam27p8=
=z6AQ
-----END PGP SIGNATURE-----

--z6Eq5LdranGa6ru8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070403204656.GB9413>