
  __________________________________________________________________________

ԭʼļCyrus IMAP mini-HOWTO
ΰװ Cyrus IMAP ŷ
ڣ2000/04/30
άƵ  happyhuang@sohu.com
  __________________________________________________________________________


mini-HOWTO install Cyrus IMAP Server
Kevin Mitchell (kevin@iserv.net)
v0.9, 21 January 1998

ĵּṩ Linux ϵͳаװ Cyrus IMAP һЩ.

   1. :
   
   л Bob Anderson (boba@iserv.net)  Jorge Paramo (jorge@iserv.net),
   ʹ linux и.
   
   ʲ IMAP ԼΪʲҪʹ?
   
   IMAP( ʼЭ ) ṩһַԶ̷ϵĵʼ BBS
   ʼķ. IMAP ձ鱻Ϊ POP ( ʾЭ ) ʼ. IMAP 
   ûӲͬĻϷǵĵʼЩʼ. ʼķ
   ʽЧ, Ҷնû˵иĺô.
   
   ַҵϸ:
   [1]http://www.imap.org/whatisIMAP.html
   
   IMAP  POP ıȽϿɲμ:
   [2]http://www.imap.org/imap.vs.pop.brief.html
   
   ΪʲҪ Cyrus ?
   
   Cyrus Ƴһ̨һû¼ķ. Cyrus ҲΪ
   Unix ϵձ IMAP ֮һ. һǻʢٴѧ IMAP 
   .
   [3]ftp://ftp.cac.washington.edu/imap/imap.tar.Z
   
   2. ҵϵͳ֮ϸ
   
   Ѿɹڷֱ Linux Kernel 2.1.79  2.0.33  486DX66 
   Pentium ̨ϰװ Cyrus ϵͳ. ̨ǻ Slackware 3.4
   .
   
   3. Tcl İװ
   
   ڰװ Cyrus ֮ǰȷѾԼĻϰװ Tcl, 㽫޷ʹ
   Cyrus Admin Tool (cyradm).
   
   ַҵ tcl Դ:
   [4]ftp://ftp.sunlabs.com/pub/tcl/
   
   ڰװ֮, ȷĿ¼ /usr/local/lib/ ´ libtcl.a ļ. Tcl 8.0 ʹ
   õ libtcl8.0.a, Ӧ Ϊһ:
        # ln -s libtcl8.0.a libtcl.a

   4. makedepend װ
   
   ϵͳмǷ makedepend . ûҲõ, Cyrus Դ
   о. ( Ұװ Slackware 3.4 оû makedepend . )
   
   Ϊ˰װ makedepend , Ƚѹ Cyrus ķַ, Ȼ makedepend Ŀ¼,
   :
        ./configure
        make
        cp ./makedepend /usr/local/bin/makedepend

   5. Cyrus İװ
   
   Сĵذ Cyrus ַеעаװ. ַҵ
   Щעһ:
   [5]http://andrew2.andrew.cmu.edu/cyrus/imapd/install.html
   
   ĳЩװһЩʾ:
   
   õ Slackware 3.4 ( ʹ Ӱӿ ), Ӧ :
        ./configure --with-login=unix_pwcheck

   ֱ make Ϳ:
        make depend
        make all CFLAGS=-O

   һ:  cyrus ûʱ, ҽûϢ, Сܵİȫ©.
   
   : Ҳǿһ /etc/syslog.conf , ұ༭.
   
   ھŲ:  linux , ȷ pwcheck , 㲻ȷ
   ع:
        umask 0;/usr/cyrus/bin/pwcheck &
        umask 022

   ȻĴӵű:
        if [ -f /usr/cyrus/bin/pwcheck ]; then
        echo -n "Starting pwcheck for imap"
        umask 0;/usr/cyrus/bin/pwcheck &
        umask 022
        fi

   ҽЩ뵽ҵ /etc/rc.d/rc.local , . ʮ:
   ༭ /etc/inetd.conf ʱ, ǵý TCP  ȥ,:
 imap    stream  tcp     nowait  cyrus   /usr/sbin/tcpd  /usr/cyrus/bin/imapd

   е༭, Ҫ˸ inetd -HUPź:
        # ps ax | grep inetd
           61  ?  S    0:00 /usr/sbin/inetd
        # kill -HUP 61

   6. Sendmail 趨
   
   û sendmail Դ, ھذ.  IMAP , 㻹
   Ȥ, ÷ʼԵȵ.
   
   ҵ mc ļ.  /etc/sendmail.cN ļû, 
   ʼתƸ IMAP.  root ϵͳûǵʼڻ
   ; Ȼ, һû˺ȱʡؽʹ IMAP. Ҫ򵥵ĿĴ
   , Ϊ sendmail ΪõǿոƱ:
  divert(-1)
  #
  #       (C) Copyright 1995 by Carnegie Mellon University
  #
  #                      All Rights Reserved
  #
  # Permission to use, copy, modify, and distribute this software and its
  # documentation for any purpose and without fee is hereby granted,
  # provided that the above copyright notice appear in all copies and that
  # both that copyright notice and this permission notice appear in
  # supporting documentation, and that the name of CMU not be
  # used in advertising or publicity pertaining to distribution of the
  # software without specific, written prior permission.
  #
  # CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  # ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  # CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  # ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  # SOFTWARE.
  #
  #       Contributed to Berkeley by John Gardiner Myers .
  #
  #       This sample mc file is for a site that uses the Cyrus IMAP server
  #       exclusively for local mail.
  #

  divert(0)dnl
  VERSIONID(`@(#)cyrusproto.mc    8.3 (Carnegie Mellon) @(#)cyrusproto.mc 8.3')
  OSTYPE(linux)
  define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
  FEATURE(nouucp)
  FEATURE(nocanonify)
  FEATURE(always_add_domain)
  MAILER(smtp)
  MAILER(local)
  MAILER(cyrus)

  define(`confLOCAL_MAILER',`cyrus')

  LOCAL_RULE_0
  R$=N                            $: $#local $: $1
  R$=N < @ $=w . >                $: $#local $: $1
  Rbb + $+ < @ $=w . >            $#cyrusbb $: $1

  LOCAL_CONFIG
  FN /etc/sendmail.cN

  # end of mc file

    /etc/sendmail.cf ļ, һ /etc/sendmail.cN ļ, 
    IMAP ͹ܵûʺд:
        root
        majordom
        stan
        mothra

   ڰװ Sendmail 8.8.8 ֮һװ mail.local Ϊû˺ʹ
   õıطų.  mail.local ľ. Ƚ sendmail װ
   µ mail.local Ŀ¼, Ȼִ²:
        cp Makefile Makefile.orig
        cp Makefile.dist Makefile
        make
        cp mail.local /bin/mail.local
        chmod 4555 /bin/mail.local

   ִ֮,  sendmail.
   
   вҪ˹ص Cyrus װָ.
   
   7. 
   
   ȷҪ IMAP ĲԽ, һ˳, ͼһЩ
   .
   
   8. ŵ
   
   κε, ҲûнǮر, Լеʹõķ.
   
   9. Դ
   
   Ҫİװ.
   
   Cyrus ҳ:
   [6]http://andrew2.andrew.cmu.edu/cyrus/imapd/
   
   µ Cyrus 汾Դĵص:
   [7]ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
   
   Tcl ҳ:
   [8]http://sunscript.sun.com/
   
   µ Tcl ԴԴĵص:
   [9]ftp://ftp.sunlabs.com/pub/tcl/
   
   Sendmail ҳ:
   [10]http://www.sendmail.org/
   
   µ Sendmail 汾Դĵص:
   [11]ftp://ftp.sendmail.org/ucb/src/sendmail/
   
   ο:
   1. http://www.imap.org/whatisIMAP.html
   2. http://www.imap.org/imap.vs.pop.brief.html
   3. ftp://ftp.cac.washington.edu/imap/imap.tar.Z
   4. ftp://ftp.sunlabs.com/pub/tcl/
   5. http://andrew2.andrew.cmu.edu/cyrus/imapd/install.html
   6. http://andrew2.andrew.cmu.edu/cyrus/imapd/
   7. ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
   8. http://sunscript.sun.com/
   9. ftp://ftp.sunlabs.com/pub/tcl/
  10. http://www.sendmail.org/
  11. ftp://ftp.sendmail.org/ucb/src/sendmail/
