๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Darren Wyn Rees Thu, 30 Aug 2001 23:08
Re: Setting up suck/inn2
#54062
Author: Darren Wyn Rees
Date: Thu, 30 Aug 2001 23:08
99 lines
4707 bytes
** added news.software.nntp ; posted & mailed.

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.
 
> From what I understand of inn, I need to
> 1. Set up suck to get a list of groups from the server

You could do something like 

	testhost <news server> -U <user> -P <pass> -a

to get a list of group carried by the remote  news server.

Then add 'groupname -100' to sucknewsrc so that suck fetches
the most recent 100 articles.

> 2. Add an entry to incoming.conf, to get news pulled down by suck
>    fed to inn.

Nope.  You don't need this. incoming.conf is for sites that feed
you news.  You are using suck, as you are not receiving a news feed.

> 3. Add an entry to newsfeeds to pipe outgoing articles to the server.
> I'm sure this is very easy, but inn is quite complex.

Assuming you have installed a newish INN, download suck.
configure; make; make install... to install the binaries.

1. create a suck/ directory for your files, then suck/<isp>,
   then suck/<isp>/Msgs

2. edit suck config file 'get.news.inn', you'll need to change

	REMOTE_HOST to your remote news server
	SPOOLDIR, NEWSDIR if not in standard/typical places
	BASEDIR will need to be the directory above (1)
	SITE [*1] choose a name for your site, like news.isp.here
	  	
3.	As you said you are using a 'user' and 'password', you
	will need to add user/pass in 'get.news.inn' file.

	Find :
 	${SUCK} ${REMOTE_HOST} .... blah blah	
	Change to :
	${SUCK} ${REMOTE_HOST} -U <user> -P <pass> ... blah blah

	Likewise, find '${RPOST} ${REMOTE_HOST} ...' and
	add '-U <user> -P <pass>'

4.	By default, in the 'get.news.inn' file suck comes with
	the '-A' option, which I think you should remove (as 
	you said you only want to suck a few groups).  'man suck'
	explains the option in detail.

5. 	You may need to edit 'put.news' file, as your ISP news 
	server will probably not let you post articles with certain
	headers, eg. NNTP-Posting-Date (which is inserted by INN).

INN setup.

1. 	Edit 'newsfeeds'. 

##  newsfeeds - determine where Usenet articles get sent
##  Format:
##      site[/exclude,exclude...]\
##              :pattern,pattern...[/distrib,distrib...]\
##              :flag,flag...\
##              :param

# http://news.fu-berlin.de/ for a free and wonderful news service...
berlin/uni-berlin.de,fu-berlin.de\
        :*,!local.*,!control.*,!junk.*\
        :Tf,Wnm:berlin

Your 'site' name in INN's newsfeeds must match 'site' [1*] above used
in suck's get.news.inn file.

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.

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.

-- 
Darren Wyn Rees			merlin@netlink.co.uk

Re: Setting up suck/inn2
#54078
Author: Roger Leigh
Date: Sat, 01 Sep 2001 19:45
238 lines
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.
Re: Setting up suck/inn2
#54087
Author: Frederic A. Martinelli
Date: Sun, 02 Sep 2001 10:31
22 lines
2169 bytes
Dans l'article <914b9786.0109011145.37ce8296@posting.google.com>, "Roger
Leigh" <rl117@york.ac.uk> a ๏ฟฝcrit :

[magical cutter]
> 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!

That's strange you seem to have the same problem as i have: you're
reposting articles from a previous session?, or was it that you have
effectively wanted to post something? I've also got a 441 reply but mine
state that the header's article already exist. (inn version 2.2.2)

Fred. A. Martinelli
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