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 1F6KHd-000014-TS for garchives@archives.gentoo.org; Tue, 07 Feb 2006 04:16:54 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k174FO8x009575; Tue, 7 Feb 2006 04:15:24 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k174B9d8025805 for ; Tue, 7 Feb 2006 04:11:09 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.54) id 1F6KCb-0002YB-AE for gentoo-user@lists.gentoo.org; Tue, 07 Feb 2006 04:11:41 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F6KCS-0006Gu-Ok for gentoo-user@gentoo.org; Tue, 07 Feb 2006 05:11:32 +0100 Received: from adsl-68-74-181-229.dsl.emhril.ameritech.net ([68.74.181.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Feb 2006 05:11:32 +0100 Received: from reader by adsl-68-74-181-229.dsl.emhril.ameritech.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Feb 2006 05:11:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Harry Putnam Subject: [gentoo-user] Why does sendmail think its hosts name is `localhost' Date: Mon, 06 Feb 2006 22:11:15 -0600 Organization: Still searching... Message-ID: <874q3bvme4.fsf@newsguy.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 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-68-74-181-229.dsl.emhril.ameritech.net User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:kLfpg+9vh2YtKsgabyHiePr96sI= Sender: news X-Archives-Salt: 7cd1d7cb-7edc-4821-8163-e53b405c4a8f X-Archives-Hash: 4e43ee22b47fc1c20a10b0ab6bb420d8 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 ## ============================================ 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