:

---------------------------------------------------------------
 Origin: http://www.linux.ru.org/books/uucp.html
---------------------------------------------------------------
Victor Sudakov
vas@vas.tsu.tomsk.su
1.1, 1998/3/8

UUCP (Unix to Unix copy) . - .

H FreeBSD Taylor UUCP, - :-)

, , mail.provider.ru : host1.your.domain.org, host2.your.domain.org, host3.your.domain.org. uucp. host1.your.domain.org, host2.your.domain.org, host3.your.domain.org , mail.provider.ru.

, , uucp, uucp-: provider, host1, host2 host3 . - (hostname) uucp- . H, host2.your.domain.org uucp- foo bar. , .

yourhost.your.domain.org, uucp- yourhost.

H uucp Unix :

  • uucp;
  • sendmail;
  • .

    1. H uucp

  • uucp, . :
    total 12
    drwxrwx---   3 uucp  uucp    512 15  16:23 ./
    drwxr-xr-x  10 root  wheel  2048 30  21:44 ../
    -r--r-----   1 uucp  uucp     61 23   1997 call
    -r--r-----   1 uucp  uucp    260  8   1997 config
    -rw-r-----   1 uucp  uucp    250  3  20:51 dial
    -r--r-----   1 uucp  uucp      1 25   1996 dialcode
    -r--r-----   1 uucp  uucp     14 21   1997 passwd
    -r--r-----   1 uucp  uucp     96 29   1997 port
    drwxr-xr-x   2 root  uucp    512 15  12:08 samples/
    -r--r-----   1 uucp  uucp    160 28   1997 sysin
    -r--r-----   1 uucp  uucp    366 16  16:06 sysout
    

    1.1 call

    uucp-. , , . :

    ======= call  ======
    
    # system     login      password
    provider uuyourhost Your_Secret_Password
    
    ======= call  ======
    

    1.2 config

    uucp, , . , , .

    ======= config  ======
    
    nodename yourhost #      uucp-
    spool /var/spool/uucp
    pubdir /var/spool/uucppublic
    logfile /var/spool/uucp/Log
    statfile /var/spool/uucp/Stats
    debugfile /var/spool/uucp/Debug
    sysfile sysin sysout #      -  
    portfile port
    dialfile dial
    dialcodefile dialcode
    callfile call
    passwdfile passwd
    #      
    max-uuxqts 1
    
    ======= config  ======
    
    Igor Nikolaev (2:5030/266@fidonet). , rmail -DQUEUE_ONLY. : sendmail', .

    1.3 dial

    . , imho . man chat .
    ======= dial  ======
    
    dialer idc #   ,      uucp
    dialtone w
    pause ,
    #chat "" ATZ\r\d\c OK ATM0DPW\T CONNECT \p\c
    chat "" ATZ\r\d\c OK ATM0DT\T CONNECT \p\c
    chat-fail BUSY
    chat-fail ERROR
    chat-fail NO\sDIALTONE
    chat-fail NO\sCARRIER
    #complete \d\d+++\d\dATH\r\c
    #abort \d\d+++\d\dATH\r\c
    
    ======= dial  ======
    
    , . DTR, . , , uucp . - , , .

    1.4 dialcode

    imho . .

    1.5 passwd

    , . 'uucico -l' , , . - . , , , , uu. - . :
    ======= passwd  ======
    
    uuhost1       Top_Secret_Password
    uuhost2       Smart_Password
    uuhost3       Stupid_Password
    
    ======= passwd  ======
    

    1.6 port

    . . , - . Imho . H , - - Taylor UUCP.
    ======= port  ======
    
    port port1 #  
    type modem
    device /dev/cuaa1
    dialer idc
    speed 38400
    
    port port2 #   
    type tcp
    service 540
    
    ======= port  ======
    

    1.7 sysin

    , .
    ======= sysin  ======
    
    call-login *
    call-password *
    local-send /
    local-receive /
    port port1 # ,   ,    
    chat-timeout 90
    protocol g # ,    -  
    time never #   ,     
    debug 1
    
    system host1
    myname yourhost #     host1,   
    called-login uuhost1
    
    system host2
    myname yourhost
    called-login uuhost2
    
    system host3
    myname yourhost
    called-login uuhost3
    
    ======= sysin  ======
    
    called-login - . H , . , - .

    1.8 sysout

    , . - .
    ======= sysout  ======
    
    call-login *
    call-password *
    local-send /
    local-receive /
    port port1
    chat-timeout 90
    protocol g
    time any #    .       .
    debug 1
    
    system provider
    chat ogin: \L word: \P #    call
    phone 111111
    alternate #    
    phone 222222
    alternate
    phone 333333
    
    ======= sysout  ======
    
    , uuchk. . , /etc/crontab, :
    0 * * * * uucp /usr/libexec/uucp/uucico -S provider
    uucp, 3.1

    2. H sendmail

    2.1 H sendmail.cf

    H sendmail.cf, uucp. -:
    ====== uucp.mc =========
    
    divert(-1)
    include(`../m4/cf.m4')
    VERSIONID(`@(#)uucp.mc 1.01')
    OSTYPE(bsd4.4)dnl
    
    MAILER(local)dnl
    MAILER(smtp)dnl
    MAILER(uucp)dnl
    
    FEATURE(nodns)dnl
    FEATURE(nocanonify)dnl
    FEATURE(mailertable)dnl
    FEATURE(uucpdomain)dnl
    
    define(`SMART_HOST', `uucp-dom:provider')dnl
    define(`confCOPY_ERRORS_TO', `postmaster')dnl
    
    ====== uucp.mc =========
    
    m4 uucp.mc > /etc/sendmail.cf

    , MAILER(smtp) , smtp . , uucp-dom. , - , uucp ( ).

    2.2 H mailertable

    uucp , mailertable. - uucp DNS ( uucp-dom ). , , mailertable :
    ======= /etc/mailertable ======
    
    .  uucp-dom:provider
    
    ======= /etc/mailertable ======
    
    provider - uucp- ( /etc/uucp/sysout) , , . , - uucp, mailertable :
    ======= /etc/mailertable ======
    
    .host1.your.domain.org    uucp-dom:host1
    host1.your.domain.org     uucp-dom:host1
    .host2.your.domain.org    uucp-dom:host2
    host2.your.domain.org     uucp-dom:host2
    .host3.your.domain.org    uucp-dom:host3
    host3.your.domain.org     uucp-dom:host3
    .         uucp-dom:provider
    
    ======= /etc/mailertable ======
    
    - , . , mailertable . . ,
    host1.your.domain.org uucp-dom:host1
    .host1.your.domain.org uucp-dom:host1

    ,

    host1.your.domain.org
    foo.host1.your.domain.org
    bar.host1.your.domain.org
    foo.bar.host1.your.domain.org

    .. uucp- host1. , sendmail mailertable database map, :

    makemap hash /etc/mailertable.db < mailertable

    2.3 H uudomain

    , (hostname) uucp- . uudomain uucp-. , uucp. , uudomain :
    ======= /etc/uudomain ======
    
    host1     host1.your.domain.org
    host2     host2.your.domain.org
    host3     host3.your.domain.org
    provider  mail.provider.ru
    
    ======= /etc/uudomain ======
    
    uudomain, mailertable, database map,
    makemap hash /etc/uudomain.db < uudomain

    kill -1 `cat /var/run/sendmail.pid`

    3.

    3.1 H uucp-.

    , , (host1.your.domain.org, host2.your.domain.org, host3.your.domain.org) . IP. uucp - 540 , uucico shell. uucico -l, , (/etc/uucp/passwd). - .

    3.1.1 UUCP over IP

    uucp over IP, /etc/inetd.conf , uucpd, :
    uucpd stream tcp nowait root /usr/libexec/uucp/uucico uucico -l

    H , , , , Taylor, - UUCP.

    3.1.2 mgetty

    , mgetty, shell . H, /usr/local/etc/mgetty+sendfax/login.config
    uu* uucp @ /usr/lib/uucp/uucico -l -u @

    , , uu, mgetty uucico /usr/bin/login. - , uucp- /etc/passwd. uucico -l /etc/uucp/passwd

    3.1.3 /etc/passwd

    , . uucp- /etc/passwd, :
    uuhost1:*:66:66::0:0:host1 uucp
    system:/var/spool/uucppublic:/usr/libexec/uucp/uucico

    /etc/uucp/passwd, /etc/passwd. Sergey Zimin: " uid gid uid/gid - "uucp", ! - ( , uid, ftp) uucp- uid /etc/ftpusers , ftp".


    : Victor Sudakov, 2:5005/49@FidoNet
    vas@vas.tsu.tomsk.su
    , FAQ:
  • zss@gw.dic.ru (Sergey Zimin)
  • Igor Nikolaev (2:5030/266@fidonet)

    Last-modified: Thu, 29 Apr 1999 19:55:25 GMT
    :