| Browse in : |
All
> Documents
> Man Pages
> Maintenence Commands
(907)
|
Once the files and sockets have been opened, innd waits for connections and data to be ready on its ports by using select(2) and non-blocking I/O. If no data is available, then it will flush its in-core data structures. The default number of seconds to timeout before flushing is set as <DEFAULT_TIMEOUT in include/config.h> (typically 300) seconds.
If innd gets an ENOSPC error (see intro(2)) while trying to write the active file, an article file, or the history database, it will send itself a ``throttle`` command. This will also happen if it gets too many I/O errors while writing to any files.
Some parameters in inn.conf(5) can also be set innd`s option. In this case, parameters in inn.conf(5) are overridden by those options.
Inndstart is a small front-end program that opens the NNTP port, sets its userid and groupid to the news maintainer, and then execs innd with the ``-p`` flag and a minimal secure, environment. This is a small, easily-understood front-end program that can be used if a site does not want to run innd with root privileges.
When a control message arrives, the first word of the text is converted to lowercase except for ``cancel`` and used as the name of the program to execute; if the named program does not exist, then a program named <pathcontrol in inn.conf>/default is executed.
All control programs are invoked with four parameters. The first is the address of the person who posted the message; this is taken from the Sender header. If that header is empty, then it is taken from the From header. The second parameter is the address to send replies to; this is taken from the Reply-To header. If that header is empty then the poster`s address is used. The third parameter will be a name under which the article is filed, relative to the news spool directory. The fourth parameter is the host that sent the article, as specified on the Path line.
If <usecontrolchan in inn.conf> is ``true``, all control messages except for the cancel will never processed by external program fork`ed by innd. Instead they can be processed by controlchan script which is invoked as channel program by innd, and you need to setup newsfeeds(5) to use this script. Processing by controlchan can reduce excessive load if many control messages arrive in a short time.
The distribution of control message is also different from those of standard articles.
Control messages are normally filed in the newsgroup named control. They can be filed in subgroups, however, based on the control message command. For example, a newgroup message will be filed in control.newgroup if that group exists, otherwise it will be filed in control.
Sites may explicitly have the ``control`` newsgroup in their subscription list, although it is usually best to exclude it. If a control message is posted to a group whose name ends with the four characters ``.ctl`` then the suffix is stripped off and what is left is used as the group name. For example, a cancel message posted to ``news.admin.ctl`` will be sent to all sites that subscribe to ``control`` or ``news.admin.`` Newgroup and rmgroup messages receive additional special treatment. If the message is approved and posted to the name of the group being created or removed, then the message will be sent to all sites whose subscription patterns would cause them to receive articles posted in that group.
If <mergetogroups in inn.conf> is ``true``, if an article is posted to a newsgroup that starts with the three letters ``to.`` it will get special treatment if the newsgroup does not exist in the active file: the article is filed into the newsgroup ``to`` and it is sent to the first site named after the prefix. For example, a posting to ``to.uunet`` will be filed in ``to`` and sent to the site ``uunet.``
The following headers, if present, are removed:
Date-Received Posted Posting-Version Received Relay-Version
The local site`s name (as determined by the ``pathhost`` value in inn.conf(5)) and an exclamation point are prepended to the Path header, if the first site`s name in the header is different from local one.
The Xref header is removed and a new one created.
The Lines header will be added if it is missing.
Innd does not rewrite incorrect headers. For example, it will not replace an incorrect Lines header, but will reject the article.
mon dd hh:mm:ss.mmm + feed <Message-ID> site... mon dd hh:mm:ss.mmm j feed <Message-ID> site... mon dd hh:mm:ss.mmm c feed <Message-ID> site... mon dd hh:mm:ss.mmm - feed <Message-ID> reason... mon dd hh:mm:ss.mmm ? feed <Message-ID> reason...
There can also be a hostname and size field after the Message-ID depending on the ``nntplinklog`` and ``logsize`` options in inn.conf(5)
The first three fields are the date and time to millisecond resolution. The fifth field is the site that sent the article (based on the Path header) and the sixth field is the article`s Message-ID; they will be a question mark if the information is not available.
The fourth field indicates whether the article was accepted or not. If it is a plus sign, then the article was accepted. If it is the letter ``j`` then the article was accepted, but all of newsgroups have an ``j`` in their active field, so the article was filed into the ``junk`` newsgroup. If the fourth field is the letter ``c``, then a cancel message was accepted before the original article arrived. In all three cases, the article has been accepted and the ``site...`` field contains the space-separated list of sites to which the article is being sent.
If the fourth field is a minus sign, then the article was rejected. The reasons for rejection include:
"%s" header too long "%s" wants to cancel <%s> by "%s" Article exceeds local limit of %s bytes Article posted in the future -- "%s" Bad "%s" header Can`t write history Duplicate Duplicate "%s" header EOF in headers Linecount %s != %s +- %s Missing %s header No body No colon-space in "%s" header No space Space before colon in "%s" header Too old -- "%s" Unapproved for "%s" Unwanted newsgroup "%s" Unwanted distribution "%s" Whitespace in "Newsgroups" header -- "%s"
If the fourth field is the letter ``?``, then the article includes strange strings which is CR without LF or LF without CR. Those characters are used together as ``CRLF`` to indicate end of line. Currently this log entry just indicates the weirdness of article, and innd never rejects it for this reason.
Note that if an article is accepted, and <wanttrash in inn.conf> is set to ``yes`` and none of the newsgroups are valid, it will be logged with two lines, a ``j`` line and a minus sign line.
Innd also makes extensive reports through syslog. The first word of the log message will be the name of the site if the entry is site-specific (such as a ``connected`` message). The first word will be ``SERVER`` if the message relates to the server itself, such as when a read error occurs.
If the second word is the four letters ``cant`` then an error is being reported. In this case, the next two words generally name the system call or library routine that failed, and the object upon which the action was being performed. The rest of the line may contain other information.
In other cases, the second word attempts to summarize what change has been made, while the rest of the line gives more specific information. The word ``internal`` generally indicates an internal logic error.
Innd will catch SIGUSR1 signal and recreate the control channel which is typically used for ctlinnd(8).
Microsoft will no longer play under the bright lights of Major League Baseball, which has decided to throw out the vendor's Silverlight browser add-on in favor of Adobe's Flash.
ARM European Technical Conference - VirtualLogix", Inc., the Real-Time Virtualization" company, today announced support for all multicore platforms based on the ARM11" MPCore" and ARM Cortex"-A9 multicore ...
Defense attorney William DuBois and Hans Reiser confer during Reiser's murder trial.
The ACL plugin in dovecot prior to version 1.1.4 treated negative access rights as though they were positive access rights, which allowed attackers to bypass intended access restrictions .
The new 64-bit build of Flash Player 10 for Linux allows users running 64-bit OSes to browse the web using purely native code.
ArchiveExplorer BK Timeline Cast: Lawyers Contracts Courts DRM GPL HTML How To IBM Timeline Legal Docs MS Litigation Novell Timeline Novell v. MS Novell-MS Deal ODF/OOXML OOXML Appeals Patents Quote Database ...
Microsoft on Tuesday hit another high-performance computing milestone by placing its server for the first time in the top 10 on the list of the Top 500 super computers as judged by Top500.org. Just a year ago, ...
It was probably inevitable given what Google did with Gears, but Yahoo said Tuesday it's releasing BrowserPlus software as open source software.
Jamie Strandboge =========================================================== Ubuntu Security Notice USN-667-1 November 17, 2008 firefox, firefox-3.0, xulrunner-1.9 vulnerabilities CVE-2008-0017, CVE-2008-4582, ...