Thread View: news.software.nntp
9 messages
9 total messages
Started by steffie
Thu, 21 Dec 2000 16:20
using suck with inn
Author: steffie
Date: Thu, 21 Dec 2000 16:20
Date: Thu, 21 Dec 2000 16:20
16 lines
1376 bytes
1376 bytes
Hello, i set up a INN 2.3.0 and i am using suck to fetch news. but i can't seem to find out how to get articles posted with rpost. the get.news script does its job fine, it fetches news from a newsserver, and than posts them locally to INN. but now the other way around.. ? anyone can give me hints or tips ?
Re: using suck with inn
Author: Carlo Fusco
Date: Thu, 21 Dec 2000 20:06
Date: Thu, 21 Dec 2000 20:06
46 lines
2168 bytes
2168 bytes
steffie <steffie@indoleeroord.penguinpowered.com> wrote:
> Hello,
> i set up a INN 2.3.0
> and i am using suck to fetch news.
[cut]
When I was using INN 1.7 and suck I posted my articles with this script:
------------------------
FEED=tin
SERVER=news.tin.it
pushd /var/spool/news/out.going/
if [ -s $FEED.notsent ]; then
cat $FEED.notsent >> $FEED
rm -f $FEED.notsent
fi
if [ -s /var/spool/news/out.going/$FEED ]; then
mv $FEED $FEED.work
ctlinnd -s -t30 flush $FEED
cp $FEED.work $FEED.bak
rpost $SERVER -d -b $FEED.work \
-f /usr/lib/suck/put-news \$\$i \
/var/lib/suck/rpost \$\$o=/var/lib/suck/rpost \
> /var/log/rpost.log
if [ -s $FEED.work ]; then
mv $FEED.work $FEED.notsent
fi
fi &
popd
------------------------
I got the script from a faq (in Italians) about the configuration of
INN and suck, if you can/want to read it this is the url:
http://www.linux.it/~md/inn+suck-HOWTO.gz
The variable $FEED is the name you gave to your batch file in
/etc/news/newsfeeds and $SERVER obviously is the name of your
server. You might need to change the path of rpost.
Anyway, now I am using newsx which is faster and easier to configure.
--
ciao
cf
Re: using suck with inn
Author: Thierry Thomas
Date: Thu, 21 Dec 2000 22:40
Date: Thu, 21 Dec 2000 22:40
26 lines
2065 bytes
2065 bytes
Le Thu, 21 Dec 2000 17:20:23 +0100, steffie <steffie@indoleeroord.penguinpowered.com> �crivait�: >i set up a INN 2.3.0 > >and i am using suck to fetch news. > >but i can't seem to find out how to get articles posted with rpost. > >the get.news script does its job fine, it fetches news from a newsserver, >and >than posts them locally to INN. > >but now the other way around.. ? >anyone can give me hints or tips ? It could be the same problem that Message-ID: <91ssvj$s3i$1@bbs.tnss-dwp.com> (just up or down, about newsx). If you have choosen the CNFS storage method, you have to use sm to manipulate your articles, and it's now impossible to have the -d parameter for rpost (like in the script given by Carlo). If you want, I have a script to run suck / rpost with a filter to strip your local headers, and I can send it to you. -- Th. Thomas, ICQ�: 8823153 Il y a s�rement des pays qui valent le coup. [MS]
Re: using suck with inn
Author: BARRY BOUWSMA IS A POSTING PEDOP...
Date: Thu, 21 Dec 2000 23:02
Date: Thu, 21 Dec 2000 23:02
16 lines
2028 bytes
2028 bytes
:: If you want, I have a script to run suck / rpost with a filter to strip your :: local headers, and I can send it to you. This is a horribly bad idea. We've got a site that's attempting to `POST' a full feed to us, making those posts appear to have originated here. I keep trying to block that site, and I wouldn't blame your ISP for blocking your POST access if they found out. Those headers you are stripping include vital information for tracing the post, and by losing the information, and posting the articles as a reader, you're causing there to be two different versions of the same news article out there when you're trying to relay a feed. Bad. Bad. To say nothing of obscuring the true origin. `POST' and rpost is not for swerver-to-swerver transfer. Use IHAVE.
Re: using suck with inn
Author: Thierry Thomas
Date: Sat, 23 Dec 2000 08:58
Date: Sat, 23 Dec 2000 08:58
24 lines
2296 bytes
2296 bytes
Le Thu, 21 Dec 2000 23:02:47 +0000 (UTC), a-fake-adress <pedophile@pedophiles.pedophile.pedo> wrote: >:: If you want, I have a script to run suck / rpost with a filter to strip your >:: local headers, and I can send it to you. > >This is a horribly bad idea. We've got a site that's attempting to >`POST' a full feed to us, making those posts appear to have originated >here. I keep trying to block that site, and I wouldn't blame your ISP >for blocking your POST access if they found out. > >Those headers you are stripping include vital information for tracing >the post, and by losing the information, and posting the articles as a >reader, you're causing there to be two different versions of the same >news article out there when you're trying to relay a feed. Bad. Bad. >To say nothing of obscuring the true origin. > >`POST' and rpost is not for swerver-to-swerver transfer. Use IHAVE. The subject of this thread is not about full feeds, but about suck, for a leaf node. -- Th. Thomas, ICQ�: 8823153 Il y a s�rement des pays qui valent le coup. [MS]
Re: using suck with inn
Author: Frank Slootweg
Date: Wed, 27 Dec 2000 15:13
Date: Wed, 27 Dec 2000 15:13
61 lines
2811 bytes
2811 bytes
I use suck 3.9.2 with INN 1.7.2, but other versions should work
similarly.
The suck package contains a sample/get.news.innxmit script which will
do the sucking and local posting and remote posting with rpost(1). The
name of this script is somewhat misleading because it does *not* use
innxmit, but *is* intended for use with INN. I advise to start with a
customized copy of this script, and let use know how you go.
You will need to set the following (the values are of course examples):
REMOTE_HOST=news.cup.hp.com
NEWSDIR=/usr/local/news
BASEDIR=/usr/local/news/suck-3.9.2/doNews
SITE=cup
TESTHOST=/usr/local/news/suck-3.9.2/testhost
RPOST=/usr/local/news/suck-3.9.2/rpost
SUCK=/usr/local/news/suck-3.9.2/suck
I changed the SUCK command to
${SUCK} ${REMOTE_HOST} -T 900 -c -bp -hl ${LOCAL_HOST} -dt ${TMPDIR} -dm ${MSGDIR} -dd ${BASEDIR}
(i.e. added "-T 900" and "-M" and deleted "-A"), but since your suck part
seems to be working, you probably want to use the options which you know
to work.
In my case, I also had to change the chown(1) command (colon instead
of dot):
chown news:${NEWSGROUP} ${OUTGOINGNEW}
The script expects a copy of sample/put.news in
SCRIPT=${BASEDIR}/put.news
Without this script, the rpost(1) will probably fail. See the
documentation for reasons.
My newsfeeds entry (newsgroups list edited) is:
cup/news.cup.hp.com\
:comp.*,news.*,rec.*\
:Tf,Wnm:
I hope this helps.
steffie <steffie@indoleeroord.penguinpowered.com> wrote:
> Hello,
> i set up a INN 2.3.0
>
> and i am using suck to fetch news.
>
> but i can't seem to find out how to get articles posted with rpost.
>
> the get.news script does its job fine, it fetches news from a newsserver,
> and
> than posts them locally to INN.
>
> but now the other way around.. ?
> anyone can give me hints or tips ?
Re: using suck with inn
Author: steffie
Date: Thu, 28 Dec 2000 12:44
Date: Thu, 28 Dec 2000 12:44
27 lines
1955 bytes
1955 bytes
"Thierry Thomas" <tthomas@mail.dotcom.fr> wrote in message news:slrn9451m5.10p2.tthomas@graf.pompo.net... > Le Thu, 21 Dec 2000 17:20:23 +0100, steffie > It could be the same problem that Message-ID: <91ssvj$s3i$1@bbs.tnss-dwp.com> > (just up or down, about newsx). If you have choosen the CNFS storage method, > you have to use sm to manipulate your articles, and it's now impossible to > have the -d parameter for rpost (like in the script given by Carlo). > > If you want, I have a script to run suck / rpost with a filter to strip your > local headers, and I can send it to you. Yes, i am using the CNFS storage method, and i did read someting about sm. but i don't know yet how to use it, so if you want to send me the scripts? yes please :) my email adres is steffie@luiemotorfiets.nl
Re: using suck with inn
Author: steffie
Date: Thu, 28 Dec 2000 12:48
Date: Thu, 28 Dec 2000 12:48
41 lines
2948 bytes
2948 bytes
"BARRY BOUWSMA IS A POSTING PEDOPHILE!!!" <pedophile@pedophiles.pedophile.pedo> wrote in message news:meowbot-AutoPost-BArRy.B0UWsMa.IS.a.PERvERSe.PEdOPhILE@netscum.dQ... > :: If you want, I have a script to run suck / rpost with a filter to strip your > :: local headers, and I can send it to you. > > This is a horribly bad idea. We've got a site that's attempting to > `POST' a full feed to us, making those posts appear to have originated > here. I keep trying to block that site, and I wouldn't blame your ISP > for blocking your POST access if they found out. > > Those headers you are stripping include vital information for tracing > the post, and by losing the information, and posting the articles as a > reader, you're causing there to be two different versions of the same > news article out there when you're trying to relay a feed. Bad. Bad. > To say nothing of obscuring the true origin. > > `POST' and rpost is not for swerver-to-swerver transfer. Use IHAVE. If i would be sucking and sending to different newsservers i agree this would not be a good idea. but i am using it to set up a local newsserver in my house (students) where there are 10 users. and the only place the postings wil go to (and come from) is the newsserver from my provider. since we don't have any nice broadband connection we want to use a local server we used leafnode for a while, but since we only want to call in to the provider once a day, INN as a local server has a lot af advantages over leafnode. running INN local has already proven so. and now i want to set it up posting our news posted local to the provider, and fetching other newsgroups from the provider.
Re: using suck with inn
Author: Thierry Thomas
Date: Thu, 28 Dec 2000 15:42
Date: Thu, 28 Dec 2000 15:42
90 lines
3687 bytes
3687 bytes
On Thu, 28 Dec 2000 13:44:41 +0100, steffie
<steffie@indoleeroord.penguinpowered.com> wrote:
>
>Yes, i am using the CNFS storage method, and i did read someting about sm.
>but i don't know yet how to use it, so if you want to send me the scripts?
>yes please :)
It's not very long, so I post it here:
(I have added some commentaries in english between ())
#v+
#!/usr/local/bin/bash
# Adapate de suck+inn-6.html d'Eric Jacoboni
# (from a script written by E. Jacoboni)
SERVEUR_DISTANT=news.dial.oleane.com
# (replace with the news server of your ISP)
OUT_GOING=oleane #my outgoing batch
PATH_SUCK=/usr/local/suck/lib
PATH_INN=/usr/local/news/bin
PATH_SPOOL=/usr/local/news/spool
NOM_BATCH=$PATH_SPOOL/outgoing/$OUT_GOING
NOM_FILTRE=$PATH_SUCK/vire_entete.sh
# On commence par poster les articles (localhost->SERVEUR_DISTANT)
# (we send the articles)
echo Envoi des articles...
if test -s $NOM_BATCH
then
rpost $SERVEUR_DISTANT -b $NOM_BATCH \
-f $NOM_FILTRE \$\$o=/tmp/filtres \$\$i /tmp/filtres && \
cat /dev/null > $NOM_BATCH || \
echo "probleme de postage" | mail -s "probleme avec rpost" news
# (problem with rpost)
else
echo "pas d'articles a poster..."
# (nothing to send)
fi
# puis on recupere les articles (SERVEUR_DISTANT->localhost)
# (we fetch from the ISP)
echo Recuperation des articles...
cd $PATH_SUCK
if test -f nouveau
then
mv -f nouveau nouveau.old
fi
# recuperation de tous les forums de l'active,
# sauf /usr/local/suck/lib/active-ignore
# (fetching every forums defined in active,
# excepted active-ignore)
suck $SERVEUR_DISTANT -c -n -A -hl localhost -br nouveau -HF /usr/local/news/db/history -LS
$PATH_INN/rnews nouveau
#v-
And here is the filter vire_entete.sh, to strip your headers:
#v+
#!/bin/sh
# Enleve les en-tetes locales refusees par l'inn du FAI.
# Convient aux innd avec le format de stockage CNFS,
# et utilise donc sm pour retrouver l'article.
TMPFILE=/tmp/tmp$$
SEDCMD="/^NNTP-Posting-Host/d"
SEDCMD2="/^Xref/d"
SEDCMD3="/^X-Complaints-To/d"
SEDCMD4="/^X-Trace/d"
SEDCMD5="/^NNTP-Posting-Date/d"
OUTFILE=$2
/usr/local/news/bin/sm $1 > $TMPFILE
if [ -f ${TMPFILE} ]; then
sed -e ${SEDCMD} ${TMPFILE} | sed -e ${SEDCMD2} | sed -e ${SEDCMD3} | sed -e ${SEDCMD4} | sed -e ${SEDCMD5} > ${OUTFILE}
if [ $? -ne 0 ]; then
echo "Erreur dans vire_entete.sh"
exit -1
fi
fi
#v-
--
Th. Thomas, ICQ�: 8823153
Il y a s�rement des pays qui valent le coup. [MS]
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