home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / innd_faq.zip / PART1 < prev    next >
Internet Message Format  |  1994-05-20  |  28KB

  1. Path: bloom-beacon.mit.edu!hookup!swrinde!emory!news-feed-2.peachnet.edu!bmesun1.MCG.EDU!news-feed-1.peachnet.edu!news.duke.edu!convex!cnn.exu.ericsson.se!ericom!eua.ericsson.se!sunic!EU.net!uunet!news.mentorg.com!sdl!not-for-mail
  2. From: tal@Warren.MENTORG.COM (Tom Limoncelli)
  3. Newsgroups: news.software.nntp,news.software.b,news.answers
  4. Subject: INN FAQ Part 1/4: General Information
  5. Supersedes: <inn-faq-1-766814410@Warren.MENTORG.COM>
  6. Followup-To: news.software.nntp
  7. Date: 5 May 1994 04:00:13 -0000
  8. Organization: Mentor Graphics - IC Group, Warren, NJ, USA
  9. Lines: 678
  10. Sender: tal@Warren.MENTORG.COM
  11. Approved: news-answers-request@MIT.Edu
  12. Distribution: world
  13. Expires: 05/20/94
  14. Message-ID: <inn-faq-1-768110411@Warren.MENTORG.COM>
  15. Reply-To: Tom_Limoncelli@Warren.MENTORG.COM (Tom Limoncelli)
  16. NNTP-Posting-Host: sdl.warren.mentorg.com
  17. X-Summary-1: Part 1: Common questions about INN itself, useful to people that do not currently run INN.  Also, some advice specific to certain operating systems.
  18. X-Summary-2: Part 2: Read this AFTER you've read and followed the directions in Install.ms.  Help with getting innd to start.  A tutorial on debugging posting/access problems.  A list of error messages and what they mean.
  19. X-Summary-3: Part 3: Day-to-day operational questions.  General questions asked once INN is running for a while.  Some big changes you can make.  Bug warnings for 1.4, 1.3, 1.2.
  20. X-Summary-4: Part 4: Norman's quick guide to getting started (assumes SunOS and other things), and misc. other things.
  21. Xref: bloom-beacon.mit.edu news.software.nntp:5942 news.software.b:4448 news.answers:19145
  22.  
  23. Posted-By: auto-faq 2.4
  24. Archive-name: inn-faq/part1
  25.  
  26. Last Changed: $Id: FAQ-inn.1,v 1.67 1994/04/15 21:12:30 tal Exp $
  27.  
  28.                   Part 1 of 4
  29.  
  30. INN FAQ Part 1/4: General Information:
  31.                      Questions from people that don't (yet) run INN
  32.                      Specific notes for specific operating systems
  33. INN FAQ Part 2/4: Debugging Guide & Tutorial:
  34. INN FAQ Part 3/4: Operational and Misc. Questions
  35. INN FAQ Part 4/4: Appendix A: Norman's install guide
  36.  
  37.  
  38. ------------------------------
  39.  
  40. Subject:  Table Of Contents for Part 1/4
  41.  
  42. =====================================================================
  43.         TABLE OF CONTENTS FOR PART 1/4:  General Information
  44. =====================================================================
  45.  
  46. QUESTIONS FROM PEOPLE THAT DON'T (YET) RUN INN:
  47.     Where can I get the INN software?
  48.     Where can I get the latest copy of this FAQ?
  49.     What is INN?
  50.     What machines does it run on?
  51.     INN must be really complicated since this FAQ is so long!
  52.     Can I run C News with INN?
  53.     Can I run NNTP with INN?
  54.     Can I run the reference implementation (NNTP1.5) with INN?
  55.     Can I run INN on my UUCP-only machine?
  56.     Suppose I have a 286 machine?
  57.     Does INN implement NOV, xthread (trn) or xuser/xmotd (tin) commands?
  58.     Is an ident or authorization protocol supported?
  59.     Does INN do UUCP batching like C News?
  60.     Help!  How do I configure this beast?
  61.     How do I thank the FAQ maintainer?
  62.  
  63. SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS:
  64.     AIX tips
  65.     SunOS 4.1.2 tips
  66.     Ultrix tips
  67.     HP-UX tips
  68.     Pyramid and system's where only root can have "cron" jobs.
  69.     System V based Unixes (SVR4, Solaris 2.x, SCO ODT 3.0, A/UX, ...)
  70.     Solaris 2.x special needs
  71.     Mac running A/UX 3.0
  72.     NOV problems on a Pyramid
  73.     Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  74.     Alpha OSF tips
  75.  
  76.  
  77. The FAQ was written by Rich $alz <rsalz@rodan.uu.net> and is now
  78. maintained by Tom Limoncelli <tal@warren.mentorg.com>.
  79.  
  80. These documents would not exist if it weren't for the people that have
  81. submitted questions and (most importantly) answers.  THANK YOU ALL!
  82.  
  83.  
  84. =====================================================================
  85.            QUESTIONS FROM PEOPLE THAT DON'T (YET) RUN INN
  86. =====================================================================
  87.  
  88.  
  89. ------------------------------
  90.  
  91. Subject:  Where can I get the INN software?
  92.  
  93. The official archive site is ftp.uu.net in the directory
  94. networking/news/nntp/inn.  Archie current lists over 30 archive sites;
  95. three other international sites are grasp.insa-lyon.fr in
  96. pub/unix/news/inn, munnari.oz.au in pub/news/inn, and src.doc.ic.ac.uk
  97. in computing/usenet/software/transport
  98.  
  99. The latest version of INN is 1.4sec.  This is rev. 1.4 with a slight
  100. modification of certain shell scripts to fix a security hole.  Do
  101. not run 1.4 without the patch (see part 3/4 of this FAQ).
  102.  
  103.  
  104. ------------------------------
  105.  
  106. Subject:  Where can I get the latest copy of this FAQ?
  107.  
  108. 1.  This four-part FAQ is available via FTP at any FTP site that carries
  109. INN itself.
  110.  
  111. 2.  This FAQ is also posted to news.software.nntp, news.software.b and
  112.     news.answers on the 5th and 20th of every month.
  113.  
  114. 3.  You can also get this FAQ by sending email to
  115. majordomo@warren.mentorg.com with "get file faq-inn-1" on the first
  116. line of the message.  (the Subject: of the message will be ignored.)
  117. (Substitute faq-inn-2, faq-inn-3 or faq-inn-4 to get those parts).
  118.  
  119. For example:
  120.  
  121. % echo get file faq-inn-1 | mail majordomo@warren.mentorg.com
  122. % echo get file faq-inn-2 | mail majordomo@warren.mentorg.com
  123. % echo get file faq-inn-3 | mail majordomo@warren.mentorg.com
  124. % echo get file faq-inn-4 | mail majordomo@warren.mentorg.com
  125.  
  126. or
  127.  
  128. % mail majordomo@warren.mentorg.com
  129. Subject: ignored
  130. get file faq-inn-1
  131. get file faq-inn-2
  132. get file faq-inn-3
  133. get file faq-inn-4
  134. ^D
  135.  
  136. or if you csh and are a total nerd, you can:
  137.     echo 'get file new-inn.'{1,2,3,4}@ \
  138.         | tr @ '\012' | mail majordomo@warren.mentorg.com
  139.  
  140. ...or get a real hobby.
  141.  
  142.  
  143. ------------------------------
  144.  
  145. Subject:  What is INN?
  146.  
  147. For a complete answer, why not read the Usenix paper that introduced
  148. INN to the world?  It's available as
  149. ftp.uu.net:networking/news/nntp/inn/inn.usenix.ps.Z
  150.  
  151. InterNetNews is a complete Usenet system.  The cornerstone of the package
  152. is innd, an NNTP server that multiplexes all I/O.  Think of it as an nntpd
  153. merged with the B News inews, or as a C News relaynews that reads multiple
  154. NNTP streams.  Newsreading is handled by a separate server, nnrpd, that is
  155. spawned for each client.  Both innd and nnrpd have some slight variances
  156. from the NNTP protocol (although in normal use you will never notice); see
  157. the manpages.  INN separates hosts that feed you news from those that have
  158. users reading news.  If you need to support a mixed environment you will have
  159. to do some extra work; the installation manual gives some hints.
  160.  
  161.  
  162. ------------------------------
  163.  
  164. Subject:  What machines does it run on?
  165.  
  166. If you have socket() and select() then INN will probably run on your
  167. machine.  In addition to the common platforms found around the Internet
  168. (SunOS and Ultrix, for example), INN runs on IBM`s AIX, Apple's A/UX,
  169. NeXT, Solaris 2.x, most SVR4 platforms, BSDI, most free BSD systems on
  170. Intel (NetBSD, FreeBSD, ...) and a host of others.  It might require a
  171. little bit of tweaking of some free BSD platforms that have really bad
  172. shells.
  173.  
  174.  
  175. ------------------------------
  176.  
  177. Subject:  INN must be really complicated since this FAQ is so long!
  178.  
  179. No, it's just that the FAQ is very complete.  Part 2 is so long because
  180. it includes a tutorial that tries to turn a beginner into an TCP/IP
  181. protocol expert.  Part 3 is long because the FAQ maintainer is
  182. constantly trying to add every question ever asked on
  183. news.software.nntp.  Maybe someone should volunteer to maintain an
  184. index.
  185.  
  186. A lot of the material could be integrated into the Install.ms doc.
  187.  
  188.  
  189. ------------------------------
  190.  
  191. Subject:  Can I run C News with INN?
  192.  
  193. No.  INN handles all article reception, filing, forwarding, and
  194. expiration.  You will get a corrupted database if you try to
  195. run INN with any other news system.  For testing, you can probably shut
  196. down your old system, bring up INN, and then reverse the process.  (INN
  197. uses the C News history file and DBZ database, so if you don't run C News
  198. you will have to do some fiddling around with those files.)
  199.  
  200.  
  201. ------------------------------
  202.  
  203. Subject:  Can I run NNTP with INN?
  204.  
  205. There's a confusion here.  NNTP is a protocol, defined in RFC 977.  There
  206. is also an implementation of the protocol, NNTP1.5, that many people call
  207. NNTP.  When there was only one implementation of the protocol, that was
  208. okay, but now that there are other implementations (for example, INN) it
  209. is getting confusing.  It would be as if "sendmail" were named "smtp."
  210. Please try to be clear -- do you mean the NNTP protocol, or the NNTP
  211. reference implementation currently maintained by Stan Barber?
  212.  
  213.  
  214. ------------------------------
  215.  
  216. Subject:  Can I run the reference implementation (NNTP1.5) with INN?
  217.  
  218. The quick answer is no.  INN listens on the NNTP port and handles all
  219. incoming traffic.  It receives articles, files them, and arranges for
  220. them to be forwarded to your peers.  If a site connects that is not
  221. listed as a peer (e.g., a local workstation that does newsreading) then
  222. the INN server hands the connection off to another program that handles
  223. just the NNTP commands that newsreaders use.  By default, this is nnrpd
  224. (notice the "r"), which implements the NNTP protocol for newsreaders
  225. (for example, it includes the POST command but not the IHAVE command).
  226. You can run the reference implementation server instead of nnrpd if you
  227. want.  Doing this can be useful if you have clients that want to do
  228. both reading and article transfer.
  229.  
  230.  
  231. ------------------------------
  232.  
  233. Subject:  Can I run INN on my UUCP-only machine?
  234.  
  235. Sure.  While not designed for this, several people are running INN on
  236. machines that do not have IP-connectivity (such as UUCP-only hosts) and
  237. are quite happy with it.  You might want to give it a try, especially if
  238. you think you will be joining the Internet some day.
  239.  
  240.  
  241. ------------------------------
  242.  
  243. Subject:  Suppose I have a 286 machine?
  244.  
  245. Won't work.  INN is designed to be a memory hog; a server that has been up
  246. for a few days while will have a working set size of a few to several
  247. megabytes, although not all of it will be resident.  For example, the
  248. server keeps the active file and list of who gets what in memory, as well
  249. as all articles that it is receiving.  Unless you can do things like
  250. "malloc(64 * 1024)" without pain, INN won't work on your machine.
  251.  
  252.  
  253. ------------------------------
  254.  
  255. Subject:  Does INN implement NOV, xthread (trn) or xuser/xmotd (tin) commands?
  256.  
  257. Newsreaders all need some way to quickly grab data from
  258. a range of articles.  trn, tin, nn, and others each developed
  259. their own database format, and their own extensions to the NNTP
  260. protocol for clients to read the database.  Then, Geoff Collyer
  261. invented NOV, the database to end all other databases.
  262.  
  263. Rather than support a different database format for each newsreader,
  264. INN supports Geoff Collyer's news overview database, NOV.  INN includes
  265. everything you need to create/maintain/expire NOV's .overview files.
  266. You only need Geoff's distribution (available via FTP on world.std.com
  267. src/news/nov.dist.tar.Z) if you want to see how he implements things,
  268. or to get his client library (useful when building some newsreaders).
  269.  
  270. It is very easy to configure INN to use NOV.  Read Part 3/4 of
  271. this faq: Subject: Cookbook example setting up NOV ("overchan")
  272. NB: The NOV code in INN 1.3 is buggy.  Use 1.4 or higher.
  273.  
  274. The xover command is used for querying the NOV database.  The xover
  275. command is very smart in that if the article has been canceled, the
  276. data isn't given out.  If the article is so new that it's data isn't in
  277. the NOV database, nnrpd opens the article and digs out the data.  xhrd
  278. and xpat make every effort to use NOV data before they dig the data out
  279. of the actual articles, thus making them considerably faster than other
  280. implementations.  The "xoverview" command does not exist.  If your
  281. server supports this command you need to upgrade.
  282.  
  283. What about TRN's xthread command?
  284.  
  285. The xthread command has code but it is not supported; look at
  286. $inn/nnrpd/nnrpd.h.  This code will probably vanish after 1.4.
  287.  
  288. What about TIN's many commands?
  289.  
  290. Tin commands are not supported.  However, other people have
  291. added TIN support.  See the next section.
  292.  
  293.  
  294.  
  295. ------------------------------
  296.  
  297. Subject:  Is an ident or authorization protocol supported?
  298.  
  299. An unsupported patch for nnrpd to add ident support can be found via
  300. FTP at ftp.csie.nctu.edu.tw:/pub/news/nnrpd-identd-patch.shar.gz.  It
  301. includes patches to add tin's xuser and xmotd commands as well as a
  302. list subscription system. (skhuang@csie.nctu.edu.tw)
  303.  
  304. Remember: ident information is only as valid as the server you connect
  305. to.  Any fool with root access (or anyone with a PC or Mac) can create
  306. a bogus ident server that will give out whatever information they want
  307. you to see.  It's not an authorization or identification protocol, it's
  308. just informational.
  309.  
  310. The authd protocol is added to nnrpd by <nhiro@isci.kyutech.ac.jp>.
  311. This unsupported patch can be found in
  312. ftp.geophys.hokudai.ac.jp:/pub/network/news/inn/patches/authd-patch-1.3.tar.gz
  313. The documentation is in Japanese.  Good luck.
  314.  
  315. In a future release, you will be able to log all POST commands with
  316. ident information if you so choose.  (Maybe INN 1.5)
  317.  
  318.  
  319. ------------------------------
  320.  
  321. Subject:  Does INN do UUCP batching like C News?
  322.  
  323. Not as part of the standard distribution.  The batching system right
  324. now is better than B News, but Rich has said he will be working on
  325. improving that part of INN in a future release.  Christophe Wolfhugel
  326. <Christophe.Wolfhugel@grasp.insa-lyon.fr> has written a package that is
  327. very much like the C News batching system, however.  You can find it on
  328. grasp.insa-lyon.fr in the pub/unix/news/inn/contrib directory.
  329.  
  330. Version 3 of Christophe's package includes a shell version and a Perl
  331. version.  Version 4, not yet planned will only be in Perl.  The
  332. configuration file has evolved from older releases in order to support
  333. new features like "minimum batching".
  334.  
  335.  
  336. ------------------------------
  337.  
  338. Subject:  Help!  How do I configure this beast?
  339.  
  340. READ AND FOLLOW THE "Install.ms" FILE.  This FAQ is meant to add to
  341. what Install.ms says not replace it.
  342.  
  343. Many people that thought the Install.ms doc was incomplete later
  344. re-read the "First Time Installation" portion and were amazed how much
  345. they missed (or just plain skipped) the first time.
  346.  
  347. You should also purchase the O'Reilly And Associates book on Managing
  348. Usenet to give yourself a good grounding on how to run a site.
  349.  
  350.  
  351. ------------------------------
  352.  
  353. Subject:  How do I thank the FAQ maintainer?
  354.  
  355. If you find this document useful, please consider making a donation to
  356. the maintainer's favorite charity:
  357.  
  358.     The Personal Liberty Fund
  359.     PO Box 11335
  360.     New Brunswick, NJ 08906-1335
  361.     USA
  362.  
  363. The PLF is a legal and educational organization which helps people in
  364. New Jersey, USA.  They have many on-going projects which range from
  365. combating youth suicide to legal advocacy.  Their Anti-Violence Project
  366. runs a phone hotline for reporting gay-bashing which helps hundreds of
  367. people a year.  The PLF is an all-volunteer organization and couldn't
  368. survive without donations.  The PLF is recognized by the IRS as a
  369. 501(c)3 tax-exempt charity.  Donations are tax deductible to the
  370. fullest extent of the law (U.S. citizens only).  Please write "INN" in
  371. the memo field of the check.
  372.  
  373.  
  374. ======================================================================
  375.             SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS
  376. ======================================================================
  377.  
  378.  
  379. ------------------------------
  380.  
  381. Subject:  AIX tips
  382.  
  383. Q: When I run news.daily, there's always a few lines of error
  384. messages at the end of the output:
  385.  
  386.     compress: bad file number
  387.  
  388. A:  AIX /usr/bin/compress has a bug when compressing files with zero
  389. length. Then it spits out this error.  Solution: Ignore it or use a
  390. different compress programm and change config.data accordingly.
  391. (from Kurt Jaeger <pi@rus.uni-stuttgart.de>)
  392.  
  393. Q:  innwatch doesn't work well from /etc/inittab, does it?
  394.  
  395. Q:  Nope.  Instead, you can create a "subsystem" with this command:
  396.  
  397. mkssys -s innwatch -p /usr/local/news/bin/innwatch -u news -G news -S -n 15 -f 9
  398.  
  399. Note that your path to innwatch may differ, depending on where you
  400. decided to install the inn components.  You also need to enter the
  401. command as one long line.
  402.  
  403. This will create a subsystem named "innwatch" belonging to an SRC group
  404. named "news".  The "-S" means that it uses signals for SRC to tell it
  405. when to stop and the "-n" is the SIGTERM signal, for normal shutdown,
  406. and the "-f" is the SIGKILL signal, which is sent if the process does
  407. not stop within 20 seconds.  Then, modify rc.news to issue the command
  408.  
  409.     startsrc -s innwatch
  410.  
  411. to get innwatch going.  That's it!
  412.  
  413. Shane Castle <swcxt@boco.co.gov, swcxt@csn.org>
  414.  
  415.  
  416. ------------------------------
  417.  
  418. Subject:  SunOS 4.1.2 tips
  419.  
  420. SunOS 4.1.2 (but not 4.1.1 or 4.1.3) broke the write system call but a
  421. patch is available.  Any write could fail "half way", it is just more
  422. likely to happen when writing large files and in-core DBZ writes the
  423. history file out in one chunk.  See the "Known Problems" section of the
  424. installation manual.
  425.  
  426.  
  427. ------------------------------
  428.  
  429. Subject:  Ultrix tips
  430.  
  431. Tip #1:  Ultrix has a "mmap()" function, but it doesn't do the same
  432. thing as the SunOS/BSD mmap() function.  Therefore, do not configure
  433. INN to use mmap() on a Ultrix system.  INN wants to find a mmap()
  434. function that is like the one on SunOS/BSD systems.
  435.  
  436. Tip #2:  The sendsys script breaks Ultrix 'nawk'.  You can make
  437. a 1-line change or you can switch to 'awk' or "gawk".
  438. Original line:
  439.     ${AWK} "/^$1"'[/:\\]/,/[^\\]$/' ${NEWSFEEDS} >${TEMP}
  440. Modified line:
  441.     ${AWK} "/^$1"'[\/:\\]/,/[^\\]$/' ${NEWSFEEDS} >${TEMP}
  442. The original line will work with awk, gawk, but not nawk.
  443. The modified line will work with awk, gawk, or nawk.
  444. If you have gawk running on your machine use it.  Otherwise, switch to
  445. awk.
  446.  
  447. Tip #3: The syslog on Ultrix sucks rotten eggs and Digital refuses to
  448. fix it.  (source: everyone that uses Ultrix and has ever used other
  449. systems)  Luckily, you can replace it with the routine that comes with
  450. INN.  However, some people have had better luck installing the syslog
  451. that can be found on
  452. "gatekeeper.dec.com:/pub/DEC/jtkohl-syslog-complete.tar.Z".  It still
  453. works with old clients but does new-style syslogging, too.  Works great
  454. for me so far.  (this information from:  nelson@reed.edu (Nelson
  455. Minar)).  The syslog that is shipped with INN works pretty well but
  456. there have been some claims that some old clients don't like it.
  457.  
  458.  
  459. ------------------------------
  460.  
  461. Subject:  HP-UX tips
  462.  
  463. Q.  My logs keep telling me there is no space for articles
  464. A.  Edit innwatch.ctl to use "bdf" instead of "df".
  465.  
  466. Q. I am running inn on an HP machine. INN won't start up automatically.
  467. I can start it manually.  There is no problem with news or INN once
  468. it is started.
  469.  
  470. A.  Try adding a "sleep 10" to the bottom of /etc/rc.news, or in
  471. /etc/rc, right after /etc/rc.news is invoked.  On some machines,
  472. including HP, the shell started by "#!/bin/sh" when /etc/rc is executed
  473. will exit before innd has disassociated itself from that shell.  This
  474. causes innd to exit, sometimes without printing an error message.
  475. (source: pjoslin@mbvlab.wpafb.af.mil (Paul Joslin ))
  476.  
  477. This problem goes away if you set HAVE_SETSID to "DO".  Something to do
  478. with Posix Session Leader concepts.  Ick.  (source: Steve Howie 
  479. <scotty@piranha.cs.uoguelph.ca>)
  480.  
  481. HP-UX 8.x and 9.x users might find a problem with getting innwatch to
  482. start up.  People have found that having "at" start it seems to work
  483. more reliably than other methods:
  484.  
  485. ${DOINNWATCH} && {
  486.     echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 2 min' > /dev/null
  487. }
  488.  
  489. The '&' in the command line prevents innwatch from taking up an at-job 
  490. slot.  SysV-style crons have a per-category and overall limit on the 
  491. number of jobs executing simultaneously.
  492.  
  493.  
  494. ------------------------------
  495.  
  496. Subject:  Pyramid and system's where only root can have "cron" jobs.
  497.  
  498. Your cron jobs may not work if you use:
  499.  
  500.     su news -c /usr/lib/news/bin/news.daily delayrm expireover
  501.  
  502. Instead, you must put the entire command in quotes.  Like this:
  503.  
  504.     su news -c "/usr/lib/news/bin/news.daily delayrm expireover"
  505.  
  506. Look for "Pyramid" in part ??? of this FAQ for details.
  507.  
  508. ------------------------------
  509.  
  510. Subject:  System V based Unixes (SVR4, Solaris 2.x, SCO ODT 3.0, A/UX, ...)
  511.  
  512. If you are running any non-BSD (i.e. System V based) Unix you MUST have
  513. the following option set:
  514.  
  515. ##  How should close-on-exec be done?  Pick IOCTL or FCNTL.
  516. #### =()<CLX_STYLE              @<CLX_STYLE>@>()=
  517. CLX_STYLE               FCNTL
  518.  
  519. This includes SVR4, Solaris 2.x, A/UX and SCO ODT 3.0.  This is clearly
  520. stated in the Install.ms file and repeated here since so many people
  521. post to news.software.nntp after ignoring the warnings.
  522.  
  523. If it isn't FCNTL, you'll get tons of overchan processes hanging
  524. around.  (source: Philip Gladstone <philip@charon.cto.citicorp.com>)
  525.  
  526. In SCO ODT 3.0 and MOST systems, innd will link and run if you use
  527. IOCTL but eventually will stop answering incoming calls.
  528.  
  529. Don't be fooled.  Just because it compiles doesn't mean it's going to
  530. work.
  531.  
  532. If you start innd on an AT&T SysV Rel 4.0 machine and get syslog
  533. messages like:
  534.     localhost:15 cant setsockopt(SNDBUF) Protocol error
  535.     localhost:15 cant setsockopt(RCVBUF) Protocol error
  536. then you should FIRST try to change HAVE_UNIX_DOMAIN to "DONT" in
  537. config.data.  If that doesn't fix the problem, you should comment out
  538. the "setsockopt()" calls and things will work.
  539.  
  540. Many SVR4 for i486 binaries (sendmail, mh, vmail, innd, rnews are now
  541. on ftp.germany.eu.net in pub/comp/i486/svr4/*.SVR4.tgz But remember
  542. that some of the above need site specific changes, so their usefulness
  543. may be limited.
  544.  
  545. If your SVR4 system still doesn't run correctly, check the
  546. Solaris 2.x suggestions.
  547.  
  548.  
  549. ------------------------------
  550.  
  551. Subject:  Solaris 2.x special needs
  552.  
  553. Under Solaris 2.x (where x = 0, 1, 2 or 3) you need to change
  554. the file "getfqdn.c".  Find the lines that read:
  555.  
  556.     if (strchr(hp->h_name, '.') == NULL) {
  557.         /* Try to force DNS lookup if NIS/whatever gets in the way. */
  558.         (void)strncpy(temp, buff, sizeof buff);
  559.         (void)strcat(temp, ".");
  560.         hp = gethostbyname(temp);
  561.     }
  562.  
  563. and delete them.
  564.  
  565. Under Solaris 2.[012] (SunOS 5.0, 5.1, 5.2) you must add the following
  566. at the beginning of each file using gethostbyname():
  567.  
  568. #define gethostbyname __switch_gethostbyname
  569.  
  570. Under Solaris 2.3 gethostbyname() might work without changes depending
  571. on your configuration.  We haven't figured out when they work and when
  572. they don't.  If you run into problems, try to change "gethostbyname()"
  573. to "solaris_gethostbyname()" and then use the gethostbyname() listed in
  574. the Solaris Porting FAQ.  This isn't a perfect solution, because you
  575. now need a different binary for Solaris 2.[012] systems.
  576.  
  577. It would be great if someone were to submit a solaris_gethostbyname()
  578. function who's binary works under all Solaris revs and gives all the
  579. semantics of BSD gethostbyname().  In particular, one that doesn't have
  580. the problems discussed in sun bugid #1126573 or #1135988.  It would be
  581. amazing if this was submitted by one of the many Sun employees that
  582. flame the INN FAQ maintainer in comp.sys.sun.admin everytime he bitches
  583. about how much he hates Solaris 2.x. :-)
  584.  
  585. Under all Solaris 2.* versions there is a problem with innwatch.ctl.
  586. It expects to use "df -i" to find out how many inodes are free on your
  587. disk.  /usr/{sbin,5bin,bin}/df doesn't support the "-i" option.  You
  588. have to use "/usr/ucb/df -i" instead, since this version of df includes
  589. the "-i" option.
  590.  
  591.  
  592. ------------------------------
  593.  
  594. Subject:  Mac running A/UX 3.0
  595.  
  596. Tip #1: Use the INN malloc.
  597.  
  598. Tip #2:  If you are running INN 1.4 on a Mac running A/UX 3.0.1, Every
  599. so often, (generally when someone fires up a reader), INN goes beserk.
  600. Syslog says:
  601.  
  602.     innd: ME cant select Bad file number
  603.  
  604. This message repeats about 20 times per second.  It freezes up my
  605. computer and I need to reboot.
  606.  
  607. That's a kernel bug. You do have to reboot.
  608.  
  609. If you compiled inn with gcc, don't. My experience was that somehow, if
  610. INN was compiled with GCC the kernel bug is triggered, but that doesn't
  611. happen with cc.
  612.  
  613.  
  614. ------------------------------
  615.  
  616. Subject:  NOV problems on a Pyramid
  617.  
  618. Q:  I just turned on the overview stuff and I don't think news.daily is
  619. properly expiring the .overview files.  I'm using a Pyramid.
  620.  
  621. A:  Do you need quotes in your crontab entry?  Look at your news.daily
  622. report -- expire using "expireover delayrm" should take a few minutes.
  623. If it takes longer than, say, 10-20 minutes, then the keywords aren't
  624. being seen by news.daily so perhaps the commandline quoting is wrong.
  625.  
  626. i.e. you had:
  627.  
  628.     su news -c /usr/lib/news/bin/news.daily delayrm expireover
  629.  
  630. You should have:
  631.  
  632.     su news -c "/usr/lib/news/bin/news.daily delayrm expireover"
  633.  
  634.  
  635. ------------------------------
  636.  
  637. Subject:  Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  638.  
  639. Disclaimer:  First of all, if you have to set HAVE_UNIX_DOMAIN to DONT,
  640. YOU HAVE TO SET IT to DONT.  It's not a choice you can make, it's a
  641. description of the operating system that you purchased.  If you wrongly
  642. set this variable to DO your system isn't going to work *at* *all*.
  643.  
  644. When you use the POST via NNTP, you are talking to nnrpd.  nnrpd cleans
  645. up your headers, adds the missing headers that it is allowed to add,
  646. checks whatever it checks, and then submits the finalized version to
  647. innd.  How does it talk to innd?
  648. If you have HAVE_UNIX_DOMAIN set to DO, nnrpd opens a Unix domain
  649. socket and sends the text.  At this point it is talking to innd
  650. somewhat like ctlinnd does.  innd can trust that the post isn't
  651. forged since it is coming from a program trustworthy enough to
  652. get to the socket (which isn't much).
  653. If you have HAVE_UNIX_DOMAIN set to DONT, it has no choice but to open
  654. a socket to port 119, issue the "IHAVE" command, and send the text that
  655. way (just like a remote newsreader).  This means that innd (not another
  656. nnrpd) has to be at the other end of the pipe.  If it opens the
  657. connection and sees a "nnrpd" you're hosed and you get "441 480
  658. Transfer permission denied".  (Better the "441 480" message than an
  659. infinate loop of nnrpd's connecting to nnrpd's!)  To get innd to not
  660. hand off the connection to a nnrpd process, you must have the host's
  661. name in the hosts.nntp file.  (don't forget to do "ctlinnd reload
  662. hosts.nntp")
  663.  
  664. If you have your host's name in the hosts.nntp file, then any
  665. newsreader running on your nntphost must be "INN-aware" (i.e. that they
  666. issue the "mode reader" command) or they must read news via the file
  667. system instead of NNTP.
  668.  
  669. If you have NNTP-based newsreaders that can't send the "mode reader"
  670. command, you can try including "server: localhost" in your inn.conf
  671. file, but then you must have a different inn.conf file for the other
  672. machines.  If you can't do that, you have no other options but to
  673. recompile your newsreaders.
  674.  
  675. Remember, if you change your inn.conf file, you must shutdown and
  676. restart innd.  There is no "ctlinnd reload inn.conf" command.
  677.  
  678.  
  679. ------------------------------
  680.  
  681. Subject:  Alpha OSF tips:
  682.  
  683. To compile INN for the DEC Alpha, follow the instructions in the INN
  684. patch archive on ftp.pop.psu.edu:/pub/src/news/inn-patches
  685.  
  686. In rc.news you need to start $INNWATCH using the following:
  687.  
  688. ${DOINNWATCH} && {
  689.     echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 2 min' > /dev/null
  690. }
  691.  
  692. The '&' in the command line prevents innwatch from taking up an at-job
  693. slot.  SysV-style crons have a per-category and overall limit on the 
  694. number of jobs executing simultaneously.
  695.  
  696. -- 
  697. Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
  698. "Psst!  Hey, Anthony!  Y'know what I        | Disclaimer:  I do not
  699. like about existing?"  "Uh... uh... what?"  | speak for Mentor Graphics.
  700. "Possessing a physical extension."  -TSA    |
  701.