🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Wolfgang Fritz Mon, 19 Aug 2002 18:29
INN: domain name in message-IDs
#59948
Author: Wolfgang Fritz
Date: Mon, 19 Aug 2002 18:29
30 lines
2096 bytes
Hello,

I found some old articles in this group concerning the following
problem, but I could not figure out the current state.

Problem:
I am running a local news server INN 2.3.2 which is mainly used to hold
local groups, mailing lists and the few public newsgroups I read. I have
no public domain.

INN 2.3.2 (and older versions I used) generate a message ID using the
FQDN it gets by calls to gethostname(3) or gethostbyname(3), which gives
my local domain name. So the generated message IDs are illegal.

My public news provider gave me a unique "domain name" to be used in
message IDs and I would like my local INN to generate message IDs with
this "domain name".

There is the "domain" keyword in inn.conf to set the domain name if (and
only if) gethost*name(3) fail. This does not work for me.

All I could find about this problem is, that there will be no simple
solution "before 2.3", and I would have to patch INN.

Is there a solution in 2.3.2, and if not, are patches available (and
where) for inn 2.3.2 or other versions?

Wolfgang

Re: INN: domain name in message-IDs
#59953
Author: Russ Allbery
Date: Tue, 20 Aug 2002 05:10
28 lines
2201 bytes
Wolfgang Fritz <wolfgang.fritz@gmx.net> writes:

> I am running a local news server INN 2.3.2 which is mainly used to hold
> local groups, mailing lists and the few public newsgroups I read. I have
> no public domain.

> INN 2.3.2 (and older versions I used) generate a message ID using the
> FQDN it gets by calls to gethostname(3) or gethostbyname(3), which gives
> my local domain name. So the generated message IDs are illegal.

> My public news provider gave me a unique "domain name" to be used in
> message IDs and I would like my local INN to generate message IDs with
> this "domain name".

I've not done this personally, but looking at the INN 2.3.3 code, you
should be able to set domain: in the appropriate access group in
readers.conf and have it be used in preference to the system's local host
name for the domain for generating message IDs.

Please let me know if this works as expected, since I should add it to the
FAQ if that solves your problem.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN: domain name in message-IDs
#59961
Author: Wolfgang Fritz
Date: Tue, 20 Aug 2002 19:56
44 lines
2736 bytes
Russ Allbery wrote:
> Wolfgang Fritz <wolfgang.fritz@gmx.net> writes:
> 
> 
>>I am running a local news server INN 2.3.2 which is mainly used to hold
>>local groups, mailing lists and the few public newsgroups I read. I have
>>no public domain.
> 
> 
>>INN 2.3.2 (and older versions I used) generate a message ID using the
>>FQDN it gets by calls to gethostname(3) or gethostbyname(3), which gives
>>my local domain name. So the generated message IDs are illegal.
> 
> 
>>My public news provider gave me a unique "domain name" to be used in
>>message IDs and I would like my local INN to generate message IDs with
>>this "domain name".
> 
> 
> I've not done this personally, but looking at the INN 2.3.3 code, you
> should be able to set domain: in the appropriate access group in
> readers.conf and have it be used in preference to the system's local host
> name for the domain for generating message IDs.
> 
> Please let me know if this works as expected, since I should add it to the
> FAQ if that solves your problem.
> 

That works, thanks. And of course it is all contained in the man page 
readers.conf(5). But I didn't expect to find the solution there :-)
Moral: always read _all_ the documentation.

I added the following to the relevant access section:

virtualhost: true
pathhost: my.path.host
domain: the.domain.my.news.provider.gave.me

If I post a message without a message ID, inn generates a valid ID with 
the desired domain now.

Wolfgang

Re: INN: domain name in message-IDs
#60020
Author: Russ Allbery
Date: Fri, 23 Aug 2002 17:36
32 lines
2452 bytes
Wolfgang Fritz <wolfgang.fritz@gmx.net> writes:

> That works, thanks. And of course it is all contained in the man page
> readers.conf(5). But I didn't expect to find the solution there :-)
> Moral: always read _all_ the documentation.

It's too hard to find things in the documentation right now, I know.

I've added this to the FAQ.

URL: <http://www.eyrie.org/~eagle/faqs/inn.html#S6.6>

Subject: 6.6. Change the domain used for message IDs

By default, any message IDs generated by INN will use the domain of the
local system for the right-hand-side of the message ID.  In some cases,
this isn't desirable for various reasons (the server may have an internal
name that doesn't make sense on Usenet at large, or one may not want to
expose the name of the server).

In INN 2.3.3, you can set domain: in an access stanza of readers.conf, and
all posts coming from connections to which that access stanza applies will
use that domain to generate message IDs.  So if you need to change the
domain used to generate message IDs for every local post from your server,
just add a domain: key to every access stanza in readers.conf.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN: domain name in message-IDs
#60031
Author: Jeffrey M. Vinocur
Date: Fri, 23 Aug 2002 22:58
13 lines
1442 bytes
In article <ylwuqhv5nt.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>
>just add a domain: key to every access stanza in readers.conf.

Hmm.  What do keys at the top of readers.conf do?  (cf.
innfeed.conf, where global defaults can appear outside of
configuration groups.)

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN: domain name in message-IDs
#60032
Author: Russ Allbery
Date: Fri, 23 Aug 2002 23:08
16 lines
1741 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> just add a domain: key to every access stanza in readers.conf.

> Hmm.  What do keys at the top of readers.conf do?  (cf. innfeed.conf,
> where global defaults can appear outside of configuration groups.)

They're syntax errors right now, I'm pretty sure.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN: domain name in message-IDs
#60037
Author: Jeffrey M. Vinocur
Date: Sat, 24 Aug 2002 03:55
20 lines
1791 bytes
In article <yl8z2xmavq.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Jeffrey M Vinocur <jeff@litech.org> writes:
>
>> Hmm.  What do keys at the top of readers.conf do?  (cf. innfeed.conf,
>> where global defaults can appear outside of configuration groups.)
>
>They're syntax errors right now, I'm pretty sure.

Oo, crazy stuff.  Results of some nonexhaustive testing...

If the file doesn't lex, you get a syntax error.  If it's a valid
token, though, most of the time it gets silently ignored.  But
auth: and res: at toplevel cause segfault, max_rate: is a syntax
error, and both require_ssl: and reject_with: work just fine.

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN: domain name in message-IDs
#60045
Author: Matus fantomas Uhlar
Date: Mon, 26 Aug 2002 08:01
13 lines
1609 bytes
Wolfgang Fritz <wolfgang.fritz@gmx.net> wrote:
-> There is the "domain" keyword in inn.conf to set the domain name if (and
-> only if) gethost*name(3) fail. This does not work for me.

I tried the same. I think this should be taken as default if domain isn't
defined in readers.conf. 

-- 
 Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/
 Warning: I don't wish to receive spam to this address.
 Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
 Enter any 12-digit prime number to continue.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads