{"id":13,"date":"2005-02-11T14:08:50","date_gmt":"2005-02-11T14:08:50","guid":{"rendered":"http:\/\/bingo.bananasplit.info\/wordpress\/?p=13"},"modified":"2005-04-18T09:29:47","modified_gmt":"2005-04-18T09:29:47","slug":"inn-news-server","status":"publish","type":"post","link":"https:\/\/blog.stmellion.org\/?p=13","title":{"rendered":"INN &#8211; News Server"},"content":{"rendered":"<p>I&#8217;ve been using INN for long enough now to appreciate some of its quirks and features.  Because of this, I don&#8217;t really want to install it from a package, but much prefer to build it from the source.  One of the primary reasons for this is that INN gets big, even with just the small subset of groups I hold.  By installing it from source, everything is (by default) held under a single directory of \/usr\/local\/news.  I make this a mountpoint and then my news service is totally self-contained through upgrades, reinstalls and crashes.<\/p>\n<p>Under Debian, the news user exists by default, I just changed the Home Directory and put a password on it.  Logged in as news and then copied over .bash_profile and .bashrc from another user account.<\/p>\n<p>Because I want SSL support in INN, I first need to install the openssl package, and also the libssl-dev package.<\/p>\n<p>Next I downloaded the latest INN stable build from ftp.isc.org to \/usr\/local\/src, then untar&#8217;d it and changed ownership of the new INN directory to user news.<\/p>\n<p>Ran:<br \/>\n.\/configure  &#8211;with-perl &#8211;with-openssl &#8211;with-sendmail=\/usr\/sbin\/sendmail<br \/>\nConfigure went through with no issues.<\/p>\n<p>&#8216;make&#8217; though fails with a:<br \/>\n\/usr\/bin\/ld: cannot find -lperl<br \/>\nThis is because the libperl-dev package is not installed.  Installed that and tried again.<\/p>\n<p>&#8216;make install&#8217; as root worked with no issues.  Hey, I&#8217;ve got INN installed now!<\/p>\n<p>make cert fails:<br \/>\nFor some reason Makefile thinks the path to SSLBIN is \/bin\/openssl when it should be \/usr\/bin\/openssl.  I just edited the Makefile and changed this and it ran with no problems.  I have some concerns though; what impact might this have on other parts of the compile.<\/p>\n<p>Following the INSTALL file now:<br \/>\nstorage.conf doesn&#8217;t need changing, it defaults to tradspool.<br \/>\ninn.conf needs a couple of parameters changed, all very obvious.<br \/>\nnewsfeeds comes next, obviously this requires all the feeds in it, but basic stuff below:<br \/>\nUncomment the innfeed lines and add a -y on the end of startinnfeed.<br \/>\nUncomment the inpaths statement to save path information for reporting.<br \/>\nAdd feeds as required, standard format for one below:<br \/>\n#Feed to Glorb.  Contact: xxxxx.  Email: xxxxx@glorb.com<br \/>\nnews-in.glorb.com\/news.glorb.com<br \/>\n        :*,!junk,!control*,!local*<br \/>\n        :Tm:innfeed!<\/p>\n<p>Configure incoming.conf &#8211; Very obvious one to do<br \/>\nConfigure expire.ctl &#8211; Very obvious as well, as per INSTALL instructions<br \/>\nConfigure readers.conf &#8211; Haven&#8217;t configured anything whilst testing, localhost only<br \/>\nThat&#8217;s it for configuration files.<\/p>\n<p>Make sure ~\/bin and ~\/man are configured in path and manpath.  There are options to uncomment for this in .bash_profile.<\/p>\n<p>The old INN requirement to make history databases seems to have gone away.  I&#8217;ve already got them on this build without doing anything.  Need to set ownership correctly though, they should be news:news.<\/p>\n<p>Configure Syslog:<br \/>\n# Logging for INN news system<br \/>\n#<br \/>\nnews.crit                                               \/usr\/local\/news\/log\/news.crit<br \/>\nnews.err                                                \/usr\/local\/news\/log\/news.err<br \/>\nnews.notice                                          -\/usr\/local\/news\/log\/news.notice<br \/>\n#news.debug                                       \/usr\/local\/news\/log\/news.debug<\/p>\n<p>Configure Crontab:<br \/>\n0 3 * * * \/usr\/local\/news\/bin\/news.daily expireover lowmark<\/p>\n<p>Configure \/etc\/hosts:<br \/>\nThe hosts file must have the server name directed to 127.0.0.1 or Message-ID&#8217;s will come out as &lt;foobarbaz@localhost.localdomain&gt;.  This caused me a few issues as my webserver is configured to only listen on its external network interface, so resolving the hostname to 127.0.0.1 meant I couldn&#8217;t access it from the local host.<\/p>\n<p><b>Init Script<\/b><br \/>\nI&#8217;ve pinched the \/etc\/init.d\/inn2 from the Debian package and modified it to my requirements.  Only thing to change is a couple of directories.  Having done that and tested it, I can use update-rc.d to write the init script to the correct runlevel dirs.<\/p>\n<p><b>Permissions<\/b><br \/>\nWhen upgrading, two files (inndstart and startinnfeed) need to have special permissions.  Ownership should be root:news, followed by chmod u+s.  Without these, INN will not start.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been using INN for long enough now to appreciate some of its quirks and features. Because of this, I don&#8217;t really want to install it from a package, but much prefer to build it from the source. One of the primary reasons for this is that INN gets big, even with just the small&hellip; <a class=\"more-link\" href=\"https:\/\/blog.stmellion.org\/?p=13\">Continue reading <span class=\"screen-reader-text\">INN &#8211; News Server<\/span><\/a><\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-debian","entry"],"_links":{"self":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":0,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}