Article View: news.software.nntp
Article #89627Re: How to permit user to set the right part of message-id
From: Russ Allbery
Date: Mon, 19 Sep 2022 22:24
Date: Mon, 19 Sep 2022 22:24
49 lines
2989 bytes
2989 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes:
> I don't know why we do that comparison when generating Message-IDs. If
> domain is set in both inn.conf and readers.conf to the same value, we
> take the FQDN. If domain is not set in inn.conf but is set in
> readers.conf, or both are set and different, we take the one in
> readers.conf.
Yeah, I was going to say that seemed weird. I'm not sure why we ended up
doing things that way, but it doesn't make sense to me. If domain is set
in readers.conf, we should just use it.
> I would tend to take the one from readers.conf anyway. As it is forced
> in readers.conf, there may be a reason; inn.conf documentation says to
> have a look at domain (or virtualhost) in readers.conf to change the
> righthand side of autogenerated Message-IDs, but that special rule is
> not mentioned. I would just drop it...
BTW, I had a bit of a hard time following the documentation, because
inn.conf says to set domain in readers.conf but then domain isn't
documented in readers.conf except in the list of inn.conf settings that
can also be set there.
If the inn.conf documentation is correct, the domain setting is ignored if
inn_getfqdn() succeeds, which also seems a bit weird. It feels like an
expicitly-set configuration option should override whatever we discover
while probing around on the system.
I found all of this surprisingly confusing! I'm sure it all made sense to
me at some point fifteen years ago.
I think the right result may be:
* Use domain unconditionally for forming message IDs if it's set in
readers.conf.
* Use domain if it's set in inn.conf, regardless of what we can discover
from other system calls. (This is backwards-incompatible, so maybe not
on the stable branch.)
* Document domain as a first-class configuration parameter for access
groups in readers.conf, saying that it changes the way message IDs are
constructed. (I'm not sure if it does anything else?)
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87y1ufxary.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<632790d3$0$22052$426a74cc@news.free.fr>Show Full Headers
Complete Article Headers
Message-ID: <87y1ufxary.fsf@hope.eyrie.org> Subject: Re: How to permit user to set the right part of message-id Date: Mon, 19 Sep 2022 15:24:49 -0700 From: Russ Allbery <eagle@eyrie.org> References: <632790d3$0$22052$426a74cc@news.free.fr> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: hope.eyrie.org; User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:hFwo7rZtux5EDKKoFKcctDreUEY= Lines: 48