HOWTO : fidonet software for unix

[ index ] [ inn ]
WARNING ! ��� �������� ���������� ������ 2.2.* � ������ �� ����� �����������. ��� ��������� ����� ��������� � �������� ������ 2.3.*, ������� ��������� �� : http://howto.id.ru/inn.html
� ��������� ����� InterNetNews package (INN) ��������������� ������������ ISC, URL : http://www.isc.org/products/INN/. ����� � ����� ��������� INN ������ 2.2.*.

����������

����� ��������� ������ � ftp://ftp.isc.org/isc/inn/, �������� inn-2.2.1.tar.gz (�� ������ ��������� ����� howto ��������� ������� ���� 2.2.2, �� � ��� ��� ���� � ��������� batcher, ��� ��������� � ����� � ������. ������� �, ��������� 2.2.2, ���� batcher �� 2.2.1), ������������ ��� � /usr/src/inn-2.2.1 : tar -xzvf inn-2.2.1.tar.gz, ������� � ���� �������. � ���������� � ���� �� ���� ��������� ��� �� $SRC. ���������, ��� ���������������� ����� ����� ������������� � /usr/local/news/.
����� ������� ���������� ����������� ���������� ���� INSTALL, ��������� ��� � ��� ����� Perl ������ �� ���� 5.004. �������� ������ : ������� ��� �� ��� � ��� ��������� (whereis perl), ����� /usr/bin/perl -v, ��� /usr/local/bin/perl -v.
������ ./configure --help, ��������� ./configure � �������������� �������. � ����������� ����� : ./configure --enable-tagged-hash --with-perl. ���� ������ ���������� ���������, �� make ; make install. ��� ������ ����������� � /usr/local/news.

���������

� /etc/manpath.config ���������
MANDATORY_MANPATH  /usr/local/news/man
�������� vipw, ��������� ������� ������������ news. �������� ��������� ��� � �������� /usr/local/news, ������ - /bin/sh. ��� ����������� ��� �������.
��� ��� ��� �������� iftoss �������� /usr/local/news/bin/rnews, �� �� (iftoss) ������ ����� ��������������� ����� - rnews ����������� news:uucp, ������� ���� ����� ��������� � /etc/group : uucp:*:66:fido
� /etc/syslog.conf ��������������� ������� � news.*, ���������� ���� :
news.crit /usr/local/news/log/news.crit
news.err /usr/local/news/log/news.err
news.notice /usr/local/news/log/news.notice

� �������� :
touch /usr/local/news/log/news.crit /usr/local/news/log/news.err /usr/local/news/log/news.notice
��������� ���������� ���� ������ news:news
������������� syslogd : killall -1 syslogd
��������� � /usr/local/news/etc.

����������� inn.conf, �������� $SRC/INSTALL � man inn.conf (������ ���������� !). � ���������� ������ ���������� ����� �������� ����� ������� :
��� Origin :
organization:  My Cool Origin
����� ������ �������. ���� ����� ������ ���� �������� � DNS. ���� �� �� ���������� � ���������, �� ����������� localhost.
server: news.domain.my
pathhost: news.domain.my

��������� ������� ����� ��� ����, ����� ������, ���������� � "�����������" ��� inn'� ����������� �� ���������, � ���������� � ���������� junk, ������ ����� �� ����� ��������� ������ autocreate'�
wanttrash: true
remembertrash: false

���� �� ������� ���� -c0 (0 - ��� �����, �� �����), �� inn ����� ��������� ������, ������� ������� ����� 14 ����. ���� -u ��������� ����������� ����� (��� ���������� ��� ifmail'�).
innflags: -u -c0


����������� expire.ctl (�������������) :
/remember/:14
��� ����� ����������, ������� ���� ���������� � ������ ������ ����� ��������� � ����� /usr/local/news/db/history (history - ��� ������ �������� � �������� ��������������).
# �������� �� ��������� ��� ���� ��
*:A:1:10:never
# ��� ������� - ������� ����� ;)
f99.local:A:never:never:never
# ������� ���
orn.*:A:14:90:180
orn.test:A:1:1:1
orn.sysop.pvt:A:never:never:never
����� ���� ���� � ���� ����������� � ����� ������ expire.ctl. ������������ � ����������� �� ������ ���������� ����� �� ����� �����. ������ � ����, ��� ��� ������ ��������� ������� ������� ��� �������������� ;)
���������� man expire.ctl

���� �� ������ ������ ����� ����������� �� ��������� �����, �� ���� ����� ��������������� nnrp.access :
admin.localhost:Read Post:admin:mypassword:*
fin.localhost:Read:buh:pwd3:ru.1csoft,ru.accounting
tech.localhost:Read Post:tech:pwd4:su.hardw.*
10.1.0.0/16:Read:::local.official

����� ������������ ������ ��� ����� � ��������� ����� - ���� r/w, ���� r/o, ���/������ ��� �����������, � ������ ��������� �������� ����� �������. ���������� ����������� � �����. ���������� man nnrp.access.
�����, ����� �� ��������� inn, �� ������� ����������� ����� � ��������� ������ �� ���������� �������� :
$ telnet news.domain.my 119
���� ������ ������ ��������� ��������� � nnrp.access, �� �������� ���-�� ����� :
200 news.domain.my InterNetNews NNRP server INN 2.2.1 25-Aug-1999 ready (posting ok).
���
201 news.domain.my InterNetNews NNRP server INN 2.2.1 25-Aug-1999 ready (no posting).
���� ��� � nnrp.access �� ���������, �� �������� :
502 You have no permission to talk. Goodbye.

������ ����������� ���� newsfeeds. ��� �������� ����� ���������� ���� �� ���� �������� inn'�, � ��� ��������� �� ���� �� ��������� ��� � ���� �� �������.
������� ���������� ����������� � ���� �����, ����� ������ ����������������� ������ ME (� ����� ������ ��� ������) :
ME:*,!junk,!control*,!f99.*::
� �����-�� FAQ ��������������� ��������� "���������" feed. ���������, ���� �� ����� �� ����� :
dummy-feed:!*::
����� ��������� ������. �������� �������� �� ��, ��� ������ ����� ������ � ��������� ���� (z2).
� ���������� ������ � ��� ����� ������ �������� ��� � ������� :

��� ��� ������
f500.n5058.z2:!*,\
  orn.*,\
  uplink.local,\
  su.os2, \
  su.os2.apps,\
  f99.local,\
  [...]
  :Tf,Wfb,B4096/1024:


��� ����, ��������� �� �� �������� ��������� �����
p1.f99.n5058.z2:!*,\
  f99.local, \
  f99.notify, \
  orn.naezd, \
  ru.unix.bsd, \
  :Tf,Wfb,B4096/1024:


� ����� ������ �����
p2.f99.n5058.z2:!*,\
  f99.local,\
  f99.notify,\
  ru.sex, \
  tyt.bce.hacpem, \
  [...]
  :Tf,Wfb,B4096/1024:


� ���� ����� ��������� �������� �� �ӣ. (����� '!' ����� '*')
p3.f99.n5058.z2:\
  *,\
  :Tf,Wfb,B4096/1024:


� ���� feed �������� �� ��� ��� - �� ������������� ��� ���������, ���� ������������ ��� � ����������� �� � carboncopy (��������� ������� � ����� 4, ������ carboncopy)
cc:\
  !my.cc,\
  !uplink.local,\
  !junk,\
  !f99.local,\
  *,\
  :Tm:ccmailer

ccmailer:\
  !*\
  :W*,Tp:/usr/local/news/bin/carboncopies *

���������� �� �������� ������ (T,W,B,<,>,C,:) - � �� ������� ����� ������ ����� �������� �����.
���������� man newsfeeds

��������� � /usr/local/news/db � ������� ���� :
������� ���� active, ��� ������ ��������� �� ���� ������� :
control 0000000000 0000000001 n
junk 0000000000 0000000001 n

� ���� ����� �� ������ ���� ������ ����� (!)
������� ���� newsgroups, ���������� �������� ����������� (� �����-�� ��������������)
control control
junk badmail

������� ���� history :
/usr/local/news/bin/makehistory -i
��������������� ���������� ����� :
mv history.n.dir history.dir
mv history.n.hash history.hash (���� �� ��������)
mv history.n.pag history.pag

������������� ����� �� ����� � /usr/local/news/db :
chown news:news *
chmod 0664 *

���� ������.

���������� ������� ������ inn'� (�� ����� ������������ news) :
su news -c /usr/local/news/bin/rc.news
��� ���� �� ������ �������� ����� ����� :
Starting innd.
Scheduled start of /usr/local/news/bin/innwatch

� � /usr/local/news/log �������� ���� news.notice (���� �� ��� �������� � /etc/syslog.conf) � ���������� ���� :
Nov  1 23:08:24 domain.my innd: SERVER descriptors 520
Nov  1 23:08:24 domain.my innd: SERVER outgoing 507
Nov  1 23:08:24 domain.my innd: SERVER ccsetup control:11
Nov  1 23:08:24 domain.my innd: SERVER lcsetup localconn:13
Nov  1 23:08:24 domain.my innd: SERVER rcsetup remconn:4
Nov  1 23:08:24 domain.my innd: dummy-feed opened dummy-feed:15:file
Nov  1 23:08:24 domain.my innd: f500.n5058.z2 opened f500.n5058.z2:16:file
Nov  1 23:08:24 domain.my innd: p1.f99.n5058.z2 opened p1.f99.n5058.z2:17:file
Nov  1 23:08:24 domain.my innd: p2.f99.n5058.z2 opened p2.f99.n5058.z2:18:file
Nov  1 23:08:25 domain.my innd: SERVER perl filtering enabled
Nov  1 23:08:25 domain.my innd: SERVER renumbering
Nov  1 23:08:50 domain.my innd: SERVER starting

� ������� innd ����� ���������, �������� ps :
$ ps -ax -Unews
  PID  TT  STAT      TIME COMMAND
  188  ??  Is     0:28.84 /usr/local/news/bin/innd -p4 -r -u -c0
  250  ??  I      0:00.01 sleep 120
  189 con- I      0:00.00 /bin/sh /usr/local/news/bin/rc.news
  193 con- I     15:29.37 /bin/sh /usr/local/news/bin/innwatch


������ inn ��������� ��� �������� ������� �� /usr/local/etc/rc.d/innd.sh :
su news -c /usr/local/news/bin/rc.news

� /usr/local/news �������� ������ news.cron (�������������� ���, �� ��������� ��������� crontab -u news news.cron) � ���������� :
0 3 * * * /usr/local/news/bin/news.daily expireover lowmark
1,11,21,31,41,51 * * * * /usr/local/news/bin/nntpsend
*/3 * * * * /usr/local/news/bin/rnews -U

���� � ��� ��� ����� usenet'������ ������, �� ������� � nntpsend ����� ��������. ���� �� ���������� ��������� �� ����, ���������� � ������ ������� ���������� ����� ��� �������. ���������� ����� ����� $SRC_INN/INSTALL - ��� ��� ��� ������� �����������.

� ������, ��� ���� �������������� � inn ����������� �����������/���������� ������ � �������������� �� �������� � ����� newsfeeds. � �� �� ��������� ������ ��� ������, ����� ���������� areafix'� - �� ������� ����, ��� ���������� ��������� �� ������� �������� ������ ����������� ������. �� ��������� ������ ��� "������" ������ � ����� �������.

����������� ��� ���������� �������������� ���������� /usr/local/news/bin/ctlinnd (��� ���������� innd). ���������� man ctlinnd. ����� ���, ��� ������ �����-���� ������ (���� newsfeeds, active) ���������� ������������� innd �������� "ctlinnd pause �������". � ������ ������ "�������" - ��� �����(�����), ������� ������� � news.notice, � ������� ����������� ��� "����������" innd. ����� ��������� ���������������� ������ ���������� �� ���������� �������� "ctlinnd reload ���_������� �������", �������� :
# ������ �� �����
ctlinnd pause Sysop edit active
# �����������
vi active
# ������������ ������. ���� ������ ��������� innd ���������� ��� �������,
# �� ������ ����� ������� (active) ������� ����� all
ctlinnd reload active Reload after edit
# ������� innd � �����, ��� ���� "�������" ������ ���� �� �� ��� � ��� ����������
ctlinnd go Sysop edit active
������ ���������� ��� news.notice. ��� �������� ������� ���� :
Feb 30 17:54:22 domain.my innd: SERVER paused Sysop edit active
Feb 30 17:54:56 domain.my innd: dummy-feed closed
Feb 30 17:54:56 domain.my innd: f500.n5058.z2 closed
Feb 30 17:54:56 domain.my innd: p1.f99.n5058.z2 closed
Feb 30 17:54:56 domain.my innd: dummy-feed opened dummy-feed:10:file
Feb 30 17:54:56 domain.my innd: f500.n5058.z2 opened f500.n5058.z2:14:file
Feb 30 17:54:56 domain.my innd: p1.f99.n5058.z2 opened p1.f99.n5058.z2:15:file
Feb 30 18:07:56 domain.my innd: SERVER reload active Reload after edit
Feb 30 18:08:05 domain.my innd: SERVER running
���� �� ������������ newsfeeds, �� �� ��������� ��������������, ����� �������� ctlinnd reload ������� ��������� ctlinnd checkfile - �� �������� ��������� newsfeeds.
��� ������� ���������� ����� �����������, �������� ������ ������������ ������� :
���������� ������ - ctlinnd newgroup ���_������ ����, �������� :
ctlinnd newgroup fido7.su.os2.apps y
ctlinnd newgroup fido7.humor.filtered n
�������� ������ - � man active. ������� : "y" - r/w, "n" - r/o.
�������� ������ :
ctlinnd rmgroup ���_������

��� ������������ ����� ��������������, �������� ������ � junk (�� ������ ������ ��� ������������� ��������� ��� ������ ������ ������ ���� ;) ����������� ��������� autocreate'�, ��������� � ����� 4, ������ autocreate

����� �������� �� ������������� ���������, ��������, ��������� ������, � ������� ���������� � ����� 5 - ���������� ������.
Hints :
This is a part of "HOWTO : fidonet software for unix", http://howto.id.ru
Original of this document is located at http://howto.id.ru/inn.2.2.html
Copyright (c) Vitaly Kuharev, 2:5058/49@fidonet, 1999-2000
Last updated : 14 nov 2000
SpyLOG