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 [EMAIL PROTECTED] 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