Re: message-Id has localhost

Michael Richardson <[email protected]>
Newsgroups gmane.mail.nmh.devel
Message-ID <[email protected]>
Ken Hornstein <[email protected]> wrote:
    > To Mike's question:

    >> Can we just use "localname" from mts.conf?

    > We COULD, it would just be wrong for some people.

Agreed, but it was the first place that I looked to fix things.

    > That's the "local" hostname, and is used for a bunch of things INCLUDING
    > constructing the default hostname for email addresses.  But here's a
    > thought experiment: let's say you set it to 'gmail.com' because your
    > email is hosted at gmail.  There's no way you could guarantee your
    > Message-ID isn't going to be used by gmail.com already.  Yes, you could

I think that's reasonable, but is there actually anything anyone could do
here?  They really need to pick something else which is not gmail.com.

    > things.  We could add another knob, but honestly I'd rather people just
    > use 'random' if the existing logic doesn't work for you.

That's fair enough. I can live with random as well.

    > Well, technically, it's constructing the Message-ID based on the value
    > of the 'j' Sendmail macro, which is used for a ton of things; that macro
    > value is configurable and in my limited sendmail experience you usually
    > do explicitly configure it (I do not know what that defaults to).

Yes, exactly, I was going to quibble at your analysis, but it wasn't worth it.
All I'm saying is that gethostname() is probably better default than whatever
it was that you posted that canonicalized it.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
]     [email protected]  http://www.sandelman.ca/        |   ruby on rails    [
signature.asc (application/pgp-signature, 511 B)
-----BEGIN PGP SIGNATURE-----

iQFFBAEBCgAvFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmWTZT8RHG1jckBzYW5k
ZWxtYW4uY2EACgkQgItw+93Q3WUujQf/Zx8xzVz1zEjtTwE/rcNh3reQlohhBm/N
EPKm1gUgbwscpBncw8o8QpNXiWr1POhVL2QKcw+uxDgjXbNtPu4WRSdsz3WdUxTC
sSOhb0ZZbFT3snbScytcpodWX1xnLWWMoxOXaS8An7DGBZid+kKJKvGxwQ0hAduu
h2eivbvPS/EBZblOT5jyeGAyelMtPBzLqyzagX3QScFbjPFH/JHt3EebILDxd/K1
jiWD1d3R83ot5OVKT4b/f6Ke1Ku/u1UvzdjyM45nI0ScRY24fxrpI/GvqQefurYQ
bSW65KXXNhHactdIGVyLkEMy+vRBUAS/FpcOoDB+bsW50flZuiP63w==
=eSlL
-----END PGP SIGNATURE-----
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.