INNXMIT(8)INNXMIT(8)NAMEinnxmit - send Usenet articles to a remote NNTP server
SYNOPSISinnxmit [ -A alt_spool ] [ -a ] [ -c ] [ -d ] [ -l ] [ -M
] [ -r ] [ -s ] [ -t timeout ] [ -T timeout ] [ -p ] [ -P
portnum ] host file
DESCRIPTION
Innxmit connects to the NNTP server at the specified host
(validating itself via passwd.nntp(5) if possible) and
sends it the articles specified in the batchfile named
file. It is normally invoked by a script run out of
cron(8) that uses shlock(1) to lock the host name, fol-
lowed by a ctlinnd(8) command to flush the batchfile.
If the file is not an absolute pathname, it is taken rela-
tive to the <pathoutgoing in inn.conf> directory. It is
normally written by specifying the ``Wnm'' flags in the
newsfeeds(5) file. Each line in the batchfile should be
in one of the following formats:
filename Message-ID * (see note)
filename
The filename field names the article to be sent. If it is
not an absolute pathname it is taken relative to the news
spool directory, <patharticles in inn.conf>. If the Mes-
sage-ID field is not specified, it will be obtained by
scanning the article. The filename and Message-Id fields
are separated by a space.
Note: If you use this format, you can put additional
fields on the line after the Message-ID so that you can
process the batch by a filter in your batch script (such
as adding the article size and splitting batches by that
size). Innxmit will ignore any fields after the Message-
ID, but will rewrite the additional fields if it has to
requeue any articles.
If a communication error such as a write(2) failure
occurs, innxmit will stop sending and rewrite the batch-
file to contain the current article and any other unsent
articles.
OPTIONS-t Innxmit normally blocks until the connection is
made. To specify a timeout on how long to try to
make the connection, use the ``-t'' flag.
-T To specify the total amount of time that should be
allowed for article transfers, use the ``-T'' flag.
The default is to wait until an I/O error occurs,
or all the articles have been transferred. If the
1
INNXMIT(8)INNXMIT(8)
``-T'' flag is used, the time is checked just
before an article is started; it will not abort a
transfer that is in progress. Both values are mea-
sured in seconds.
-P To specify a port number other than the default,
use the -P flag.
-r If the remote server sends an unexpected reply
code, innxmit will requeue the article and proceed.
Use the ``-r'' flag if the article should not be
requeued.
-v Upon exit, innxmit reports transfer and CPU usage
statistics via syslog(3). If the ``-v'' flag is
used, they will also be printed on the standard
output.
-a If all articles were sent successfully, innxmit
will remove the batchfile, otherwise it will
rewrite it to contain the list of unsent articles.
If no articles were sent or rejected, the file is
left untouched. This can cause the batchfile to
grow excessively large if many articles have been
expired and there are communication problems. To
always rewrite the batchfile, use the ``-a'' flag.
-p If the ``-p'' flag is given, then no connection is
made and the batchfile is purged of entries that
refer to files that no longer exist. This implies
the ``-a'' flag.
-d Use the ``-d'' flag to print debugging information
on standard error. This will show the protocol
transactions between innxmit and the NNTP server on
the remote host.
-l The ``-l'' flag is used to turn off logging of rea-
sons the remote gives for rejecting an article.
-M If the ``-M'' flag is used then innxmit will scan
an article's headers before sending it. If the
article appears to be a MIME article that is not in
seven-bit format, the article will be sent in
``quoted-printable'' form.
-A The ``-A'' flag may be used to specify an alternate
spool directory to use if the article is not found;
this would normally be an NFS-mounted spool direc-
tory of a master server with longer expiration
times.
-s Innxmit will attempt to negotiate a streaming mode
extension of the NNTP protocol with the server at
2
INNXMIT(8)INNXMIT(8)
connect time. If successful it will use a slightly
different protocol that enhances throughput. If
the server does not recognize the streaming mode
negotiation innxmit will revert to normal NNTP
transfer mode. Use the ``-s'' flag to disable the
attempt to negotiate the streaming mode extension.
-c In streaming mode a check of each message ID is
still made to avoid sending articles already on the
server. The ``-c'' flag will, if streaming mode is
supported, result in sending articles without
checking. This results in slightly greater
throughput and may be appropriate when it is known
that the site could not already have the articles
such as in the case of a "leaf" site.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNet-
News. This is revision 1.1.2.1, dated 1999/06/12.
SEE ALSOctlinnd(8), inn.conf(5), innd(8), newsfeeds(5), shlock(1).
3