Article View: news.software.readers
Article #189084Re: [slrn] Hostname?
From: Whiskers
Date: Thu, 10 Aug 2006 13:49
Date: Thu, 10 Aug 2006 13:49
203 lines
10331 bytes
10331 bytes
On 2006-08-09, Peter J Ross <pjr@kookbusters.org> wrote: > On Wed, 9 Aug 2006 21:36:31 +0100, Whiskers <catwheezel@operamail.com> > wrote in news.software.readers: >> On 2006-08-09, Peter J Ross <pjr@kookbusters.org> wrote: >>> On Wed, 09 Aug 2006 17:01:33 GMT, Marshall Price <d021317c@yahoo.com> >>> wrote in news.software.readers: >> >> snip >> >>>> I didn't have any problem getting the RC file in the right place, but I >>>> still don't know what to use for "hostname". Would it be the same as the >>>> nntp server (nntp.east.earthlink.net)? >>> >>> No. See above. Hostname is the part of your "From" header that appears >>> after "@". Also read the relevant section of the manual: >> >> That would be the hostname of the mail-server used. > > Not necessarily. It could be "foo.bar.invalid". Slrn can use "foo.bar.invalid" as both the email and Message-ID FQDN, if the machine's hostname is "foo.bar.invalid". That may not be appropriate however, which is why the slrnrc permits over-riding that behaviour. >>> <http://www.slrn.org/manual/slrn-manual-6.html#ss6.55> >>> >>> In fact, if you want to get the best out of slrn, reading the whole >>> manual is a good idea. >>> >>> PJR :-) >> >> I think in this particular context, slrn is looking for the 'hostname' of >> the computer upon which it is running > > Yes, and if the computer doesn't have a meaningful FQDN and no > "hostname" has been defined, slrn will exit with the error message > htat the OP described. Which is why the computer needs to have a hostname of some sort, for slrn to function. That hostname cannot be set from within slrn's configuration. >> and from which it will try to create >> the 'fully qualified domain name' (FQDN) part of your Message-IDs. > > No, posting_host sets the FQDN for the MID. THe hostname variable is > not the same thing. Posting_host is optional, and over-rides the hostname of the machine if that hostname is not what the user wants to use for MIDs. The hostname of the computer running slrn is not the 'hostname' mentioned in slrnrc. Marshall Price's slrn is failing to get as far as looking at its own slrnrc. It is asking for the user to give the computer a name from within the computer's operating system, so that slrn 'knows where it is'. >> I >> don't know how Windows handles such things, but I dimly remember that >> Windows XP when first run asks the user to type in a 'Name for your >> computer'. > > Windows doesn't provide a default username and fqdn that can be > interpreted by slrn the way *nix systems do. People seem to manage to get slrn running on Windows, so slrn running on Windows systems is getting a 'hostname' from somewhere. Microsoft probably don't use the same terminology as Unix or Linux, and probably don't construct their equivalent of 'hostname' in the same way, but Windows systems can be networked so there has to be some way of giving each machine a name. I know that the two Windows XP systems I have used, both have names; the one I set up did ask for a name when it ran for the first time. Perhaps there is something in the Windows networking or internet settings that allows the user to give their computer a "name". >> If your computer doesn't have a 'valid FQDN' of it's own (which most home >> computers do not) you can tell slrn what FQDN it should use (make sure >> it's a real one and that you are entitled to use it!) using the >> posting_host command in the slrn config file. Alternatively, you can put >> the line >> >> set generate_message_id 0 >> >> to make the server allocate the Message-ID for you. If you run your own >> server (eg 'Hamster' on Windows), you can have that set your Message-IDs - >> I do that, using Leafnode on Linux. The unique-to-me FQDN I use is >> permitted by the news-server I usually post to, and is very useful for >> scoring responses to my own posts. > > This is all correct, but not relevant to slrn's demand for the > "hostname" variable to be set. That's why the computer has to be given a name of some sort, even if that name is not going to be used asd part of the MIDs or email address used by slrn. The hostname of the computer is not something that can be set using any of slrn's configuration options, it has to be set in the operating system. Linux and Unix systems won't work at all without a 'hostname' of some sort; Mandriva sets 'localhost' as the hostname if no other name is specified by the user, and I think some Linx distros will default to the name or version number of the distro as the hostname. Windows is different in that it seems to be able to run with no 'hostname' at all - but Windows systems can be given a "name". Slrn, being essentially a Unix program, requires a hostname to be set in whatever operating system slrn may running on. >> (These complications arise because slrn seems to have been developed in >> the context of university or big-business computer systems, where each >> computer will almost certainly have a valid 'fully qualified domain name' >> already allocated by the system administrator, and from which that user's >> email address and newsgroup Message-IDs would be constructed - as well as >> email and usenet servers already set up as part of the same network). > > If I don't set a hostname variable, I get "pjr@sid.pjr.gotdns.org" as > my From line in slrn. That's because I'm logged in as pjr, and > "sid..." is the FQDN of the box I'm typing this post on. Since my mail > server is available only to users who have shell access, in order to > let them communicate with each other, there's no point in using the > private address on the From line - which is why I set the hostname > variable. The hostname variable on your computer seems to be sid.pjr.gotdns.org. The hostname variable on this computer is tavy.mobile.invalid, and if I don't over-ride that in my slrnrc I get mark@tavy.mobile.invalid as the 'From' email address in slrn, and tavy.mobile.invalid in the FQDN position in my Message-IDs. Neither is 'correct' and neither is what I want so I over-ride both in my slrnrc. As I've mentioned elsewhere, it's unfortunate that the slrnrc uses the label 'hostname' to identify part of the email address to be used. This confuses the email settings for slrn, with the 'hostname' setting of the operating system of the computer upon which slrn is running. They are two different things. > This is all probably confusing to the OP as an Slrn newbie; just > remember that hostname, username and realname are the three variables > used to construct your From header. They have no other effect. Within the context of the slrnrc, that is correct. The part of my slrnrc that over-rides the default assumptions regarding the email address I want for my newsgroup articles, looks like this: .----- | % | %% 1. Tell slrn about your identity (name, email address and such) | % | | % The "From:" header will be generated from the following three variables. | % With the example settings, it would read "john@doe.com (John Doe)". | set username "catwheezel" | set hostname "operamail.com" | set realname "Whiskers" '----- The 'hostname' there is not the hostname of my computer, and has no effect on what the hostname of my computer is. It is in fact the domain name of the email service providing that particular email account - see <http://www.operamail.com/>. The hostname of my computer has to be set in the operating system, before slrn will run at all. It need not (does not) have anything to do with the email address I use in newsgroups. With hindsight, it looks as though the terminology of the slrnrc file might have been clearer if instead of using 'hostname' as the label for part of the email address to be used, some other label had been chosen, such as 'mailhost' or 'maildomain' perhaps. Later on in my slrnrc, I have this: .----- | % Set this to zero if you want to leave Message-ID generation to your server | % or your system does not have a proper unique hostname. | set generate_message_id 0 '----- which means that the Message-IDs for my articles are set by the server instead of by slrn. In my case, the server that sets the MIDs is my own Leafnode, which I have configured to generate the FQDN I want instead of the default, 'incorrect', tavy.mobile.invalid which is the hostname of this computer. Your own MIDs appear to be generated by slrn, using the FQDN "nntp.alcatroll.com". The way to achieve that, if your machine's hostname is not what you want to use as the FQDN, is to include in your slrnrc these lines: .----- | set generate_message_id 1 | set posting_host nntp.alcatroll.com '----- thus over-riding the hostname of your computer. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Technical Details
Message-ID:
<v4qrq3-nvl.ln1@ID-107770.user.individual.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<Xns98186000E25EFd021317cyahoocom@207.217.125.201> <slrnedegrt.4k1.pjr@nntp.alcatroll.com> <Xns981A84825680Cd021317cyahoocom@207.217.125.201> <slrnedk6ub.8q3.pjr@nntp.alcatroll.com> <fjtpq3-t91.ln1@ID-107770.user.individual.net> <slrnedklnb.8q3.pjr@nntp.alcatroll.com>Show Full Headers
Complete Article Headers
Message-ID: <v4qrq3-nvl.ln1@ID-107770.user.individual.net> Subject: Re: [slrn] Hostname? Date: Thu, 10 Aug 2006 14:49:51 +0100 From: Whiskers <catwheezel@operamail.com> References: <Xns98186000E25EFd021317cyahoocom@207.217.125.201> <slrnedegrt.4k1.pjr@nntp.alcatroll.com> <Xns981A84825680Cd021317cyahoocom@207.217.125.201> <slrnedk6ub.8q3.pjr@nntp.alcatroll.com> <fjtpq3-t91.ln1@ID-107770.user.individual.net> <slrnedklnb.8q3.pjr@nntp.alcatroll.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: is an alien concept Lines: 203 X-Trace: individual.net ev8IspFzuLSDhPnGhtp/1AT+fi3bKrBZO9vFfelyFSjem1yCnj X-Orig-Path: ID-107770.user.individual.net!news X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux"; aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p& g^8<z5>HA User-Agent: slrn/0.9.8.1 (Linux)