´ÙÀ½ ÀÌÀü Â÷·Ê

6. Cyrus IMAP ¼³Á¤

6.1 conf ÆÄÀÏ ÆíÁýÇϱâ

  1. /etc/syslog.conf ¸¦ ÆíÁýÇÏ¿© ¾Æ·¡¿Í °°Àº ³»¿ëÀ» ³¡¿¡ Ãß°¡ÇÕ´Ï´Ù:
            local6.debug    /var/adm/imapd.log
            auth.debug      /var/adm/auth.log
    
  2. »õ·Î ¸¸µé¾îÁø /etc/imapd.conf ¸¦ ¿­°í ´ÙÀ½ ³»¿ëÀ» Ãß°¡ÇÕ´Ï´Ù:
            configdirectory: /var/imap
            partition-default: /var/spool/imap
            admins: cyrus root
            srvtab: /var/imap/srvtab
            allowanonymouslogin: no
            sasl_passwd_check: shadow
    

6.2 ÇÊ¿äÇÑ µð·ºÅ丮µéÀ» »ý¼ºÇϱâ

À̵é ÀÛ¾÷Àº imap ¿¡¼­ »ç¿ëÇÒ µð·ºÅ丮µéÀ» ¼³Á¤Çϱâ À§ÇÑ °ÍÀÔ´Ï´Ù.

  1. mkdir /var/adm
  2. touch /var/adm/imapd.log /var/adm/auth.log
  3. mkdir /var/imap /var/spool/imap /var/imap/srvtab
  4. chown cyrus /var/imap /var/spool/imap /var/imap/srvtab
  5. chgrp mail /var/imap /var/spool/imap /var/imap/srvtab
  6. chmod 750 /var/imap /var/spool/imap /var/imap/srvtab
  7. su cyrus

ÀÌÁ¦ cyrus ¶ó´Â À¯Àú »óÅ°¡ µÇ¾úÀ» °ÍÀÔ´Ï´Ù. ÀÌ´Â ÆÄÀÏÀÇ ¼ÒÀ¯±Ç ¹®Á¦ ¶§¹®¿¡ ÇÊ¿äÇÑ °úÁ¤ÀÔ´Ï´Ù. °è¼Ó ÀÛ¾÷À» ÁøÇàÇÕ´Ï´Ù:

  1. tools/mkimap
  2. cd /var/imap
  3. chattr +S . user quota user/* quota/*
  4. chattr +S /var/spool/imap
  5. exit

ÀÌÁ¦ ´Ù½Ã root ·Î µ¹¾Æ¿Ô½À´Ï´Ù. ¸¶Áö¸·À¸·Î ´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÕ´Ï´Ù.

chattr +S /var/spool/mqueue

6.3 Ãß°¡ÀûÀÎ ¼³Á¤ ÆÄÀÏ ÆíÁý

  1. /etc/services¿¡¼­ ´ÙÀ½ ³»¿ëÀ» È®ÀÎÇÕ´Ï´Ù. ³»¿ëÀÌ ¾ø´Ù¸é Ãß°¡Çϵµ·Ï ÇÕ´Ï´Ù:
            pop3    110/tcp
            imap    143/tcp
            imsp    406/tcp
            kpop    1109/tcp
            sieve   2000/tcp
    
  2. /etc/inetd.conf ¿¡¼­ ¸ðµç imap °ú pop3 °ü·Ã ³»¿ëÀ» ÁÖ¼® ó¸®ÇÕ´Ï´Ù. ±×¸®°í ´ÙÀ½ ³»¿ëÀ» Ãß°¡Çϵµ·Ï ÇÕ´Ï´Ù:
            imap    stream  tcp     nowait  cyrus   /usr/cyrus/bin/imapd    imapd
            pop3    stream  tcp     nowait  cyrus   /usr/cyrus/bin/imapd    pop3d
    
  3. /etc/sendmail.mc À» ÆíÁýÇÕ´Ï´Ù. ¾Æ·¡ ³»¿ëÀ» Ãß°¡Çϸ鼭 Ãß°¡ÀûÀÎ °ø¹éÀ» ³ÖÁö ¾Êµµ·Ï ÁÖÀÇÇÏ¼Å¾ß ÇÕ´Ï´Ù(ÅÇÀÌ Á¦´ë·Î µé¾î°¡Áö ¾ÊÀ» ¼ö ÀÖÀ¸´Ï ÀÌ ¹®¼­ÀÇ ³»¿ëÀ» º¹»çÇÏ¿© ºÙÀÌÁö ¸¶¼¼¿ä):
      MAILER(local)
      MAILER(cyrus)
      define(`confLOCAL_MAILER',`cyrus') 
      LOCAL_RULE_0
      R$=N                   $: $#local $: $1
      R$=N < @ $=w . >       $: $#local $: $1
      Rbb + $+ < @ $=w . >   $#cyrusbb $: $1
    
    µ¥ÀÌÅ͸¦ ±¸ºÐÇϱâ À§Çؼ­´Â ÅÇÀ» »ç¿ëÇÕ´Ï´Ù(¿¹¸¦ µé¾î R$=N ¿Í $: $#local $: $1 »çÀÌ¿¡´Â ¼¼ °³ÀÇ ÅÇÀÌ µé¾î°©´Ï´Ù). ±×¸®°í´Â ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇϼ¼¿ä: m4 sendmail.mc > sendmail.cf
  4. /etc/group À» ¿­°í »ç¿ëÀÚ daemon À» mail ±×·ì¿¡ Ãß°¡ÇÕ´Ï´Ù.

6.4 ¸¸¾à sendmail ´ë½Å¿¡ postfix ¸¦ »ç¿ëÇÑ´Ù¸é?

Postfix´Â sendmail °ú °°Àº ¸ÞÀÏ Àü¼Û ÇÁ·Î±×·¥ÀÔ´Ï´Ù. ´ëºÎºÐÀÇ ¸®´ª½º ¸Ó½Å¿¡´Â sendmailÀÌ ±âº»À¸·Î ¼³Ä¡µÇ¾î ÀÖ½À´Ï´Ù. ¸¸¾à ¿©·¯ºÐÀÌ postfix ¸¦ »ç¿ëÇϽŴٸé À§ÀÇ ¼³Á¤ ´Ü°è °¡¿îµ¥ ¼¼¹ø° ´Ü°è¸¦ ¹«½ÃÇÏ°í ´ÙÀ½ ³»¿ëÀ» /etc/postfix/master.cf¿¡ Ãß°¡ÇϽñ⠹ٶø´Ï´Ù.

cyrus   unix    -       n       n       -       -       pipe    flags=R user=cyrus      
argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}

¶ÇÇÑ ´ÙÀ½ ³»¿ëÀ» /etc/postfix/main.cf¿¡µµ Ãß°¡ÇÕ´Ï´Ù.

local_transport = cyrus


´ÙÀ½ ÀÌÀü Â÷·Ê