public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  Why does sendmail think its hosts name is `localhost'
@ 2006-02-07  4:11 Harry Putnam
  2006-02-07  6:37 ` Heinz Sporn
  0 siblings, 1 reply; 3+ messages in thread
From: Harry Putnam @ 2006-02-07  4:11 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-07 10:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-07  4:11 [gentoo-user] Why does sendmail think its hosts name is `localhost' Harry Putnam
2006-02-07  6:37 ` Heinz Sporn
2006-02-07 10:46   ` [gentoo-user] " Harry Putnam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox