
  __________________________________________________________________________

lGCyrus IMAP mini-HOWTO
ɮױԭzGpw Cyrus IMAP A
½ĶG2000/04/30
½Ķ@Gwy  happyhuang@sohu.com
  __________________________________________________________________________


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

ɦbѦb Linux tΤw Cyrus IMAP AȾ@U.

   1. :
   
   P Bob Anderson (boba@iserv.net) M Jorge Paramo (jorge@iserv.net),
   L̦bڨϥ linux {Fڳ\hU.
   
   O IMAP HάnϥΥ?
   
   IMAP( plXݨĳ ) ѤF@سXݻ{AȾWqll BBS
   l󪺤k. IMAP MQ{O POP ( lĳ ) l󪺴N. IMAP \
   ΤqPlWXݥL̪qllӤΤUǶl. oضl󪺳X
   覡[, ӥB׺ݥΤӻhnB.
   
   iHbU}UԲӪ:
   [1]http://www.imap.org/whatisIMAP.html
   
   IMAP M POP iѨ:
   [2]http://www.imap.org/imap.vs.pop.brief.html
   
   n Cyrus AȾ?
   
   Cyrus Q]pb@x\@ΤnAȾWB. Cyrus ]Q{O
   Unix Wӳ̴M IMAP AȾ@. t@ӬOزyjǪ IMAP A
   .
   [3]ftp://ftp.cac.washington.edu/imap/imap.tar.Z
   
   2. ڪtΤӸ`
   
   ڤwg\abOB Linux Kernel 2.1.79 M 2.0.33  486DX66 M
   Pentium xlWwˤF Cyrus t. oxO Slackware 3.4
   .
   
   3. Tcl w
   
   bw Cyrus eT{AwgbۤvlWwˤF Tcl, _hANLkϥ
   Cyrus Admin Tool (cyradm).
   
   AiHbU}̷s tcl 귽:
   [4]ftp://ftp.sunlabs.com/pub/tcl/
   
   bwˤ, T{bؿ /usr/local/lib/ Usb libtcl.a . Tcl 8.0 
   ΪO libtcl8.0.a, A ΤUROإߤ@ӳns:
        # ln -s libtcl8.0.a libtcl.a

   4. makedepend w
   
   bAtΤˬdO_ makedepend RO. pGS]ξ, Cyrus 귽
   N. ( bڦw˪ Slackware 3.4 NS makedepend RO. )
   
   Fw makedepend ,  Cyrus o, MiJ makedepend ؿ,
   JURO:
        ./configure
        make
        cp ./makedepend /usr/local/bin/makedepend

   5. Cyrus w
   
   Фpߦa Cyrus o`Nƶiw. AiHbU}
   oǪ`Nƶ@ӫ:
   [5]http://andrew2.andrew.cmu.edu/cyrus/imapd/install.html
   
   YǦw˨BJ@Ǵ:
   
   pGAΪO Slackware 3.4 ( ϥ vlfO ), Ao˰tm :
        ./configure --with-login=unix_pwcheck

   êo make NiH:
        make depend
        make all CFLAGS=-O

   Ĥ@B: [J cyrus Τ, ڱNΤH[, H̤pƥi઺w|}.
   
   ĤTB: ڤO@ /etc/syslog.conf , ӥBs襦.
   
   ĤEB: b linux U, T{HU˱Ұ pwcheck , _hAȾK|T
   au@:
        umask 0;/usr/cyrus/bin/pwcheck &
        umask 022

   MUNX[Ұʸ}:
        if [ -f /usr/cyrus/bin/pwcheck ]; then
        echo -n "Starting pwcheck for imap"
        umask 0;/usr/cyrus/bin/pwcheck &
        umask 022
        fi

   ڱNoǥNX[Jڪ /etc/rc.d/rc.local , ̹B楿`. ĤQGB:
   s /etc/inetd.conf ɭ, OoN TCP ] ]tih,pU:
 imap    stream  tcp     nowait  cyrus   /usr/sbin/tcpd  /usr/cyrus/bin/imapd

   ٦As觹, nѤF inetd oe-HUPH:
        # ps ax | grep inetd
           61  ?  S    0:00 /usr/sbin/inetd
        # kill -HUP 61

   6. Sendmail ]w
   
   pGAS sendmail X, {bNUa. FB IMAP ~, A٥iH
   Ӱ\h쪺, p]mϩUl󪺯Sʵ.
   
   UOڪ mc . Db /etc/sendmail.cN 󤤦ΤWJf, _h
   Nlಾ IMAP. \ root ˪tΥΤL̪lOsbw
   R; M, @몺Τ㸹ʬ٦aNϥ IMAP. n²檺UN
   X, ] sendmail |]ΪOŮӤOŦӥX:
  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

   bͦ /etc/sendmail.cf , Ыؤ@ӥs /etc/sendmail.cN , N
    IMAP oe\઺ΤbgJ䤤:
        root
        majordom
        stan
        mothra

   bw˧ Sendmail 8.8.8 ٦wˤF mail.local @LΤ㸹
   ΪaoH{. UOͦ mail.local Z¬. iJ sendmail wI
   U mail.local ؿ, MHUާ@:
        cp Makefile Makefile.orig
        cp Makefile.dist Makefile
        make
        cp mail.local /bin/mail.local
        chmod 4555 /bin/mail.local

   槹,  sendmail.
   
   ٦nѤF Cyrus w˫n.
   
   7. ]mHc
   
   T{n IMAP AȾնi, pG@Q, N~]mL@ǫH
   c.
   
   8. ӿ
   
   @O, ]S^, ЦۤvӾϥΪI.
   
   9. 귽
   
   nw˥].
   
   Cyrus D:
   [6]http://andrew2.andrew.cmu.edu/cyrus/imapd/
   
   ̷s Cyrus iHqUaIU:
   [7]ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
   
   Tcl D:
   [8]http://sunscript.sun.com/
   
   ̷s Tcl 귽iHqUaIU:
   [9]ftp://ftp.sunlabs.com/pub/tcl/
   
   Sendmail D:
   [10]http://www.sendmail.org/
   
   ̷s Sendmail iHqUaIU:
   [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/
