🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #54062

Re: Setting up suck/inn2

#54062
From: 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

Technical Details
Message-ID: <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!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
References: <87k7zm4vg6.fsf@whinlatter.uklinux.net>

Show Full Headers
Complete Article Headers
Message-ID: <20010831000841.A1929@fsck.A470.com>
Subject: Re: Setting up suck/inn2
Date: Fri, 31 Aug 2001 00:08:41 +0100
From: Darren Wyn Rees <merlin@netlink.co.uk>
References: <87k7zm4vg6.fsf@whinlatter.uklinux.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
Newsgroups: uk.comp.os.linux,news.software.nntp
Organization: A470
Sender: <merlin@fsck.A470.com>
X-Trace: mail2news.demon.co.uk 999212596 mail2news:8604 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!protactinium.btinternet.com!protactinium![213.122.22.211]!maesd.a470.com!fsck.a470.com!merlin
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87k7zm4vg6.fsf@whinlatter.uklinux.net>; from roger@whinlatter.uklinux.net on Wed, Aug 29, 2001 at 06:39:21PM +0100
X-PGP-812C54B1: F8 79 5E 84 F0 20 A5 62 FA 2D E9 BD BE 06 7D 10
Lines: 98