1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
Installation:
=============
Edit config.h. You won't have to change anything I guess, but see
below if you're not sure.
Do "make dep".
Do "make".
As root, do a "make install". The binary will be installed in the
news bin directory.
Copy the "sendnews" script file from the "samples" directory to some
binary directory and edit it to fit your needs. See this file for
details.
That's it! Now you're ready to spool out articles to another news
server without having an entry in its hosts.nntp file by calling the
"sendnews" script.
See "postit -\?" for a list of parameters.
How it works
============
Normally, servers exchange articles by "ihave/sendme" commands. However,
this requires an appropriate hosts.nntp entry on each side, so that they
will look upon each other as peers. Especially SLIP account users often
won't be able to persuade other server admins to have their FQDN in
hosts.nntp, so they have to retreat to another method of downlinking
articles: posting them as if they were using a newsreader frontend. This
only requires an entry in nnrpd.hosts granting post rights.
Postit takes normal INN feedfiles (as created by newsfeeds file feeds),
just like innxmit(8) does; it is a replacement for innxmit doing a
"stat/post" protocol instead of "ihave/sendme". This is not quite as
efficient as the "ihave/sendme" protocol (requiring an additional
question/answer pair), and it does not allow to keep certain headers
(namely the NNTP-Posting-*: and Sender: headers), but who cares, it
works, and the headers generated on the remote site are OK according to
RfC1036. :-) If, and only if, your local news system is installed
properly, that is. Make sure your postings have proper header lines on
your server before calling postit. The From line and the Message-ID
line MUST contain legal mail and internet FQDNs.
You should probably not call postit directly, because this will unlink
your current feedfile without generating a replacement. Use some
script like "sendnews" in the samples directory instead.
Copying:
========
The GNU general public licence applies; however, the copyright for the
code remains with the author, Chris Blum <chris@phil.uni-sb.de>.
|