Article View: news.software.nntp
Article #54078Re: Setting up suck/inn2
From: Roger Leigh
Date: Sat, 01 Sep 2001 19:45
Date: Sat, 01 Sep 2001 19:45
238 lines
9140 bytes
9140 bytes
On Fri, Aug 31, 2001 at 12:08:41AM +0100, Darren Wyn Rees wrote:
> ** added news.software.nntp ; posted & mailed.
Thanks for the mail reply!
> On Wed, Aug 29, 2001 at 06:39:21PM +0100, Roger Leigh wrote
> in uk.comp.os.linux :
>
> > Could anyone with a working suck/inn2 setup please post any relevant
> > configuration details please, as I am having difficulty setting it up.
>
> What kind of difficulties ? Posting appropriate error messages and
> diagnostics might help others help you tackle your problem quicker.
Sorry, I should have been more descriptive. I was hoping that there was
just a simple few lines in a couple of config files to add.
Initially, the daemon would not run at all, as was the case with suck.
However, syslog showed this was due to incorrect ownerships (root.root
instead of news.news).
Having fixed this, the daemon runs fine, and I can add and post to local
groups. I can also reply to other groups, and the message IDs are
queued in outgoing/news.york.ac.uk. testhost works fine. An additional
complication is that I wanted to use suck on the existing leafnode
spool, to keep those messages.
/var/libs/news/active
control 0000000000 0000000000 y
control.cancel 0000000000 0000000000 y
control.checkgroups 0000000000 0000000000 y
control.newgroup 0000000000 0000000000 y
control.rmgroup 0000000000 0000000000 y
control.sendsys 0000000000 0000000000 y
junk 0000000000 0000000000 y
local.general 0000000000 0000000000 y
local.test 0000000009 0000000001 y
local.help 0000000000 0000000001 y
york.talk.technical 0000000001 0000000001 y
york.csrv.announce 0000000000 0000000001 y
york.csrv.help 0000000000 0000000001 y
comp.os.linux.development.apps 0000000612 0000000001 y
comp.os.linux.development.system 0000000537 0000000001 y
uk.comp.os.linux 0000001209 0000000001 y
gnu.utils.help 0000000030 0000000001 y
/var/lib/news/newsgroups
control news server internal group
junk news server internal group
local.general local discussions
local.test local test group
I'm not sure why new group descriptions are not put in this file. I can
see them in slrn/gnus but I can't find where they are stored.
> Assuming you have installed a newish INN, download suck.
> configure; make; make install... to install the binaries.
[snip helpful suck setup]
I'm using the Debian get-news script, which seems much like the
get.news.inn script you suggested. I have the following in
/etc/suck/get-news.conf:
server: localhost
remoteserver: localhost
#outgoingfile:
sedcmd: /^NNTP-Posting-Host:\|^Xref\|^X-Trace\|^X-Server-Date:/d
#userid:
#password:
remoteport: 200
#suckoptions: -n
I initially had some problems with suck, as leafnode didn't seem to
cooperate:
whinlatter:/var/log/suck# telnet localhost 200
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 Leafnode NNTP Daemon, version 1.9.9 running at 127.0.0.1
mode reader
200 Leafnode 1.9.9, pleased to meet you!
group uk.comp.os.linux
211 17683 3009 20691 uk.comp.os.linux group selected
head <87ofq0zyr0.fsf@whinlatter.uklinux.net>
430 No such article: <87ofq0zyr0.fsf@whinlatter.uklinux.net>
head 87ofq0zyr0.fsf@whinlatter.uklinux.net
221 87 <87bslqdv1b.fsf@whinlatter.uklinux.net> article retrieved - head
follows
Path: news.york.ac.uk!127.0.0.1!nobody
Message-ID: <87bslqdv1b.fsf@whinlatter.uklinux.net>
From: Roger Leigh <roger@whinlatter.uklinux.net>
Newsgroups: uk.comp.os.linux
...
Giving the -n option to suck seemed to fix this (I got news fed to INN),
but not all groups were got:
#comp.os.linux.announce -1
#comp.security.announce -1
#gnu.announce -1
#news.announce.newusers -1
#news.newusers.questions -1
uk.comp.os.linux 20691
york.talk.technical 2296
york.csrv.announce 52
york.csrv.help 6
comp.os.linux.development.apps 9220
comp.os.linux.development.system 9724
uk.comp.os.linux 20691
gnu.utils.help 446
Even though they are listed here (third field was -10000), none of the
york.* groups had messages retrieved, even though there are several
hundred spooled messages in each. I don't have any idea why.
> INN setup.
>
> 1. Edit 'newsfeeds'.
/etc/news/newsfeeds
ME\
:*,@alt.binaries.warez.*,!junk,!control*,!local*,!foo.*\
/world,usa,na,gnu,bionet,pubnet,u3b,eunet,vmsnet,inet,ddn,k12,york,uk\
::
crosspost:*:Tc,Ap,WR:/usr/lib/news/bin/crosspost
## Feed outgoing articles to news.york.ac.uk
news.york.ac.uk\
:*,!control*,!junk*,!local*/!local\
:Tf,Wnm:news.york.ac.uk
> Your 'site' name in INN's newsfeeds must match 'site' [1*] above used
> in suck's get.news.inn file.
OK, it does.
> Be careful in choosing the correct /exclude pattern(s). Work out
> what your news server inserts as a path stamp.
>
> This -> ":*,!local.*\" <- indicates that I want all articles
> generated locally posted to 'berlin', but not articles for newsgroups
> beginning with local/control/junk.
It's unset, using the FQDN.
> Test your setup by sucking some articles, and then checking
> /usr/local/news/spool/outgoing/<site> If necessary, edit
> newsfeeds, then 'ctlinnd reload newsfeeds ok', and test again.
That seems to work, apart from not getting the york.* groups, using a
local leafnode server on port 220, but when I use news.york.ac.uk, I
get:
news@whinlatter:/etc/suck$ /usr/sbin/get-news
Attempting to connect to news.york.ac.uk
Using Port 119
Official host name: pump1.york.ac.uk
Alias news.york.ac.uk
Address: 144.32.128.3
Connected to pump1.york.ac.uk
200 news.york.ac.uk InterNetNews NNRP server INN 2.1 24-Jul-1998 ready
(posting ok).
Skipping Line: #comp.os.linux.announce -1
Skipping Line: #comp.security.announce -1
Skipping Line: #gnu.announce -1
Skipping Line: #news.announce.newusers -1
Skipping Line: #news.newusers.questions -1
uk.comp.os.linux - 1169 articles 121464-122632
york.talk.technical - 75 articles 7358-7432
york.csrv.announce - 1 articles 808-808
york.csrv.help - 5 articles 4632-4636
comp.os.linux.development.apps - 613 articles 109841-110453
comp.os.linux.development.system - 551 articles 125151-125701
uk.comp.os.linux - 1169 articles 121464-122632
gnu.utils.help - 30 articles 2831-2860
Elapsed Time = 0 mins 55.76 seconds
3318 Articles to download
Deduping Elapsed Time = 0 mins 0.01 seconds
Deduped, 2176 items remaining, 1142 dupes removed.
Processing History File Elapsed Time = 0 mins 0.01 seconds
Processed history, 1948 dupes removed
Total articles to download: 228
457055 Bytes received in 3 mins 47.56 secs, BPS = 2008.5
Closed connection to news.york.ac.uk
Building INN Batch File
Downloaded Articles
Ok
reloaded ctlinnd
Using Port 119
Official host name: pump1.york.ac.uk
Alias news.york.ac.uk
Address: 144.32.128.3
Connected to pump1.york.ac.uk
200 news.york.ac.uk InterNetNews NNRP server INN 2.1 24-Jul-1998 ready
(posting ok).
340 Ok
441 Can't set system "X-Complaints-To" header
Malfunction, Unable to post Article!
I guess it wants to add it's own complaints header, but I have this
unspecified in inn.conf. I added a sed rule to strip it, but now I get:
200 news.york.ac.uk InterNetNews NNRP server INN 2.1 24-Jul-1998 ready (posting ok).
340 Ok
441 Can't set system "NNTP-Posting-Date" header
Malfunction, Unable to post Article!
340 Ok
441 Can't set system "NNTP-Posting-Date" header
Malfunction, Unable to post Article!
340 Ok
441 Can't set system "NNTP-Posting-Date" header
Malfunction, Unable to post Article!
Closing connection to pump1.york.ac.uk
Error remote posting
You can hang up the modem now
Posted Articles Locally
Some articles at least appear to have been posted locally (I got your
post), but again no york.* groups were fetched.
Sorry about the long post, I included what I thought might be helpful.
Thanks for your help,
Roger
--
Roger Leigh ** Registration Number: 151826, http://counter.li.org **
Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/
For GPG Public Key: finger rl117@tower.york.ac.uk or see public keyservers.
Technical Details
Message-ID:
<914b9786.0109011145.37ce8296@posting.google.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!postnews1.google.com!not-for-mailReferences:
<87k7zm4vg6.fsf@whinlatter.uklinux.net> <20010831000841.A1929@fsck.A470.com>Show Full Headers
Complete Article Headers
Message-ID: <914b9786.0109011145.37ce8296@posting.google.com> Subject: Re: Setting up suck/inn2 Date: Sat, 01 Sep 2001 19:45:14 +0000 From: rl117@york.ac.uk (Roger Leigh) References: <87k7zm4vg6.fsf@whinlatter.uklinux.net> <20010831000841.A1929@fsck.A470.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!postnews1.google.com!not-for-mail Newsgroups: uk.comp.os.linux,news.software.nntp Organization: http://groups.google.com/ Lines: 237 NNTP-Posting-Host: 212.1.148.171 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 999373514 4646 127.0.0.1 (1 Sep 2001 19:45:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 1 Sep 2001 19:45:14 GMT