Re: message-Id has localhost

Michael Richardson <[email protected]>
Newsgroups gmane.mail.nmh.devel
Message-ID <[email protected]>
Ken Hornstein <[email protected]> wrote:
    > That would be a nmh-style Message-ID; the first number is the process
    > id of whatever generated that (probably post(8)), the second is a Unix
    > timestamp.  Do you have -msgid set in your profile for send(1)?

Yes.
But, how to I get it to put in the hostname?
I want nmh-style message-IDs so that my outbox will have them.

    >> I think that mts.conf ought to set this, but localname/localdomain do not
    >> seem right, and they aren't set, so my hostname (which is correct, I think)
    >> ought to be used.
    >>
    >> I'm running 1.7+dev ... NOPE.
    >> I'm actually rather unsure how to get a --version out of NMH.

    > I think pretty much anything takes a -version flag?

hmm. -version/-v. not --version. not -V. Silly me.

    >> Still have @localhost in the message-id.

    > From the code, that's calling LocalName(1).

    > What that does is: getaddrinfo(gethostname(), AI_CANONNAME).  So maybe
    > your resolver library canonicalizes your hostname to "localhost"?  If
    > getaddrinfo() fails then it falls back to the value of gethostname().

yes. that's it.

127.0.0.1	localhost	obiwan.sandelman.ca obiwan

which is often required for certain things work, but I don't remember what
now.  I'll change it see what breaks.  Is there any override?
Let's see this message.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
]     [email protected]  http://www.sandelman.ca/        |   ruby on rails    [
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.