🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by John F. Morse Wed, 14 Sep 2005 12:18
INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72259
Author: John F. Morse
Date: Wed, 14 Sep 2005 12:18
83 lines
4276 bytes
I've pulled out what little hair I had remaining....

Trying to get rid of "localhost.localdomain" from the righthand side of 
autogenerated Message-ID:s and X-Trace: header entries.

Example:

Message-ID: <dg925u$2n6$3@localhost.localdomain>
X-Trace: localhost.localdomain 1126697982 2790 192.168.89.140 (14 Sep 
2005 11:39:42 GMT)

I've followed the instructions/ideas/suggestions in the man pages 
referenced below, but no matter what I do, the localhost.localdomain 
continues to be inserted instead of my FQDN.

This includes restarting ("ctlinnd xexec innd") after any changes to 
innd.conf.

Is this really working in INN 2.4.2-3 (OS is Debian Sarge 3.1r0a)?

Here is a complete message header, with e-mail addresses munged to 
"@invalid.net" to foil the spam bots. The INN is running on 
news5.xanadu-bbs.net, and streams through the other servers shown in the 
Path: entry, which are RumorMill NNTP servers on PowerMacs.

Path: 
news.xanadu-bbs.net!news2.xanadu-bbs.net!news61.xanadu-bbs.net!news5.xanadu-bbs.net!not-for-mail
From: "John F. Morse" <me@invalid.net>
Newsgroups: brisbee
Subject: Beta testers wanted
Date: Wed, 14 Sep 2005 06:39:42 -0500
Organization: Xanadu BBS
Lines: 35
Message-ID: <dg925u$2n6$3@localhost.localdomain>
Reply-To:  me@invalid.net
NNTP-Posting-Host: giuseppe.xanadu-bbs.net
Mime-Version: 1.0
Content-Type: multipart/alternative;
  boundary="------------060905050903070806010207"
X-Trace: localhost.localdomain 1126697982 2790 192.168.89.140 (14 Sep 
2005 11:39:42 GMT)
X-Complaints-To: newsmaster@invalid.net
NNTP-Posting-Date: Wed, 14 Sep 2005 11:39:42 +0000 (UTC)
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
X-Accept-Language: en-us, en
Xref: news.xanadu-bbs.net brisbee:32186

-- 
John

 From INN.CONF(5):

PARAMETERS
        General Settings

        These parameters are used by a wide variety of different 
components of INN.

        domain
            This should be the domain name of the local host.  It should 
not have a leading period, and it should not be a full host address. It 
is used only if the GetFQDN() routine in libinn(3) cannot get the 
fully-qualified domain name by using either the gethostname(3)or 
sethostbyname(3) calls.  The check is very simple; if either routine 
returns a name with a period in it, then it is assumed to have the full 
domain name.  As this parameter is rarely used, do not use it to affect 
the righthand side of autogenerated Message-IDs; see instead virtualhost 
and domain in readers.conf.  The default value is unset.


From: READERS.CONF(5)

ACCESS GROUP PARAMETERS

        virtualhost:
            Set this parameter to make nnrpd behave as if it's running 
on a server with a different name than it actually is.  If you set this 
parameter, you must also set either pathhost: or domain: to something 
different than is set in inn.conf.  All articles displayed to clients 
will then have their Path: and Xref: headers altered to appear to be 
from the server named in pathhost: or domain: (whichever is set), and 
posted articles will use that server name in the Path:, Message-ID;, and 
X-Trace: headers.
Re: INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72260
Author: Bill Davidsen
Date: Wed, 14 Sep 2005 17:04
58 lines
3773 bytes
John F. Morse wrote:
> I've pulled out what little hair I had remaining....
> 
> Trying to get rid of "localhost.localdomain" from the righthand side of 
> autogenerated Message-ID:s and X-Trace: header entries.

What does "hostname" say the name of your machine is? That sounds like a 
misconfigured Linux install, and I mean the install rather than INN.
> 
> Example:
> 
> Message-ID: <dg925u$2n6$3@localhost.localdomain>
> X-Trace: localhost.localdomain 1126697982 2790 192.168.89.140 (14 Sep 
> 2005 11:39:42 GMT)
> 
> I've followed the instructions/ideas/suggestions in the man pages 
> referenced below, but no matter what I do, the localhost.localdomain 
> continues to be inserted instead of my FQDN.
> 
> This includes restarting ("ctlinnd xexec innd") after any changes to 
> innd.conf.
> 
> Is this really working in INN 2.4.2-3 (OS is Debian Sarge 3.1r0a)?
> 
> Here is a complete message header, with e-mail addresses munged to 
> "@invalid.net" to foil the spam bots. The INN is running on 
> news5.xanadu-bbs.net, and streams through the other servers shown in the 
> Path: entry, which are RumorMill NNTP servers on PowerMacs.
> 
> Path: 
> news.xanadu-bbs.net!news2.xanadu-bbs.net!news61.xanadu-bbs.net!news5.xanadu-bbs.net!not-for-mail 
> 
> From: "John F. Morse" <me@invalid.net>
> Newsgroups: brisbee
> Subject: Beta testers wanted
> Date: Wed, 14 Sep 2005 06:39:42 -0500
> Organization: Xanadu BBS
> Lines: 35
> Message-ID: <dg925u$2n6$3@localhost.localdomain>
> Reply-To:  me@invalid.net
> NNTP-Posting-Host: giuseppe.xanadu-bbs.net
> Mime-Version: 1.0
> Content-Type: multipart/alternative;
>  boundary="------------060905050903070806010207"
> X-Trace: localhost.localdomain 1126697982 2790 192.168.89.140 (14 Sep 
> 2005 11:39:42 GMT)
> X-Complaints-To: newsmaster@invalid.net
> NNTP-Posting-Date: Wed, 14 Sep 2005 11:39:42 +0000 (UTC)
> User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
> X-Accept-Language: en-us, en
> Xref: news.xanadu-bbs.net brisbee:32186
> 


-- 
bill davidsen
   SBC/Prodigy Yorktown Heights NY data center
   http://newsgroups.news.prodigy.com
Re: INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72262
Author: John F. Morse
Date: Wed, 14 Sep 2005 17:51
28 lines
2220 bytes
Bill Davidsen wrote:
> John F. Morse wrote:
> 
>> I've pulled out what little hair I had remaining....
>>
>> Trying to get rid of "localhost.localdomain" from the righthand side 
>> of autogenerated Message-ID:s and X-Trace: header entries.
> 
> 
> What does "hostname" say the name of your machine is? That sounds like a 
> misconfigured Linux install, and I mean the install rather than INN.

The hostname is optima5, which is the name of the machine.

It originally was olathe5 which is still showing up in the INN Daily 
Usenet report mail "From:" line, presumedly from sendmail. I haven't yet 
found where to fix this (sendmail is still a ways down the road). Oddly, 
the Subject shows "optima5 Daily Usenet report ...."

I wonder if these are interfering with INNs identification of the machine?

Do you think I should change all instances of "news5" to "optima5" in 
INN and see what happens?

Then try and figure out the "olathe5" used by sendmail.

-- 
John
Re: INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72265
Author: Russ Allbery
Date: Thu, 15 Sep 2005 05:03
15 lines
1698 bytes
John F Morse <xanadu.bbs@invalid.net> writes:

> I've pulled out what little hair I had remaining....

> Trying to get rid of "localhost.localdomain" from the righthand side of 
> autogenerated Message-ID:s and X-Trace: header entries.

Edit /etc/hosts, remove localhost.localdomain, and add a real entry for
the system IP address that has the fully qualified hostname first.

-- 
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 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72271
Author: John F. Morse
Date: Thu, 15 Sep 2005 12:16
145 lines
7507 bytes
Russ Allbery wrote:

>John F Morse <xanadu.bbs@invalid.net> writes:
>
> Trying to get rid of "localhost.localdomain" from the righthand side of
>
>>autogenerated Message-ID:s and X-Trace: header entries.
>>    
>>
>
>Edit /etc/hosts, remove localhost.localdomain, and add a real entry for
>the system IP address that has the fully qualified hostname first.
>
The /etc/hosts file has the following:

127.0.0.1 localhost.localdomain localhost optima5
192.168.89.28 optima5.xanadu-bbs.net optima5

I would think the first entry (127.0.0.1) is required. All services are 
working fine (SSH, INN, etc.), except the problem with the Message-ID:s 
and X-Trace: header entries.

The second entry appears to be what you suggest. Correct?

These entries in hosts were there before INN was downloaded (the package 
via Synaptic, not the source to be compiled).

The problem may be that I am using a FQDN of news5.xanadu-bbs.net for 
the INN config files, instead of optima5.xanadu-bbs.net.

Additionally, I have the following in my local DNS server:

optima5.xanadu-bbs.net A 192.168.89.28
news5.xanadu-bbs.net CNAME optima5.xanadu-bbs.net

There is a valid reverse DNS record as well. These DNS entries do work 
for reaching this computer from anywhere on my LAN.

For some reason, I feel a "hack" to hosts is not the correct way to 
force INN to do what I want. However, I did comment out the first line, 
then added a simple "localhost" so the file looks like the following:

#127.0.0.1 localhost.localdomain localhost optima5
127.0.0.1 localhost
192.168.89.28 optima5.xanadu-bbs.net optima5

This caused the header lines in question to correctly display the 
optima5 hostname as shown below:

Path: news5.xanadu-bbs.net!not-for-mail
From: "John F. Morse" <me@invalid.net>
Newsgroups: computers
Subject: Re: Downloads
Date: Thu, 15 Sep 2005 04:15:33 -0500
Organization: Xanadu BBS
Lines: 40
Message-ID: <dgbe3l$1dh$1@optima5.xanadu-bbs.net>
References: <RumorMill--1085945883104016759@76.xanadu-bbs.net> <RumorMill--1085936743104566404@76.xanadu-bbs.net> <RumorMill--1085845235110069357@76.xanadu-bbs.net> <RumorMill--1085840721110340845@76.xanadu-bbs.net> <RumorMill--1085792757113225360@76.xanadu-bbs.net> <RumorMill--1085774630114315481@76.xanadu-bbs.net> <RumorMill--1085669316120648701@76.xanadu-bbs.net> <RumorMill--1085668901120673628@76.xanadu-bbs.net> <RumorMill--1085580646125980965@76.xanadu-bbs.net> <dg6n82$gld$1@localhost.localdomain> <RumorMill--1085491056131368661@76.xanadu-bbs.net> <dg8nqj$via$1@localhost.localdomain> <RumorMill--1085421544351843@76.xanadu-bbs.net> <dg9svf$1ak$1@localhost.localdomain> <RumorMill--1085413314846725@76.xanadu-bbs.net>
Reply-To:  me@invalid.net
NNTP-Posting-Host: giuseppe.xanadu-bbs.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: optima5.xanadu-bbs.net 1126775733 1457 192.168.89.140 (15 Sep 2005 09:15:33 GMT)
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Thu, 15 Sep 2005 09:15:33 +0000 (UTC)
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
X-Accept-Language: en-us, en
In-Reply-To: <RumorMill--1085413314846725@76.xanadu-bbs.net>
Xref: news5.xanadu-bbs.net computers:30

My next test will be to change all references to news5.xanadu-bbs.net in 
INN's config files to  optima5.xanadu-bbs.net and see what happens. 
"news5." was a temporary name anyway.

A negative result of doing this might be that messages could be 
duplicated due to no match in the Path: header entry. It's no big deal 
at this time though, as this computer is in the process of being set up 
for INN -- and painfully teaching me some things I need to know. ;-)

I would also need to configure the peer that connects with this INN 
server, giving it the new FQDN for INN. Fortunately, it's on a Mac, and 
all configuration is done easily through a GUI interface, or via HTML.

The normal news server, RumorMill, running on a PowerMac 7600/120 for 
the past 4-1/2 years, is the one exposed to the users. I'm streaming in 
and out of it, through two intermediate NNTP servers, also running on 
PowerMacs.

One, a PowerMac 8500/120, is the peer to the online server. It is 
basically a backup, and a quick easy means for me to check 
control.cancel, which is hidden from users on the online server. It then 
peers with another server, running a newer (beta) version of RumorMill, 
on a PowerMac 6115/66, which has a Sonnet G3 225 MHz CPU card in it. 
This computer then streams to the new Debian Sarge INN computer.

For curiosity (I live four miles west of the "Show-Me State"), I looked 
at the hosts file on several other Linux boxes. You seem to know a lot 
about the hosts file, so you might comment on what I found. The 
hostnames are in quotes, following the distro.

Debian 3.1r0a: "Giuseppe" (was renamed from va20)
127.0.0.1 localhost.localdomain localhost va20 Giuseppe

Debian 3.1r0a: "optima66263"
127.0.0.1 localhost.localdomain localhost
192.168.89.29 optima66263.xanadu-bbs.net optima22623

Fedora Core 1: "Wintergreen18" (was renamed from Wintergreen14)
127.0.0.1 Wintergreen14.xanadu-bbs.net Wintergreen14 
localhost.localdomain localhost
192.168.89.180 Wintergreen18

Fedora Core 3: "deuce"
127.0.0.1 localhost
192.168.89.22 deuce deuce.xanadu-bbs.net deuce

Lindows 4.5.316: "Aspire"
127.0.0.1 localhost Aspire
127.0.0.1 Aspire

Lindows 4.5.316: "Wintergreen16"
127.0.0.1 localhost Wintergreen16
127.0.0.1 localhost

Mandrake 10.1: "George" (was renamed from glenn; hard drive swap)
127.0.0.1glenn.xanadu-bbs.net glenn george.xanadu-bbs.net george localhost

Mac OS X (10.2) Darwin (FreeBSD) "iMac"
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost

It appears the hostname rename command does not fully modify the hosts 
file. I suspect I should edit all of those that show old hostnames, etc. 
I also have a few other Linux boxes to check, running Mandrake 8.0, 
Slackware 10.1, Knoppix 3.7, Fedora Core 4, Gentoo something, etc., but 
cannot get to them right now.

Any ideas?

TIA

-- 
John
Re: INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72274
Author: Russ Allbery
Date: Thu, 15 Sep 2005 18:33
30 lines
2463 bytes
John F Morse <xanadu.bbs@invalid.net> writes:

> The /etc/hosts file has the following:

> 127.0.0.1 localhost.localdomain localhost optima5
> 192.168.89.28 optima5.xanadu-bbs.net optima5

> I would think the first entry (127.0.0.1) is required. All services are 
> working fine (SSH, INN, etc.), except the problem with the Message-ID:s 
> and X-Trace: header entries.

It's a good idea, but it's not strictly required.  The
localhost.localdomain thing, though, is a bad idea and shouldn't be there,
since other software gets confused and thinks it's a real domain name
since it has a period in it.

However, the real problem in your case is that you've made optima5 an
alias for both 127.0.0.1 and the real IP address.  You don't want to do
that, since then when INN does a forward and reverse name lookup on
optima5, it may get the names attached to the loopback address.  Removing
optima5 from the end of that line would have also fixed the problem.

I've never seen having localhost.localdomain in /etc/hosts cause anything
but problems.

-- 
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 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72276
Author: Bill Davidsen
Date: Thu, 15 Sep 2005 18:59
41 lines
3271 bytes
Russ Allbery wrote:
> John F Morse <xanadu.bbs@invalid.net> writes:
> 
> 
>>The /etc/hosts file has the following:
> 
> 
>>127.0.0.1 localhost.localdomain localhost optima5
>>192.168.89.28 optima5.xanadu-bbs.net optima5
> 
> 
>>I would think the first entry (127.0.0.1) is required. All services are 
>>working fine (SSH, INN, etc.), except the problem with the Message-ID:s 
>>and X-Trace: header entries.
> 
> 
> It's a good idea, but it's not strictly required.  The
> localhost.localdomain thing, though, is a bad idea and shouldn't be there,
> since other software gets confused and thinks it's a real domain name
> since it has a period in it.
> 
> However, the real problem in your case is that you've made optima5 an
> alias for both 127.0.0.1 and the real IP address.  You don't want to do
> that, since then when INN does a forward and reverse name lookup on
> optima5, it may get the names attached to the loopback address.  Removing
> optima5 from the end of that line would have also fixed the problem.
> 
> I've never seen having localhost.localdomain in /etc/hosts cause anything
> but problems.
> 
It is intended as a placeholder, perhaps, indicating that the real data 
should be put there. That's how I've always done it, and it seems to 
work. I don't put an entry in for my NIC IPs, that's what DNS is for, 
just things which MUST resolve to have a useful system.

I knew that notation was floating around somewhere, couldn't remember where.

-- 
bill davidsen
   SBC/Prodigy Yorktown Heights NY data center
   http://newsgroups.news.prodigy.com
Re: INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72284
Author: Jeffrey M. Vinocur
Date: Thu, 15 Sep 2005 23:36
14 lines
1653 bytes
In article <FCdWe.44946$qY1.18943@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>A negative result of doing this might be that messages could be 
>duplicated due to no match in the Path: header entry. 

I don't quite understand whether you mean duplicates coming into
INN or being sent out from INN, but perhaps the /exclude list in
the appropriate $pathetc/newsfeeds entry will help you.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72287
Author: John F. Morse
Date: Sat, 17 Sep 2005 17:10
42 lines
2638 bytes
Russ Allbery wrote:
> John F Morse <xanadu.bbs@invalid.net> writes:
> 
> 
>>The /etc/hosts file has the following:
> 
> 
>>127.0.0.1 localhost.localdomain localhost optima5
>>192.168.89.28 optima5.xanadu-bbs.net optima5
> 
> 
>>I would think the first entry (127.0.0.1) is required. All services are 
>>working fine (SSH, INN, etc.), except the problem with the Message-ID:s 
>>and X-Trace: header entries.
> 
> 
> It's a good idea, but it's not strictly required.  The
> localhost.localdomain thing, though, is a bad idea and shouldn't be there,
> since other software gets confused and thinks it's a real domain name
> since it has a period in it.
> 
> However, the real problem in your case is that you've made optima5 an
> alias for both 127.0.0.1 and the real IP address.  You don't want to do
> that, since then when INN does a forward and reverse name lookup on
> optima5, it may get the names attached to the loopback address.  Removing
> optima5 from the end of that line would have also fixed the problem.
> 
> I've never seen having localhost.localdomain in /etc/hosts cause anything
> but problems.
> 


Thanks, Russ.

Although "I" didn't make those hosts config changes (the Debian install 
did it), I have changed the file to your suggestions and it is working 
fine now.

I appreciate your time.

-- 
John
Re: INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
#72288
Author: John F. Morse
Date: Sat, 17 Sep 2005 17:12
54 lines
3147 bytes
Bill Davidsen wrote:
> Russ Allbery wrote:
> 
>> John F Morse <xanadu.bbs@invalid.net> writes:
>>
>>
>>> The /etc/hosts file has the following:
>>
>>
>>
>>> 127.0.0.1 localhost.localdomain localhost optima5
>>> 192.168.89.28 optima5.xanadu-bbs.net optima5
>>
>>
>>
>>> I would think the first entry (127.0.0.1) is required. All services 
>>> are working fine (SSH, INN, etc.), except the problem with the 
>>> Message-ID:s and X-Trace: header entries.
>>
>>
>>
>> It's a good idea, but it's not strictly required.  The
>> localhost.localdomain thing, though, is a bad idea and shouldn't be 
>> there,
>> since other software gets confused and thinks it's a real domain name
>> since it has a period in it.
>>
>> However, the real problem in your case is that you've made optima5 an
>> alias for both 127.0.0.1 and the real IP address.  You don't want to do
>> that, since then when INN does a forward and reverse name lookup on
>> optima5, it may get the names attached to the loopback address.  Removing
>> optima5 from the end of that line would have also fixed the problem.
>>
>> I've never seen having localhost.localdomain in /etc/hosts cause anything
>> but problems.
>>
> It is intended as a placeholder, perhaps, indicating that the real data 
> should be put there. That's how I've always done it, and it seems to 
> work. I don't put an entry in for my NIC IPs, that's what DNS is for, 
> just things which MUST resolve to have a useful system.
> 
> I knew that notation was floating around somewhere, couldn't remember 
> where.
> 

I remember reading it too, but didn't really suspect something that was 
installed with the system.

"Placeholder" sounds logical. I'm beginning to learn to trust nothing. <g>

Thanks for your assistance.

-- 
John
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