From: Heinz Sporn <heinz.sporn@sporn-it.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Why does sendmail think its hosts name is `localhost'
Date: Tue, 07 Feb 2006 07:37:08 +0100 [thread overview]
Message-ID: <1139294228.9734.10.camel@spok.local.sporn-it.com> (raw)
In-Reply-To: <874q3bvme4.fsf@newsguy.com>
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
next prev parent reply other threads:[~2006-02-07 6:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2006-02-07 10:46 ` [gentoo-user] " Harry Putnam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1139294228.9734.10.camel@spok.local.sporn-it.com \
--to=heinz.sporn@sporn-it.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox