| Login | Home | Bugs & Features | Documentation | Download | Forums | ||
Articles · Documentation · Comments NEWSD.CONF(1)Namenewsd.conf - configuration files for erco's simple nntp news serverDescriptionNewsd|(8) is a standalone local NNTP news server for private newsgroup serving on a single server. It is useful for serving private newsgroup(s) to an intranet or the Internet and can act as a simple mail gateway, however it does not interface with other news servers and cannot manage distributed news feeds, i.e. Usenet news.Newsd uses three types of configuration files for each instance of the server: a global configuration file called "newsd.conf", a per-group configuration file called ".config", and a per-group status file called ".info". The Newsd.conf FileBy default, newsd reads the file /etc/newsd.conf to obtain the global configuration for the server. The file is simple text and uses the "#" character to start comments. Each configuration line consists of a case-insensitive directive and a value separated by whitespace, for example:
ServerName foo.bar.com
The following directives are supported: ErrorLog value
HostnameLookups value
Listen address:port
Listen port
LogLevel value
MaxClients number
MaxLogSize value
ServerName name
SendMail command
SpoolDir directory
Timeout seconds
User name
Newsgroup Files And DirectoryThe /var/spool/news directory contains all the newsgroups and articles with one file per article and one directory per newsgroup.The directory hierarchy dictates the available news groups, e.g.
/var/spool/news/rush/general
is the directory for the 'rush.general' news group, and in that directory will be one file per news article, each filename being the article's number, eg:
/var/spool/news/rush/general/1
/var/spool/news/rush/general/2
/var/spool/news/rush/general/3
would be the pathnames for the three news articles whose article numbers are 1, 2 and 3. Each article contains the complete ascii text of the article, including the article's header and message body, as per RFC 1036. The directory permissions should be:
chown -R news.news /var/spool/news
find /var/spool/news -type d -exec chmod 755 {} e;
find /var/spool/news -type f -exec chmod 644 {} e;
Each active newsgroup's directory has its own .config file. For example, the newsgroup 'rush.general' would have a .config file called:
/var/spool/news/rush/general/.config
which might look like:
description Rush render queue discussion group
creator news@news.domain.com
postok 1
postlimit 1000
ccpost erco@domain.com
replyto -
Any newsgroup directory that does not have a .config file will not show up in users' news readers. Manual modification of these files should be done carefully if the newsd daemon is running. Do the following to prevent newsd from loading a file while it is being edited: 1) Make a copy of the file called ".config.new". 2) Modify the copy. 3) Rename the copy to ".config" to make it take effect. The .config File FormatEach group's .config file is in a simple plain text format similar to newsd.conf:description text
creator email-address
postok value
postlimit number-lines
ccpost address[,address,...]
ccpost -
ccpost a@foo.com,b@foo.com,c@foo.com
ccpost d@foo.com
Or to make things more readable, use one address per line:
ccpost a@foo.com
ccpost b@foo.com
ccpost c@foo.com
The default is "-".
replyto email-address
replyto -
.info Filesnewsd automatically creates and maintains little ".info" files in each active group's directory. Each file maintains runtime information about that group's news articles. Normally these files are automatically created and maintained, and should not be administered by hand unless manually fixing a problem, in which case the daemon should not be running.See Alsonewsd|(8) - erco's simple nntp news server
RFC 977 - NNTP Protocol
RFC 2890 - NNTP extensions
RFC 1036 - Usenet news messages format
Reporting BugsReport bugs using the form at "http://www.easysw.com/~mike/newsd/".Supported News Readersnewsd has been tested with Netscape, Mozilla, Microsoft Outlook and the tin|(1) threaded news readers only. It should work with most NNTP news readers, however.AuthorsGreg Ercolano, Topanga CA
Mike Sweet, Hollywood, MD
Copyrightnewsd is copyright 2002-2004 by Greg Ercolano and Michael Sweet. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.No WarrantyThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.User Comments Add CommentNo comments for this page. | Newsd copyright 2002-2009 by Greg Ercolano and Michael R Sweet. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | ||||||