🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72271

Re: INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN

#72271
From: 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
Technical Details
Message-ID: <FCdWe.44946$qY1.18943@bgtnsc04-news.ops.worldnet.att.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
References: <17cb9$43281531$4097152a$16561@EVERESTKC.NET> <87psrayla8.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <FCdWe.44946$qY1.18943@bgtnsc04-news.ops.worldnet.att.net>
Subject: Re: INN 2.4.2-3 -- Message-ID: and X-Trace: from localhost.localdomain to FQDN
Date: Thu, 15 Sep 2005 12:16:37 GMT
From: "John F. Morse" <xanadu.bbs@invalid.net>
References: <17cb9$43281531$4097152a$16561@EVERESTKC.NET> <87psrayla8.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
Reply-To: xanadu.bbs@invalid.net
Organization: Xanadu BBS
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <87psrayla8.fsf@windlord.stanford.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 145
NNTP-Posting-Host: 9a59903c16602982a5dc5523958bd7d7
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1126786597
NNTP-Posting-Date: Thu, 15 Sep 2005 12:16:37 GMT