			FAQ  FIDOGATE
			~~~~~~~~~~~~~~~
$Id: FAQ_fidogate,v 5.2 2004/11/23 00:50:38 anray Exp $

C FAQ Serge N. Pokhodyaev (2:5020/1838, snp@ru.ru)

FAQ  Maxi Rovnich (2:5030/872, rmax@pl.school.ioffe.rssi.ru)

    -      FAQ, 
    (  ).

 FAQ     RU.UNIX.FTN ( internet
   fido7.ru.unix.ftn)    :
http://872maxi.chat.ru
______________________________________________________________________________

 ,     FAQ :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(SNP): Serge N. Pokhodyaev (2:5020/1838, snp@ru.ru)
(PVC): Peter V. Chernikoff (2:5020/2091)
(MR):  Maxi Rovnich (2:5030/872)
(VS):  Valery Shishkov (2:5040/9)
(ID):  ivan demakov (2:5000/26.600)
(DF):  Dmitry Fedotov (2:5030/1229)
(DR):  Dmitry Rodin (2:5020/5410)
(VM):  Vladimir Mosgalib (2:5030/1041.17)
(OS):  Oleg Sheremetinsky (2:5023/34.26, sheremet@kaluga.ru)
______________________________________________________________________________

 :
~~~~~~~~~~~~~~~~
 1.   ?
 2.  ?
 3.    `-snp'?
 4.  ?
 5.    ?
 6.   autocreate ?
 7.    INN,    storage API?
 8.         
    ,   .
 9.  outbound'e    ,    .   
     .
10.   read-only  mandatory ?
11.    FIDOGATE   passive?
12. FIDOGATE  .
13.   qmail  FIDOGATE?
14.   FIDOGATE  exim'?
15.   FIDOGATE  INN?
16.   areafix/filefix    MTA (sendmail, etc.)?
17.     ( FAQserver', etc.)?
18.    rununpack    "rununpack: can't save STDOUT", 
           .   
    ?
19.  sqwarcx -   ,     
      ( linux) c     
     ,    .
20.       (f)areas.bbs?
21.    `key'   passwd?
22. ӣ   FAQ,   ӣ   .  ?
23.     ,    ?
24:    golded',     . 
25.   autocreate passthru  .
______________________________________________________________________________

1.   ?
~~
(SNP):
+.    ifmail --  
     .   fidogate  ifmail
  .  ,   areafix/filefix, 
 passthru ,       .

______________________________________________________________________________

2.  ?
~~
(SNP):
   (http://www.fido.de/fidogate/).  `-snp' (. ) 
  ( )   http://f1838.euro.ru/fidogate/

(MR):  `-snp'   (DF) ,   -snp19,  
ftp://dig.pp.ru/archive/tools/ftn
______________________________________________________________________________

3.    `-snp'?
~~
(SNP):
-,        
cp866  koi8-r  ,      fidogate.
-,     ,   read-only 
mandatory ,   passive,    AKA 
 .

______________________________________________________________________________

4.  ?
~~
(SNP):
Fidogate    ${prefix}/lib/fidogate/bin/ 5 ,
     fidogate: runin, rungate, runmail,
runnews, runout

  runin   ,   inbound',  
  .    ,   
  ( routing),        .
 ,      INN,  sendmail  .
    .   .  
   ,    areas.bbs,   ,
   ,     ,   
  (    .PKT),     bad.
    passthru,      , 
   .    passthru,      ,
   (..     AKA).

  rungate     ,   outbound' 
,  (..  INN'  sensmail').

runmail, runnews, runout     (: mail, news 
  fidogate)   .

       crontab.
       fidogate.


(PVC):
 :

,      runin,   
rununpack (  ,     
  ),   runtoss. runtoss --
 ,     ftntoss, ftnroute, ftnpack. 
      ,    areas.bbs,
routing       packing.    ,
 flo', hlo', clo'.     
  outbound --      routing :

===
NetMail
send            hold    2:1234/567.0
EchoMail
sendmove        hold    2:1234/567.0
===

  packing :

===
NetMail
pack            noarc   2:1234/567.0
                        ^^^^^^^^^^     *
EchoMail
pack            noarc   2:1234/567.0
===

   rungate   ftnin   
ftninpost. ftninpost   ,    
.    rfc'    
rnews,    (news), sendmail,    (e-mail),
ftninrecomb --   .

(SNP):
    Peter V. Chernikoff.
-, pack noarc    ,   
     outbound' (rungate    ),
       4D  (   == 0).
-,   (   :)  .  
   packing ( `prog gate ...' --   ):

===
progn   gate    "${prefix}/lib/fidogate/ftn2rfc -i
                                   -x ${prefix}/lib/fidogate/ftninpost -l %s"

EchoMail
pack    gate    2:1234/567.0
NetMail
pack    gate    2:1234/567.0
===

      (..   AKA)    
outbound,    .     
 rungate.

______________________________________________________________________________

5.    ?
~~
(SNP):
    `-s <state>'      areas.bbs
( fareas.bbs).  ,        .
      `-s U',      (
)    .  -   
,      .    

	${prefix}/lib/fidogate/bin/ftnafutil subscribe

   ,         
 `-s U'         
   `-s S'.
    :  


	${prefix}/lib/fidogate/bin/ftnafutil unsubscribe

   ,         
 `-s S'         
   `-s U'.
 ftnafutil     crontab.

______________________________________________________________________________

6.   autocreate ?
~~
(SNP):
  -snp11 ( ) --      

______________________________________________________________________________

7.    INN,    storage API?
~~
(PVC & SNP):
  INN  storage API,    send-fidogate.
 :

===8<===
--- send-fidogate.orig  Mon Jan  3 17:55:42 2000
+++ send-fidogate       Thu Jan 27 15:08:43 2000
@@ -63,12 +63,12 @@
     echo "${PROGNAME}: [$$] begin ${SITE}"

 # old version using batcher
-#    time batcher -N ${QUEUEJOBS} -b500000 \
-#      -p"$RFC2FTN -b -n" \
-#      ${SITE} ${BATCHFILE}
+    time batcher -N ${QUEUEJOBS} -b500000 \
+       -p"$RFC2FTN -b -n" \
+       ${SITE} ${BATCHFILE}

 # new version using rfc2ftn in batch file mode
-    time $RFC2FTN -f $BATCHFILE -m 500
+#    time $RFC2FTN -f $BATCHFILE -m 500

     echo "${PROGNAME}: [$$] end ${SITE}"
 done
===8<===

  man batcher :)

______________________________________________________________________________

8.         
~~ ,   .

(PVC):
  :
a)    badmail, dupemail    -
   .
)      (-O2  ).  --
         .  -- 
    .

(MR):  snp-19       
  .
______________________________________________________________________________

9.  outbound'e    ,    .   
~~  .

(PVC):
RH 6.x ? H   packing   pack noarc  pack gate. 
. H RH 5.2   .

______________________________________________________________________________

10.   read-only  mandatory ?
~~~
(SNP):
   `-snp' (.  2  3  FAQ), .. 
FIDOGATE    read-only,  mandatory.  
   README,    .

______________________________________________________________________________

11.    FIDOGATE   passive?
~~~
(SNP):
  -- .     `-snp' (.  2  3  FAQ).
     README,    .

______________________________________________________________________________

12. FIDOGATE  .
~~~
(SNP):
  , FIDOGATE   .   ,   
 Linux ( , RedHat)   (.. 
 rfc1489)    koi8-r  alt ( RedHat
  /usr/lib/kbd/consoletrans/koi2alt)

   , ,   ifmail-2.14.os-p7
(   `misc/inouttabs/',  `outkoi8alt.new'),  
ftp://oskin.macomnet.ru/pub/linux/fido/outkoi8alt

    --  console-tools-cyrillic ( 
http://www.ice.ru/~vitus/).    (  
, ,  rc.local):

===
kbd_path="/usr/local/lib/kbd"
consolechars -f $kbd_path/consolefonts/alt_8x16.psf -m \
                                             $kbd_path/consoletrans/koi8-r.acm
===

______________________________________________________________________________

13.   qmail  FIDOGATE
~~~
(PVC):
,   2:5020/1354.332 -- Main
                      2:5020/1309.332 -- AKA

$ ls -lga /usr/local/ftn/route/
-rw-r-----   1 ftn      uucp           80  28 22:12 .qmail-ftn-f1309-default
-rw-r-----   1 ftn      uucp           80  22 06:22 .qmail-ftn-f1354-default

=== .qmail-ftn-f1309-default ===
|/usr/local/ftn/bin/rfc2ftn -a 2:5020/1309.332 "$DEFAULT"@"$HOST"
===

=== .qmail-ftn-f1354-default ===
|/usr/local/ftn/bin/rfc2ftn "$DEFAULT"@"$HOST"
===

=== /var/qmail/control/virtualdomains ===
p332.f1354.n5020.z2.fidonet.org:ftn-local
p332.f1627.n5020.z2.fidonet.org:ftn-local
f1309.n5020.z2.fidonet.org:ftn-f1309
.fidonet.org:ftn-f1354
===

(VM):

     .qmail-ftn-local      
______________________________________________________________________________

14.   FIDOGATE  exim'?
~~~
(PVC):
)      .
   (  ,  ).
,     : 2:5020/1354.332 -- Main
                                      2:5020/1309.332 -- AKA

=== /etc/exim/exim.conf ===
######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################

fidogate_local:
  driver = pipe
  user = ftn
  group = uucp
  command = "/usr/local/ftn/lib/rfc2ftn -i ${pipe_addresses}"


fidogate_1309:
  driver = pipe
  user = ftn
  group = uucp
  command = "/usr/local/ftn/lib/ftnmail -i -a 2:5020/1309.332 ${pipe_addresses}"

fidogate_1354:
  driver = pipe
  user = ftn
  group = uucp
  command = "/usr/local/ftn/lib/ftnmail -i ${pipe_addresses}"


######################################################################
#                      ROUTERS CONFIGURATION                         #
######################################################################

fidonet_local:
  transport = fidogate_local
  driver = domainlist
  route_file = CF/ftntable_local
  search_type = partial-lsearch*

fidonet_1309:
  transport = fidogate_1309
  driver = domainlist
  route_file = CF/ftntable_1309
  search_type = partial-lsearch*

fidonet_1354:
  transport = fidogate_1354
  driver = domainlist
  route_file = CF/ftntable_1354
  search_type = partial-lsearch*

===

 ,         
.        __ / 
smtp, local  .

=== /etc/exim/ftntable_local ===
p332.f1354.n5020.z2.fidonet.org:        p332.f1354.n5020.z2.fidonet.org
p332.f1309.n5020.z2.fidonet.org:        p332.f1309.n5020.z2.fidonet.org
===

=== /etc/exim/ftntable_1309 ===
*.f1309.n5020.z2.fidonet.org:   f1309.n5020.z2.fidonet.org
===

=== /etc/exim/ftntable_1354 ===
*.fidonet.org:       f1354.n5020.z2.fidonet.org
===

)     .
  ,     :-)) (-,   ,
 ).
,  : 2:5020/1354 -- Main
                          275:5020/8  -- AKA
                          777:5020/32 -- AKA
                          963:1/87    -- AKA

=== /etc/exim/exim.conf
######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################

fidogate:
  driver = pipe
  user = ftn
  group = uucp
  command = "/usr/local/ftn/lib/rfc2ftn -i ${pipe_addresses}"


######################################################################
#                      ROUTERS CONFIGURATION                         #
######################################################################

fidonet:
  transport = fidogate
  driver = domainlist
  route_file = /etc/exim/ftntable
  search_type = partial-lsearch*

===

=== /etc/exim/ftntable ===
## FidoNet
*.fidonet.org                   f1354.n5020.z2.fidonet.org

## HackNet
*.hacknet.org                   f8.n5020.z275.hacknet.org

## BasicNet
*.basicnet.org                  f32.n5020.z275.basicnet.org

## ViwaNet
*.viwanet.ru                    f87.n1.z963.viwanet.ru

===

)          ?

    H:  --     .

=== /usr/exim/etc/exim.conf ===
######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################

*@*     "${lookup {$2}partial0-lsearch{/usr/exim/etc/norewrite}\
 {$local_part@$domain}\
 {$1%$2@f128.n5020.z2.fidonet.org}  }" Tt

# End of Exim configuration file
===

=== /usr/exim/etc/norewrite ===
*.localhost
*.localdomain
*.digger.org.ru
*.fidonet.org
===

     Dema Olyenyov   .


(ID):
    (     faq'    )
   : 2:5000/26.600  2:5000/54.6

=== /etc/exim.conf ===

local_domains =
localhost:p6.f54.n5000.z2.fidonet.org:p600.f26.n5000.z2.fidonet.org

######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################

fido:
  driver = pipe
  user = ftn
  group = ftn
  command = "/usr/lib/fido/rfc2ftn -a ${host} -i ${pipe_addresses}"


######################################################################
#                      ROUTERS CONFIGURATION                         #
######################################################################

fido:
  transport = fido
  driver = domainlist
  route_file = /etc/fido/ftntable
  search_type = partial-lsearch*
===

=== /etc/fido/ftntable ===
*.f54.n5000.z2.fidonet.org:	p6.f54.n5000.z2.fidonet.org
*.f26.n5000.z2.fidonet.org:	p600.f26.n5000.z2.fidonet.org
*.fidonet.org:			p600.f26.n5000.z2.fidonet.org
===
______________________________________________________________________________

15.   INN  FIDOGATE.
~~~
(PVC):
.
,    alien.digger.org.ru.

=== inn.conf ===
[skip]
server:                 alien.digger.org.ru
pathhost:               alien.digger.org.ru
moderatormailer:        alien.digger.org.ru
fromhost:               alien.digger.org.ru
[skip]
innflags:               -c0 -u
[skip]
===

=== expire.ctl ===
/remember/:30
*:A:1:7:15
===

man expire.ctl  H  .

=== nnrp.access ===
stdin:Read Post:::*
127.0.0.1:Read Post:::*
192.168.3.2:Read Post:::*
localhost:Read Post:::*
alien.digger.org.ru:Read Post:::*
===

=== newsfeeds ===
ME\
    :*,\
    !junk,\
    !control\
    ::

fidogate\
    :*,!cc,\
    !junk,\
    !control\
    :Tf,Wnb:fidogate
===


(SNP):
    fidogate.conf   :

===
NewsPathTail  "fidogate!not-for-mail"
===

..  ,   newsfeeds  fidogate   
 `Path: '  RFC .

(OS):        
          :

=== newsfeeds ===
ME:!*,!junk,!control*::

fido-klg\
    :klg*,rusb*,rucb*\
    !junk,\
    !control\
    :Tf,Wnb:fido-klg

fidogate\
    :*,\
    !junk,\
    !klg*,!rusb*,!rucb*,\
    !control\
    :Tf,Wnb:fidogate
===

  send-fidogate:

===
**
# new version using rfc2ftn in batch file mode
    time $RFC2FTN -f $BATCHFILE -m 500

**
    if [ $SITE = "fido-klg" ] ; then
	time $RFC2FTN -a 2:5023/34.26 -f $BATCHFILE -m 500
    else
	time $RFC2FTN -f $BATCHFILE -m 500
    fi
===

  send-fidogate    fido-klg,   
    ,    -  .

    fidogate.conf   :

===
NewsPathTail  "fido-klg!fidogate!not-for-mail"
===

______________________________________________________________________________

16.   areafix/filefix    MTA (sendmail, etc.)?

(SNP):
.  :

=== routing ===
remapto    2:5020/1838.0     2:5020/1838.9000	"areafix"
remapto    2:5020/1838.0     2:5020/1838.9001	"filefix"
remapfrom  2:5020/1838.9000  2:5020/1838.0      "*"
remapfrom  2:5020/1838.9001  2:5020/1838.0      "*"
===

=== packing ===
progn   areafix   "/usr/local/lib/fidogate/ftnafpkt -l %s"
progn   filefix   "/usr/local/lib/fidogate/ftnafpkt -l -F %s"

NetMail
pack    areafix   2:5020/1838.9000
pack    filefix   2:5020/1838.9001
===

______________________________________________________________________________

17.     ( FAQserver', etc.)?
~~~
(SNP):
  . ,    ,   
2:5020/1838.100    <locpoint@localhost>, :

=== /usr/local/etc/fidogate/aliases ===
locpoint	2:5020/1838.100		"*"
===

=== /usr/local/etc/fidogate/routing ===
NetMail
route	hold	2:5020/1838.0	2:5020/1838.100
===

______________________________________________________________________________

18.    rununpack    "rununpack: can't save STDOUT", 
~~~        .   
    ?

(MR):
  sqwarcx.   ,   sqwish:   
http://www.fortunecity.com/meltingpot/Myrtle/216/index.html.

  rununpack:

    -    ;      "
      "..
    -        ,   ..
    -         ; sqwarcx -
        C     rununpack.

   rununpack     
,  "ARC", ..        .

(VS):
  sqwarcx    ,     
  compress.cfg.   ,     ,
 sqwarcx        "*.pkt" ( lower
case!). H   (ParToss  DOS/Win95/Win98/WinNT   
FIDOGATE  UNIX)        upper case.  
     "*.pkt"   , 
     .

          
,  (  )     
  case insensitively.  zip'   

	UNIX	Extract	/usr/bin/unzip -LCjq %a %f

 ,      
!        ,   
.

______________________________________________________________________________

19.  sqwarcx -   ,     
~~~   ( linux) c     
     ,    .

(MR):
sqwarcx     rununpack.    
    .   , -
          .

______________________________________________________________________________

20.       (f)areas.bbs?
~~~

(SNP):
-,  : fidogate-x.x.x/doc/fidogate.txt,  
`areas.bbs' EchoMail Distribution
-,  ,     `-snp'   README
 .

______________________________________________________________________________

21.    `key'   passwd?
~~~

(SNP):
     ̣  .   
  (f)areas.bbs  `-k'     ,   
    passwd   `key'   ̣ ,
      .    --  .
    `key'   ݣ   :

	&	    `%new',
		  autocreate  (   snp11)
	~	    `%delete'
	%	    `%listall' (  
		 snp11)

______________________________________________________________________________

22. ӣ   FAQ,   ӣ   .  ?
~~~

(SNP):
   snp       :

===
Jan 32 09:19:63 rfc2ftn BOUNCE: Gateway netmail from address `user@localhost'
 to `2:xxxx/xxx' not allowed - skipped
===

        ${prefix}/etc/fidogate 
`acl'     :

===
Echomail
*	*
Netmail
*	*
===

 -- .  README  .

______________________________________________________________________________

23.     ,    ?
~~~

(SNP):
    :

===
#!/bin/sh

fgpath="/usr/local/lib/fidogate"
outpath="/var/spool/fido/outpkt/news"
addr="2:xxx/xxx.xxx"
ngprefix="ftn"

(
    /bin/echo From: $1
    /bin/echo Subject: $2
    /bin/echo X-Comment-To: All
    /bin/echo Newsgroups: ${ngprefix}.$3
    /bin/echo
    /bin/cat
) | ${fgpath}/rfc2ftn -n -t -a ${addr} -O ${outpath}
===

   :

postmsg.sh <e-mail> <subject> <echotag>

______________________________________________________________________________

24:    golded',     . 
~~~
  ..  ,      -. 
   ?  ,   ?

(DR):
 ftn2rfc   ,  pkt 
 ,  hpt ,   ftn2rfc .    fidogate ,
 runin      ,   hpt
  .

______________________________________________________________________________

25.    snp21     areas.bbs  
~~~    '#',      .
     ,     ?

(MR):
H  SNP_FORBIDDEN_CREATE_KEY  onfig.h
