Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ Ä¿ÇÇÇâÀÌ ³ª´Â *NIX
Ä¿ÇǴнº
½Ã½ºÅÛ/³×Æ®¿÷/º¸¾ÈÀ» ´Ù·ç´Â °÷
* HanIRCÀÇ #coffeenix ¹æ
[ Àåºñ ¹× ȸ¼± ÈÄ¿ø ]
HOME > ³×Æ®¿öÅ©(network) > ¸ÞÀÏ ¼­¹ö(mail) µµ¿ò¸»
°Ë»ö : »çÀÌÆ® WHOIS À¥¼­¹ö Á¾·ù

¸ÞÀÏ ÇÊÅ͸µ(½ºÆÔ¸ÞÀÏ) / procmail (14, ±Û 18, ÀÚ·á 8)

  Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #5-1 - vpopmail + cdb ¼³Ä¡ ÀÛ¼ºÀÏ : 2003/11/13 20:14
 
  • ±Û¾´ÀÌ : Ƽ´Ï ( http://linux.tini4u.net/ )
  • Á¶È¸¼ö : 12836
          [ ÀÌÀüÈ­¸é / ¼öÁ¤ ]   ºñ¹Ð¹øÈ£ :     Àμâ¿ë È­¸é
      Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #1 - ÇÁ·Ñ·Î±×
    Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #2 - ucspi-tcp, daemontools ¼³Ä¡
    Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #3 - qmail ¼³Ä¡
    Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #4 - qmail ºÎÆ® ½ºÅ©¸³Æ®
    Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #5-1 - vpopmail + cdb ¼³Ä¡
    Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #5-2 - vpopmail + mysql ¼³Ä¡
    Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #6 - qmail°ú vpopmail ½ÃÀÛ
    Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #7 - ezmlm°ú qmailadmin ¼³Ä¡
    Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #8 - courier-imap ¼³Ä¡
    Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #9 - ´Ù¶÷Áã¸ÞÀÏ(SquirrelMail) ¼³Ä¡

    --------------------------------------------------------------------------------------
    - ÀÛ¼ºÀÚ : ±èÇõÁß(Ƽ´Ï) [sky(golbangi or at)tini4u.net]
    - ÀÛ¼ºÀÏ : 2006-06-30
    - »çÀÌÆ® : http://linux.tini4u.net/
    - ¿øÁ¦¸ñ : Å¥¸ÞÀÏ ¼­¹ö ±¸Ãà #5-1 - vpopmail + cdb ¼³Ä¡
    - ȯ¡¡°æ : CentOS 4.3
    - Å°¿öµå : qmail install
    --------------------------------------------------------------------------------------

    1. À¯Àú, ±×·ì Ãß°¡
    vpopmail ¿î¿µÀ» À§ÇÑ À¯Àú¿Í ±×·ìÀ» ¸¸µé¾îÁÖ¾î¾ß µË´Ï´Ù.
    ¡Ø ¾Æ·¡ -r ¿É¼ÇÀº ½Ã½ºÅÛ °èÁ¤(uid 500¹Ì¸¸)À¸·Î À¯Àú¸¦ »ý¼ºÇÏ°Ú´Ù´Â ÀÇ¹Ì ÀÔ´Ï´Ù.
     [root@localhost]# groupadd -r vchkpw
    [root@localhost]# useradd -r -g vchkpw vpopmail
    [root@localhost]# mkdir -p /home/vpopmail/etc/
    [root@localhost]# chmod 755 /home/vpopmail
     


    ¡Ø vpopmailÀÇ ±âº»µð·ºÅ丮´Â /home/vpopmail/ ÀÔ´Ï´Ù.

    2. vpopmail ¼³Ä¡ (ÃֽŹöÀü : http://sourceforge.net/projects/vpopmail/)
     [root@localhost]# chmod 777 /home/vpopmail/etc/
    [root@localhost]# touch /home/vpopmail/etc/tcp.smtp
    [root@localhost]# wget http://jaist.dl.sourceforge.net/sourceforge/vpopmail/vpopmail-5.4.13.tar.gz
    [root@localhost]# tar xfz vpopmail-5.4.13.tar.gz
    [root@localhost]# cd vpopmail-5.4.13
    [root@localhost]# ./configure \
    --enable-roaming-users=y \
    --enable-tcprules-prog=/usr/local/bin/tcprules \
    --enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp \
    --enable-relay-clear-minutes=15 \
    --enable-auth-logging=y \
    --enable-logging=e
    [root@localhost]# make
    [root@localhost]# make install-strip
    [root@localhost]# chmod 755 /home/vpopmail/etc/
    [root@localhost]# chown vpopmail.vchkpw /home/vpopmail/etc/
     


    ¡Ø À§ configure ¿É¼ÇÀ¸·Î pop3 ÀÎÁõÈÄ 15ºÐµ¿¾È ¾Æ¹«·± ¼­¹ö »ç¿ëÀÌ ¾øÀ¸¸é ÀÚµ¿À¸·Î relay¸¦ ´Ý¾Æ
    open relay°¡ µÇ¾î ½ºÆиӵéÀÇ Å¸°ÙÀÌ µÇ´Â°ÍÀ» ¸·µµ·Ï ÇÕ´Ï´Ù.
    ±×¸®°í tcp.smtp ¸±·¹ÀÌ ÆÄÀÏÀ» Àӽûý¼ºÇÏ´Â ÀÌÀ¯´Â À§ ¿É¼Ç¿¡ ÆÄÀÏ°æ·Î¸¦ ÁöÁ¤ÇØÁá±â ¶§¹®ÀÔ´Ï´Ù.
    ±»ÀÌ tcpserver-fileÀ» ÁöÁ¤ÇØÁÖ´Â ÀÌÀ¯´Â ¿É¼ÇÀ¸·Î ³Ö¾îÁÖÁö ¾ÊÀ¸¸é ½Ã½ºÅÛ¿¡¼­ ÀÚµ¿À¸·Î ã°ÔµÇ´Âµ¥
    Á¤»óÀûÀ¸·Î smtp ¸±·¹ÀÌ ÆÄÀÏÀ» ã´Â °æ¿ìµµ ÀÖÁö¸¸ ¸±·¹ÀÌ ÆÄÀÏÀ» Á¤»óÀûÀ¸·Î ãÁö ¸øÇÏ´Â ¸Ó½ÅÀ»
    °£È¤ ¼¼ÆÃÇغ» °æÇèÀÌ Àֱ⠶§¹®ÀÔ´Ï´Ù.

    3. ±âº» µµ¸ÞÀÎ ¼³Á¤ ¹× SMTP ¸±·¹ÀÌ ¼³Á¤
    vpopmail 5.2.4 ¹öÀüºÎÅÍ´Â default-domainÀÌ ¼³Ä¡¿É¼Ç¿¡¼­ »ç¶óÁö°í ÆÄÀÏ·Î Àû¿ëµÇ°í ÀÖ½À´Ï´Ù.
    default-domainÀÇ ÆÄÀÏÀº ~/vpopmail/etc/defaultdomain ÀÔ´Ï´Ù.
     [root@localhost]# echo "foobar.com" > /home/vpopmail/etc/defaultdomain
    [root@localhost]# chown vpopmail.vchkpw /home/vpopmail/etc/defaultdomain
    [root@localhost]# chmod 640 /home/vpopmail/etc/defaultdomain
    [root@localhost]# vi /home/vpopmail/etc/tcp.smtp
    127.0.0.1:allow,RELAYCLIENT=""
    192.168.0.2:allow,RELAYCLIENT=""
    [root@localhost]# chmod 640 /home/vpopmail/etc/tcp.smtp
    [root@localhost]# /home/vpopmail/bin/clearopensmtp
     


    ¡Ø À§¿¡¼­ clearopensmtp¸¦ ÇØÁÖ´Â ÀÌÀ¯´Â tcp.smtp¸¦ ÀÌ¿ëÇØ tcp.smtp.cdb ÆÄÀÏÀ» »ý¼ºÇϱâ À§ÇÔÀÔ´Ï´Ù.

    4. crontab ¼³Á¤
    clearopensmtp¸¦ ÀÚµ¿À¸·Î Çѹø¾¿ ½ÇÇàÇØÁÖ±â À§ÇØ crond µ¥¸óÀ» ÀÌ¿ë ÇÕ´Ï´Ù.
    ÇÊÀÚ´Â 15ºÐ¿¡ Çѹø¾¿ ½ÇÇàµÇµµ·Ï ¼³Á¤ÇÏ°Ú½À´Ï´Ù.
     [root@localhost]# crontab -e
    */15 * * * * /home/vpopmail/bin/clearopensmtp
     



    5. qmail smtp ½ºÅ©¸³Æ® º¯°æ
    tcp.smtp ÆÄÀÏÀÌ º¯°æµÇ¾úÀ¸¹Ç·Î qmailÀ» ¼³Ä¡ÇÒ ¶§ ÀÛ¼ºÇÑ run scriptÁß Çϳª¸¦ ¼öÁ¤ÇØÁà¾ß µË´Ï´Ù.
     [root@localhost]# vi /var/qmail/supervise/qmail-smtpd/run
    #!/bin/sh
    Q_UID=`id -u qmaild`
    Q_GID=`id -g qmaild`
    exec /usr/local/bin/softlimit -m 2000000 \
    /usr/local/bin/tcpserver -vRHl 0 \
    -x /home/vpopmail/etc/tcp.smtp.cdb \ <--- À̺κÐ
    -u $Q_UID -g $Q_GID 0 25 /var/qmail/bin/qmail-smtpd 2>&1
     



    6. vpopmailÀ» À§ÇÑ µð·ºÅ丮¿Í ½ºÅ©¸³Æ® »ý¼º
     [root@localhost]# mkdir /var/qmail/supervise/vpop
    [root@localhost]# vi /var/qmail/supervise/vpop/run
    #!/bin/sh
    VPOP_UID=`id -u vpopmail`
    VPOP_GID=`id -g vpopmail`

    exec /usr/local/bin/softlimit -m 2500000 \
    tcpserver -vRHl 0 -u $VPOP_UID -g $VPOP_GID 0 110 \
    /var/qmail/bin/qmail-popup foobar.com \
    /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1
    [root@localhost]# chmod 755 /var/qmail/supervise/vpop/run
     



    7. µµ¸ÞÀΰú ¸ÞÀÏ°èÁ¤ »ý¼º
     [root@localhost]# /home/vpopmail/bin/vadddomain foobar.com
    [root@localhost]# /home/vpopmail/bin/vadduser webmaster@foobar.com 1234
     


    ¡Ø vadddomain½ÇÇà½Ã ³ª¿À´Â Æнº¿öµå´Â qmailadmin¿¡¼­ »ç¿ëÇÒ ºñ¹Ð¹øÈ£ ÀÔ´Ï´Ù.
    ¶ÇÇÑ vadddomain [µµ¸ÞÀÎ] [postmaster ºñ¹Ð¹øÈ£] ·Îµµ »ç¿ë°¡´ÉÇÕ´Ï´Ù.
    vadduser »ç¿ë¹ýÀº vadduser [¸ÞÀÏ°èÁ¤] [ºñ¹Ð¹øÈ£] ÀÔ´Ï´Ù.
      Ä¿ÇǴнº Ä«Æä ÃÖ±Ù ±Û
    [12/25] Àνº&#5
    [10/20] Cross Compiler ±ò
    [07/14] SSL ¬¡¬°
    [04/26] Re: µµ½ºÈ­¸é ¿ø°ÝÁ¶Á¾ ¿©ºÎ
    [04/25] µµ½ºÈ­¸é ¿ø°ÝÁ¶Á¾ ¿©ºÎ
    [10/30] Cshell¿¡¼­ ³­¼ö ¼³Á¤
    [10/23] °øÇ×öµµÁÖ½Äȸ»ç SE ±¸ÀÎ Ëì
    [01/26] Re: wgetÀ¸·Î ´Ù¸¥¼­¹ö¿¡ÀÖ´Â µð·ºÅ丮¸¦ °¡Á®¿À·Á°íÇÕ´Ï´Ù.
    [01/25] wgetÀ¸·Î ´Ù¸¥¼­¹ö¿¡ÀÖ´Â µð·ºÅ丮¸¦ °¡Á®¿À·Á°íÇÕ´Ï´Ù.
    [01/11] ƯÁ¤ ¾Èµå·ÎÀ̵å WebView ¹öÀü¿¡¼­ SSL ¹®Á¦ (WebView ¹ö±×)
    [08/01] DNS forwarder (Àü´ÞÀÚ) ¼­¹ö¸¦ ÅëÇؼ­ Äõ¸®ÇÏ¸é ¿ª¹æÇâÀ» ¹Þ¾Æ¿ÀÁú ¸øÇÕ´Ï´Ù.
    [05/16] (ÁÖ)ÈÄÀÌÁî ½Ã½ºÅÛ¿£Áö´Ï¾î (°æ·ÂÀÚ) ¸ðÁý
    [02/15] [AWS] Cloudfront edge È®ÀÎÇϱâ
    [01/20] Mobile Service/eCommerce ±â¾÷¿¡¼­ Server / Java / PHP °³¹ßÀÚ ±¸ÀÎ
    [01/11] źźÇÑ ÆÛºí¸®½Ì ¸ð¹ÙÀϱâ¾÷¿¡¼­ Mobile °³¹ßÀÚ¸¦ ¸ð½Ê´Ï´Ù.
      New!   ÃÖ±Ù¿¡ µî·ÏÇÑ ÆäÀÌÁö
      KiCad EDA Suite project (Free/Libre/Open-Source EDA Suite) (CAD)
      ¿ÀÇÂij½ºÄÉÀ̵å ijµå (OpenCASCADE CAD)
      QCad for Windows --- GNU GPL (Free Software)
      The Hello World Collection
      IPMI¸¦ È°¿ëÇÑ ¸®´ª½º ¼­¹ö°ü¸®
      DNS ¼³Á¤ °Ë»ç
      nagiosgraph ¼³Ä¡ ¹æ¹ý
      Slony-I ¼³Ä¡ ¹æ¹ý (postgresql replication tool)
      Qmail±â¹ÝÀÇ Anti spam ½Ã½ºÅÛ ±¸ÃàÇϱâ
      clusterssh

    [ ÇÔ²²ÇÏ´Â »çÀÌÆ® ]




    ¿î¿µÁø : ÁÁÀºÁøÈ£(truefeel), ¾ß¼ö(yasu), ¹ü³ÃÀÌ, sCag
    2003³â 8¿ù 4ÀÏ~