Article View: news.software.nntp
Article #89641Re: How to permit user to set the right part of message-id
From: LaLibreParole
Date: Wed, 21 Sep 2022 21:46
Date: Wed, 21 Sep 2022 21:46
59 lines
3870 bytes
3870 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> composa la prose suivante: >Hi Russ, > >> INN's mesage ID generation algorithm is not great and we >> could indeed get duplicates if multiple hosts are using the same >> right-hand side. > >Do you think we should improve the generation of Message-IDs? >They're currently based on the date, PID and a counter incrementing at >each call. A quick improvement could be to also add for instance 6 >bytes from RAND_bytes() if OpenSSL support is available (which is most >often the case I believe). > > >>> Besides, it could be worthwhile adding a check that the domain parameter >>> (inn.conf or readers.conf) contains valid characters for a Message-ID... >>> and fall back to FQDN otherwise (hoping that FQDN also returns a string >>> suitable for a Message-ID!). >> >> I think if domain has invalid characters we should probably just abort >> with a fatal error, assuming it's worth checking for this. That seems >> like a basic configuration error we should just make people fix. > >Yes, people should fix such a misconfiguration. > > >> I think the tactical fix to honor domain in readers.conf regardless of >> what domain in inn.conf is set to is the right fix for stable. > >I also agree; I'll do that. > > >> What I'm coming around to for the next major release is that the parameter >> in readers.conf should just be called something different, since it is >> something different, and we should remove the domain setting in >> readers.conf (since it doesn't make sense to change the DNS resolution >> stuff in readers.conf since that will be a global problem, not just an >> nnrpd problem) and have innupgrade change it to some other name. > >> The ABNF construct that's used in the standards for Xref is server-name. >> That's not a bad name for this setting; maybe the new readers.conf setting >> should be servername? > >Yes, servername looks like an appropriate name. It will be a useful >improvement for the next major release. >I propose to also have a servername parameter in inn.conf as inews >generates Message-IDs (and currently uses the value of the domain >parameter in inn.conf). >And the value of servername can be overriden in readers.conf. > > >> Which normally you would want to set to the same >> thing as pathhost in inn.conf, but they're distinct settings since there >> are cases where you may want them to be different. > >The default value of servername in inn.conf (optional parameter) would >then be pathhost (mandatory to set in inn.conf). it looks good !
Technical Details
Message-ID:
<632b8650$0$25831$426a34cc@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-mailReferences:
<632790d3$0$22052$426a74cc@news.free.fr> <argle-bargle@argle.bargle.xyz> <63279bd2$0$22055$426a74cc@news.free.fr> <87h7148aq4.fsf@hope.eyrie.org> <6328a840$0$2976$426a74cc@news.free.fr> <tgaje6$6pa5$1@news.trigofacile.com> <6328dcc9$0$5132$426a74cc@news.free.fr> <tganq1$6pa5$2@news.trigofacile.com> <87y1ufxary.fsf@hope.eyrie.org> <tgc30j$7s0o$4@news.trigofacile.com> <87sfkmxcsj.fsf@hope.eyrie.org> <tgfttk$2enqk$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <632b8650$0$25831$426a34cc@news.free.fr> Subject: Re: How to permit user to set the right part of message-id Date: Wed, 21 Sep 2022 23:46:55 +0200 From: LaLibreParole <vrai.ou.faux@laposte.net> References: <632790d3$0$22052$426a74cc@news.free.fr> <argle-bargle@argle.bargle.xyz> <63279bd2$0$22055$426a74cc@news.free.fr> <87h7148aq4.fsf@hope.eyrie.org> <6328a840$0$2976$426a74cc@news.free.fr> <tgaje6$6pa5$1@news.trigofacile.com> <6328dcc9$0$5132$426a74cc@news.free.fr> <tganq1$6pa5$2@news.trigofacile.com> <87y1ufxary.fsf@hope.eyrie.org> <tgc30j$7s0o$4@news.trigofacile.com> <87sfkmxcsj.fsf@hope.eyrie.org> <tgfttk$2enqk$1@news.trigofacile.com> 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 User-Agent: ForteAgent/8.00.32.1272 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 59 Organization: Guest of ProXad - France Nntp-Posting-Date: 21 Sep 2022 23:46:56 CEST Nntp-Posting-Host: 77.129.50.167 X-Trace: 1663796816 news-4.free.fr 25831 77.129.50.167:54795 X-Complaints-To: abuse@proxad.net