* [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
* Re: [gentoo-user] Why does sendmail think its hosts name is `localhost'
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
0 siblings, 1 reply; 3+ messages in thread
From: Heinz Sporn @ 2006-02-07 6:37 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-user] Re: Why does sendmail think its hosts name is `localhost'
2006-02-07 6:37 ` Heinz Sporn
@ 2006-02-07 10:46 ` Harry Putnam
0 siblings, 0 replies; 3+ messages in thread
From: Harry Putnam @ 2006-02-07 10:46 UTC (permalink / raw
To: gentoo-user
Heinz Sporn <heinz.sporn@sporn-it.com> writes:
>> /etc/hosts:
>> ------- 8< snip --------
>> 127.0.0.1 localhost reader
>
> Switch that to: 127.0.0.1 reader localhost
> and you'll be fine.
Hoohaa yes yes. That did it. I can say with assurance though since
I keep nearly all config files under cvs control: That has been just
like posted thru several installs, rebuilds etc and did not cause this
problem before.
I thought that statement was true but I did look at some older
versions from cvs and see that yes, it was just like I posted here.
But sendmail showed the right name in rhside of local messages.
Soooo, I'm wondering if there have been small changes in sendmail
since my last big install that might cause this.. but not interested
enough to track down the exact changes and probably wouldn't
understand what they did anyway.
I'm just happy to have a host name again. It wasn't actually causing
a problem... mail sending and receiving with sendmail worked. It just
keep making me think I would have some kind of problem eventually.
--
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