newsd.conf.pod.in 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. =head1 NAME
  2. newsd.conf - configuration files for erco's simple nntp news server
  3. =head1 DESCRIPTION
  4. I<Newsd(8)> is a standalone local NNTP news server for private
  5. newsgroup serving on a single server. It is useful for serving
  6. private newsgroup(s) to an intranet or the Internet and can act
  7. as a simple mail gateway, however it does not interface with
  8. other news servers and cannot manage distributed news feeds,
  9. i.e. Usenet news.
  10. I<Newsd> uses three types of configuration files for each
  11. instance of the server: a global configuration file called
  12. "newsd.conf", a per-group configuration file called ".config",
  13. and a per-group status file called ".info".
  14. =head1 THE NEWSD.CONF FILE
  15. By default, I<newsd> reads the file /etc/newsd.conf
  16. to obtain the global configuration for the server. The file is
  17. simple text and uses the "#" character to start comments. Each
  18. configuration line consists of a case-insensitive directive and
  19. a value separated by whitespace, for example:
  20. ServerName foo.bar.com
  21. The following directives are supported:
  22. =over
  23. =item ErrorLog value
  24. Specifies the file to use for logging information, errors, and
  25. debugging information. "stderr" specifies that the messages
  26. should be sent to the standard error file. "syslog" specifies
  27. that the messages should be logged via the syslog interface. If
  28. I<value> begins with the pipe (|) character, the rest of the
  29. value is treated as a command to pipe the error messages into.
  30. Otherwise, I<value> is treated as an absolute filename. The
  31. default is "stderr".
  32. =item HostnameLookups value
  33. When a client connects to the news server, this directive
  34. controls whether the server looks up the client's IP address.
  35. I<Value> can be "off" to disable IP address lookups (the IP
  36. address will be logged instead), "on" to enable IP address
  37. lookups, or "double" to enable IP address lookup and
  38. verification. The default is "off".
  39. =item Listen address:port
  40. =item Listen port
  41. Listens on the specified address and/or port number for new
  42. connections. I<Address> can be an IP address, hostname, or "*"
  43. to specify the "any" address; if no address is specified, "*" is
  44. assumed. I<Port> can be a port number or TCP service name. The
  45. default is to listen on address "*" (any) and port "nntp" (119).
  46. =item LogLevel value
  47. Specifies the amount of information to log; "error" specifies
  48. that only error messages should be logged. "info" specifies that
  49. informational and error messages should be logged. "debug"
  50. specifies that debugging, informational, and error messages
  51. should be logged. The default is "info".
  52. =item MaxClients number
  53. Specifies the maximum number of simultaneous clients. If
  54. I<number> is 0, then there is no limit. The default is 0.
  55. =item MaxLogSize value
  56. Specifies the maximum size for the newsd log file before it's
  57. automatically rotated. Value is in bytes. A value of 0 disables
  58. automatic size checks. The default is 1000000.
  59. =item ServerName name
  60. Specifies the hostname that is reported to clients. The default
  61. is the name reported by I<hostname(1)>.
  62. =item SendMail command
  63. Specifies the command to use when sending mail messages. The
  64. default is "@sendmail@".
  65. =item SpoolDir directory
  66. Specifies the root directory for newsgroup files and directories.
  67. The default is "@spooldir@".
  68. =item Timeout seconds
  69. Specifies the number of seconds to keep an idle news client
  70. connection open; specify 0 to disable the idle timeout. The
  71. default is 43200 seconds (12 hours).
  72. =item User name
  73. Specifies the user account the I<newsd> process will run
  74. under. The default user account is "news".
  75. =item Auth.User username
  76. =item Auth.Pass password
  77. =item Auth.Protect read|post|all
  78. =item Auth.Sleep seconds
  79. Sets the username and password used to authenticate access to the news server.
  80. Auth.Protect sets which operations the user/password protects; "read" protects
  81. read access only, "post" protects posting access only, "all" protects both read
  82. and post access.
  83. To disable authentication completely, set Auth.User, Auth.Pass and
  84. Auth.Protect to dash (-).
  85. Auth.Sleep sets the delay (in seconds) between failed attempts. [default=5]
  86. Example: Leaves reading and posting 'open', without any authentication:
  87. Auth.User -
  88. Auth.Pass -
  89. Auth.Protect -
  90. Example: Protects posting with the username 'foo' password 'bar',
  91. while allowing anonymous read access:
  92. Auth.User foo
  93. Auth.Pass bar
  94. Auth.Protect post
  95. Example: Protects reading and posting with the username 'foo' password 'bar':
  96. Auth.User foo
  97. Auth.Pass bar
  98. Auth.Protect all
  99. =back
  100. =head1 NEWSGROUP FILES AND DIRECTORY
  101. The /var/spool/news directory contains all the newsgroups and
  102. articles with one file per article and one directory per
  103. newsgroup.
  104. The directory hierarchy dictates the available news
  105. groups, e.g.
  106. /var/spool/news/rush/general
  107. is the directory for the 'rush.general' news group, and
  108. in that directory will be one file per news article, each
  109. filename being the article's number, eg:
  110. /var/spool/news/rush/general/1
  111. /var/spool/news/rush/general/2
  112. /var/spool/news/rush/general/3
  113. would be the pathnames for the three news articles whose
  114. article numbers are 1, 2 and 3. Each article contains the
  115. complete ascii text of the article, including the article's
  116. header and message body, as per RFC 1036.
  117. The directory permissions should be:
  118. chown -R news.news /var/spool/news
  119. find /var/spool/news -type d -exec chmod 755 {} \;
  120. find /var/spool/news -type f -exec chmod 644 {} \;
  121. Each active newsgroup's directory has its own .config file. For
  122. example, the newsgroup 'rush.general' would have a .config file
  123. called:
  124. /var/spool/news/rush/general/.config
  125. which might look like:
  126. description Rush render queue discussion group
  127. creator news@news.domain.com
  128. postok 1
  129. postlimit 1000
  130. ccpost erco@domain.com
  131. replyto -
  132. Any newsgroup directory that does I<not> have a .config file
  133. will not show up in users' news readers.
  134. Manual modification of these files should be done carefully if
  135. the I<newsd> daemon is running. Do the following to prevent
  136. I<newsd> from loading a file while it is being edited:
  137. 1) Make a copy of the file called ".config.new".
  138. 2) Modify the copy.
  139. 3) Rename the copy to ".config" to make it take effect.
  140. =head1 THE .CONFIG FILE FORMAT
  141. Each group's .config file is in a simple plain text format similar
  142. to newsd.conf:
  143. =over
  144. =item description text
  145. Specifies the one line description of this group, which shows up
  146. when people first subscribe to the newsgroup.
  147. =item creator email-address
  148. Specifies the email address of the owner of this group. Where
  149. mail should be sent regarding questions about the maintenance
  150. and administration of the group. This address is also used as
  151. the Errors-To: address for all email messages sent by
  152. \fRnewsd\fB.
  153. =item postok value
  154. Controls whether articles can be posted to this group. "0"
  155. indicates posting is not allowed (read-only group) while "1"
  156. indicates anyone can post to this group. The default value is
  157. "1".
  158. =item postlimit number-lines
  159. Specifies the maximum number of lines in an article. Articles
  160. will be rejected if they exceed this value. Set this value to
  161. "0" to disable the limit. The default limit is "1000".
  162. =item ccpost address[,address,...]
  163. =item ccpost -
  164. Sets the list of email addresses to be cc'ed whenever a posting
  165. is made to the group. If set to '-', no email is sent. A single
  166. line of addresses may not exceed 255 characters; to make longer
  167. lists of addresses, use separate lines, eg:
  168. ccpost a@foo.com,b@foo.com,c@foo.com
  169. ccpost d@foo.com
  170. Or to make things more readable, use one address per line:
  171. ccpost a@foo.com
  172. ccpost b@foo.com
  173. ccpost c@foo.com
  174. The default is "-".
  175. =item replyto email-address
  176. =item replyto -
  177. Specifies an email address for the Reply-To header. This forces
  178. replies to be sent to the specifies address, typically a mail
  179. gateway back to the newsgroup. If set to "-", no Reply-To header
  180. will be sent. The default is "-".
  181. =head1 .INFO FILES
  182. I<newsd> automatically creates and maintains little ".info"
  183. files in each active group's directory. Each file maintains
  184. runtime information about that group's news articles.
  185. Normally these files are automatically created and maintained,
  186. and should not be administered by hand unless manually fixing
  187. a problem, in which case the daemon should not be running.
  188. =head1 SEE ALSO
  189. =item newsd(8) -- erco's simple nntp news server
  190. =item RFC 977 -- NNTP Protocol
  191. =item RFC 2890 -- NNTP extensions
  192. =item RFC 1036 -- Usenet news messages format
  193. =head1 REPORTING BUGS
  194. Report bugs using the form at "http://www.easysw.com/~mike/newsd/".
  195. =head1 SUPPORTED NEWS READERS
  196. I<newsd> has been tested with Netscape, Mozilla, Microsoft
  197. Outlook and the tin(1) threaded news readers only. It should
  198. work with most NNTP news readers, however.
  199. =head1 AUTHORS
  200. =over
  201. =item Greg Ercolano, Topanga CA
  202. =item Mike Sweet, Hollywood, MD
  203. =back
  204. =head1 COPYRIGHT
  205. I<newsd> is copyright 2002-2004 by Greg Ercolano and Michael
  206. Sweet. This program is free software; you can redistribute it
  207. and/or modify it under the terms of the GNU General Public
  208. License as published by the Free Software Foundation; either
  209. version 2 of the License, or (at your option) any later version.
  210. =head1 NO WARRANTY
  211. This program is distributed in the hope that it will be useful,
  212. but WITHOUT ANY WARRANTY; without even the implied warranty of
  213. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  214. GNU General Public License for more details.
  215. =cut