Thread View: news.software.nntp
11 messages
11 total messages
Started by Kruno Cicmir
Mon, 29 May 2000 00:00
Please help | rpost
Author: Kruno Cicmir
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
33 lines
1620 bytes
1620 bytes
I have read all the RTFM , no success
### I have Inn 2.2.2 running on Suse Linux 6.1 -- with 10 groups
Using suck to feed Inn ----> OK!
but cant get " rpost " to send articles to upstream server !
1. batch file /var/spool/news/out.going/news.domain.com
------Cut ------------------------------
news/software/nntp/786 <392C5FC5.BEDF050E@mali.mydomain.com>
------- Cut -------------------------------
2.
rpost news.domain.com -b /var/spool/news/out.going/news.tel.hr
Connected to news.domain.com
200 news.domain.com InterNetNews server INN 2.2 21-Jan-1999 ready
Empty file, skipping
Closing connection to news.domain.com
------But the file is NOT empty!
Thanks for any Help !
Regards form Croatia.
almost
Author: Kruno Cicmir
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
26 lines
1504 bytes
1504 bytes
I have read man rpost , but i dont know to write scripts and now i have to remove the X-Trace how ?? I copy&paste script from man page (rpost) Can you send me yours script Dan ? Tnx rpost news.tel.hr -p /var/spool/news -b /var/spool/news/out.going/news.tel.hr -f /etc/news/skripta \$\$o=FILTERED_MSG \$\$i FILTERED_MSG Using Port 119 Official host name: as102.tel.hr Alias news.tel.hr Address: 205.219.255.8 Connected to as102.tel.hr 200 argos.tel.hr InterNetNews NNRP server INN 2.1 24-Jul-1998 ready (posting ok). 340 Ok 441 Can't set system "X-Trace" header Malfunction, Unable to post Article! Closing connection to as102.tel.hr Kruno.
NO LUCK
Author: Kruno Cicmir
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
14 lines
1081 bytes
1081 bytes
I cant write script that remove this : NNTP-Posting-Host: X-Trace: X-Complaints-To: Xref: However i did manualy remove this shit and then rpost posted that article
Re: almost
Author: Dan Glover
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
31 lines
1813 bytes
1813 bytes
In article <39328528.88081461@mali.globalnet.hr>, Kruno Cicmir <kruno@mali.globalnet.hr> wrote: >I have read man rpost , but i dont know to write scripts and now i have >to remove the X-Trace how ?? OK, you need to have a filter which takes out anything like that, for example: sed -e "/^Xref: /d" $1 > $2 sed -e "/X-Trace: /d" $1 > $2 This be done better by putting the commands in a separate file and only calling sed once, or even doing both in one line, but anyway... What it does is find and delete any line beginning with Xref and then any with X-Trace. $1 is the name of the input file and $2 the output, both of these are supplied in the rpost command. > rpost news.tel.hr -p /var/spool/news -b >/var/spool/news/out.going/news.tel.hr -f /etc/news/skripta >\$\$o=FILTERED_MSG \$\$i FILTERED_MSG In your case the commands seem to be in /etc/news/skripta, so follow the example above and add any other headers you need to remove. Dan -- Dan Glover (dan@dangl.demon.co.uk)
Re: help please
Author: Dan Glover
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
21 lines
1327 bytes
1327 bytes
In article <39327D54.5AEB4BC6@mali.globalnet.hr>, Kruno Cicmir <kruno@mali.globalnet.hr> wrote: >Now I get this error --> Still with rpost? I guess so... >441 Can't set system "NNTP-Posting-Host" header >Malfunction, Unable to post Article! You need to strip out that header using the filtering option since your upstream server wants to set its own. See `man rpost` for an example of how to do this. Here I have to remove a local Xref: header as well. Dan -- Dan Glover (dan@dangl.demon.co.uk)
Re: Please help | rpost
Author: Dan Glover
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
29 lines
1584 bytes
1584 bytes
In article <39327C03.FAE50139@mali.globalnet.hr>, Kruno Cicmir <kruno@mali.globalnet.hr> wrote: >1. batch file /var/spool/news/out.going/news.domain.com Is it really news.domain.com? Below in your rpost command you have news.tel.hr >rpost news.domain.com -b /var/spool/news/out.going/news.tel.hr You might also need to use the -p option, like -p /var/spool/news/ >Connected to news.domain.com >200 news.domain.com InterNetNews server INN 2.2 21-Jan-1999 ready >Empty file, skipping >Closing connection to news.domain.com Actually I'm guessing that news.domain.com is just being used as an example - since it doesn't seem to exist - in which case it's most likely that you need the -p option to set the path to your articles. Dan -- Dan Glover (dan@dangl.demon.co.uk)
help please
Author: Kruno Cicmir
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
13 lines
1036 bytes
1036 bytes
Now I get this error --> 441 Can't set system "NNTP-Posting-Host" header Malfunction, Unable to post Article! I have static IP with FQDN !!! dont know what to do. any pointers ?
Re: NO LUCK
Author: Dan Glover
Date: Tue, 30 May 2000 00:00
Date: Tue, 30 May 2000 00:00
27 lines
1420 bytes
1420 bytes
In article <3932DDF8.36F1A526@mali.globalnet.hr>, Kruno Cicmir
<kruno@mali.globalnet.hr> wrote:
Sorry for the delay...
>I cant write script that remove this :
>NNTP-Posting-Host:
>X-Trace:
>X-Complaints-To:
>Xref:
Try this as the filter:
sed -e '/^NNTP-Posting-Host: /d
/^X-Trace: /d
/^X-Complaints-To: /d
/^Xref: /d ' $1 > $2
and call the script in the way suggested by rpost. The script needs to
be executeable by whatever user is running the rpost command. Good luck!
Dan
--
Dan Glover (dan@dangl.demon.co.uk)
Re: NO LUCK
Author: Dan Glover
Date: Tue, 30 May 2000 00:00
Date: Tue, 30 May 2000 00:00
55 lines
2381 bytes
2381 bytes
In article <3934414E.A02AC643@mali.globalnet.hr>, Kruno Cicmir
<kruno@mali.globalnet.hr> wrote:
>/etc/news/skripta
>-----------------
>#!/bin/sh
>sed -e '/^NNTP-Posting-Host: /d
> /^X-Trace: /d
> /^X-Complaints-To: /d
> /^Xref: /d ' $1 > $2
That looks familiar. What happens if you do:
/etc/news/skripta < /var/spool/news/some/valid/group/123 > foo
Look in foo to see whether the lines get removed or not.
I *did* wonder whether the - in the search patterns need to be escaped,
though the above worked for me this morning. You've probably got a
different version of sed which is more strict in observance? Mine is:
$sed --version
GNU sed version 3.02
The "escaped" version would look something like:
sed -e '/^NNTP\-Posting\-Host: /d
/^X\-Trace: /d
/^X\-Complaints-To: /d
/^Xref: /d ' $1 > $2
>--> rpost news.tel.hr -p /var/spool/news -b
>/var/spool/news/out.going/news.tel.hr -f /etc/news/skripta
>\$\$o=FILTERED_MSG \$\$i FILTERED_MSG
That looks OK, but hang on a minute...
>441 Can't set system "NNTP-Posting-Date" header
>Malfunction, Unable to post Article!
You also need:
/^NNTP-Posting-Date: /d (maybe with \ added)
Make sure this is inserted between the ' ' around the commands.
Sorry if I missed in a previous post that you were getting the *date*
header rejected as well.
Dan
--
Dan Glover (dan@dangl.demon.co.uk)
Re: NO LUCK
Author: Kruno Cicmir
Date: Wed, 31 May 2000 00:00
Date: Wed, 31 May 2000 00:00
49 lines
2019 bytes
2019 bytes
/etc/news/skripta
-----------------
#!/bin/sh
sed -e '/^NNTP-Posting-Host: /d
/^X-Trace: /d
/^X-Complaints-To: /d
/^Xref: /d ' $1 > $2
----------------------
--> rpost news.tel.hr -p /var/spool/news -b
/var/spool/news/out.going/news.tel.hr -f /etc/news/skripta
\$\$o=FILTERED_MSG \$\$i FILTERED_MSG
Using Port 119
Official host name: as102.tel.hr
Alias news.tel.hr
Address: 205.219.255.8
Connected to as102.tel.hr
200 argos.tel.hr 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!
Closing connection to as102.tel.hr
---------------------------------------------
##########
It is not working this way ,
the script , or the args for the script are not good .
/etc/news/skripta is working when is only one line with sed .
?!?!?!:?@?(?*
he
I don't like the idea of switching from Inn to leafnode , no way.
Thanks Dan but I 'm still stacked .
any ideas
Kruno.
Re: It is working !!
Author: Kruno Cicmir
Date: Wed, 31 May 2000 00:00
Date: Wed, 31 May 2000 00:00
19 lines
1476 bytes
1476 bytes
sed --version --> GNU sed version 3.02
#####################################
etc/news/skripta ---
#!/bin/sh
sed -e '/^NNTP\-Posting\-Host: /d
/^X\-Trace: /d
/^X\-Complaints-To: /d
/^Xref: /d
/^NNTP-Posting-Date: /d' $1 > $2
---------------------------
Now it is OK !!
Thank you very much for your time Dan !
Kruno.
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