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

13. /var/qmail/rc »ý¼ºÇϱâ

/var/qmail/rc ÆÄÀÏÀº qmail ÆÄÀÏÁß¿¡¼­ °¡Àå Áß¿äÇÑ ÆÄÀÏÁßÀÇ ÇϳªÀÌ´Ù. ÀÌ°ÍÀº qmailÀ» Ã¥ÀÓÁö°í ½ÃÀÛÇÏ°Ô ÇÑ´Ù. º¸´Ù Áß¿äÇÑ °ÍÀº qmailÀÌ Ç×»ó ¸ÞÀÏÀ» ¼ö½ÅÇÒ ¼ö ÀÖµµ·Ï ÇÑ´Ù. rc ÀÇ ³»¿ëÀº qmailÀ» À§ÇÑ ±âº»ÀûÀÎ Àü¼Û ¸í·ÉÀ¸·Î µÇ¾î ÀÖ´Ù. /var/qmail/boot µð·ºÅ丮¿¡ °¡¸é, ¿©·¯ °æ¿ì¿¡ ´ëÇÑ rc ÆÄÀÏÀÇ ¿¹Á¦°¡ ÆÄÀϺ°·Î ÁغñµÇ¾î ÀÖ´Ù. ¿ì¸®´Â procmailÀ» ÀÌ¿ëÇÏ¿©, ¸ÞÀÏÀ» ó¸®ÇÒ °ÍÀ̱⠶§¹®¿¡, ´ÙÀ½°ú °°ÀÌ ¸í·ÉÀ» ³»¸°´Ù.

# cp /var/qmail/boot/proc /var/qmail/rc
ÆÄÀÏÀÇ ³»¿ëÀº ´ÙÀ½°ú °°´Ù.
---------------------------------------------------

#!/bin/sh
# Using splogger to send the log through syslog. 
# Using dot-forward to support sendmail-style ~/.forward files. 
# Using procmail to deliver messages to /var/spool/mail/$USER by default.

exec env - PATH="/var/qmail/bin:$PATH" \
           qmail-start '|preline procmail' splogger qmail 
---------------------------------------------------
±×¸®°í³ª¼­, ¾à°£ÀÇ ¼öÁ¤À» ÇÑ´Ù. ´ÙÀ½ 14. ¿¡¼­µµ ³ª¿ÀÁö¸¸, ¿ì¸®°¡ ¸ÞÀÏ ¼ö½ÅÀ» °¢ÀÚÀÇ È¨ µð·ºÅ丮¹ØÀÇ  /Maildir/ µð·ºÅ丮·Î Çϱ⠶§¹®ÀÌ´Ù. ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇÑ´Ù.
# vi /var/qmail/rc
-------------------------------------------------------------------
#!/bin/sh
# Using splogger to send the log through syslog. 
# Using dot-forward to support sendmail-style ~/.forward files. 
# Using procmail to deliver messages to /var/spool/mail/$USER by default.

exec env - PATH="/var/qmail/bin:$PATH" \
           qmail-start '|preline procmail ./Maildir/' splogger qmail 
-------------------------------------------------------------------
./Maildir/ À̰͸¸ Ãß°¡ÇÑ °ÍÀÌ´Ù.
´ÙÀ½ ÀÌÀü Â÷·Ê