From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1F6MbG-0005qm-DN for garchives@archives.gentoo.org; Tue, 07 Feb 2006 06:45:18 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k176hilM023340; Tue, 7 Feb 2006 06:43:44 GMT Received: from spok.local.sporn-it.com (83-64-213-141.dynamic.adsl-line.inode.at [83.64.213.141]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k176b39D018899 for ; Tue, 7 Feb 2006 06:37:03 GMT Received: from localhost (spok.local.sporn-it.com [127.0.0.1]) by spok.local.sporn-it.com (Postfix) with ESMTP id 5A3BD1B77B0E3 for ; Tue, 7 Feb 2006 07:37:10 +0100 (CET) Received: from spok.local.sporn-it.com ([127.0.0.1]) by localhost (spok.local.sporn-it.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10188-02 for ; Tue, 7 Feb 2006 07:37:08 +0100 (CET) Received: from spok.local.sporn-it.com (spok.local.sporn-it.com [127.0.0.1]) by spok.local.sporn-it.com (Postfix) with ESMTP id 858041B77B0E1 for ; Tue, 7 Feb 2006 07:37:08 +0100 (CET) Subject: Re: [gentoo-user] Why does sendmail think its hosts name is `localhost' From: Heinz Sporn To: gentoo-user@lists.gentoo.org In-Reply-To: <874q3bvme4.fsf@newsguy.com> References: <874q3bvme4.fsf@newsguy.com> Content-Type: text/plain Date: Tue, 07 Feb 2006 07:37:08 +0100 Message-Id: <1139294228.9734.10.camel@spok.local.sporn-it.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at sporn-it.com X-Archives-Salt: a6e3be20-d004-4e06-932c-a0cdf28e3d47 X-Archives-Hash: 68a48f0e5da5bce40f33d173853f2a19 Am Montag, den 06.02.2006, 22:11 -0600 schrieb Harry Putnam: > Can anyone here tell me what might cause a tool like sendmail to get > the idea its hosts name is `localhost'. I don't mean the generic way > localhost is often used but as an actual host name: > > My home network is local.net0 the host sendmail runs on is reader > > Sendmail puts the righthand side of local mail as > reader@localhost.local.net0 > > and sendmail logs show `localhost' where > the host name normally is. > Feb 6 22:00:11 localhost sm-mta[10219]:[...] > > hostname and domainname return the right stuff: > hostname > reader > and > domainname > local.net0 > > But here we start to see a problem: > > hostname -f > localhost > or > hostname --long > localhost > === * === === * === === * === > > I'm really stumped on this... > I've set up the normal files for this like this: > > # /etc/conf.d/hostname > ------- 8< snip -------- > # Set to the hostname of this machine > HOSTNAME="reader" > ------- 8< snip -------- > > # /etc/conf.d/domainname > ------- 8< snip -------- > # OVERRIDE=1 > DNSDOMAIN="local.net0" > NISDOMAIN="local.net0" > ------- 8< snip -------- > > /etc/hosts: > ------- 8< snip -------- > 127.0.0.1 localhost reader Switch that to: 127.0.0.1 reader localhost and you'll be fine. > ## ============================================ > 192.168.0.4 reader.local.net0 reader # gentoo > #=========================================================== > 192.168.0.3 mob2.local.net0 mob2 # winxp (home) > [...] > ------- 8< snip -------- > > /etc/resolv.conf: > ------- 8< snip -------- > domain local.net0 > search local.net0 > nameserver 0.0.0.0 # I run my own nameserver > nameserver 192.168.0.20 > ------- 8< snip -------- > -- gentoo-user@gentoo.org mailing list