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

16. ¸ÞÀÏ ¼Û½Å Å×½ºÆ®Çϱâ (¿©±â¼­ºÎÅÍ´Â ½Ã½ºÅÛ root °¡ ¾Æ´Ï¾îµµ µÈ´Ù.)

16.1 host ³»ºÎ¿¡¼­ »ç¿ëÀÚ°£ÀÇ ¸ÞÀÏ ¼Û¼ö½ÅÀ» È®ÀÎÇØ º»´Ù.

silver´Â È£½ºÆ®¾È¿¡ °èÁ¤ÀÌ ÀÖ´Â »ç¿ëÀÚÀ̾î¾ß ÇÑ´Ù.

      % echo to: silver | /var/qmail/bin/qmail-inject
±×·¯¸é, ³»¿ëÀº ¾ø°í ¸ÞÀÏÇì´õ¸¸ ÀÖ´Â ¸ÞÀÏÀÌ ¹Ù·Î silver¿¡°Ô ¼Û½ÅµÇ¾î ÀÖ¾î¾ß ÇÏ°í, »õ·ÎÀÌ µµÂøµÇ´Â ¸ÞÀÏÀº  silver/Maildir/new/ ¹Ø¿¡ ¼ö½Å¸ÞÀϸ¶´Ù °³°³ÀÇ ÆÄÀÏ·Î ÀúÀåµÈ´Ù. /var/log/maillog ÆÄÀϾÈÀÇ ³¡ºÎºÐ¿¡´Â ´ÙÀ½°ú °°Àº ÁÙµéÀÌ º¸¿©¾ß ÇÑ´Ù.
           qmail: new msg 53 
           qmail: info msg 53: bytes 246 from <me@domain> qp 20345 uid 666
           qmail: starting delivery 1: msg 53 to local me@domain 
           qmail: status: local 1/10 remote 0/20
           qmail: delivery 1: success: did_1+0+0/
           qmail: status: local 0/10 remote 0/20
           qmail: end msg 53 
   ( 53Àº inode ¼ýÀÚÀÌ°í, 20345 ´Â ÇÁ·Î¼¼¼­ IDÀÌ´Ù. ¿©·¯ºÐÇÑÅ×´Â ÀÌ ¹øÈ£µéÀÌ ´Ù¸¦ °ÍÀÌ´Ù.

16.2 ¸ÞÀÏÀü¼Û ¿¡·¯¸¦ È®ÀÎÇØ º»´Ù.

noneÀº È£½ºÆ®ÀÇ ¸ÞÀÏ»ç¿ëÀÚ°èÁ¤ÀÌ ¾Æ´Ï¾î¾ß ÇÑ´Ù.

      % echo to: none | /var/qmail/bin/qmail-inject
/var/log/maillog ÆÄÀϾÈÀÇ ³¡ºÎºÐ
       
           qmail: new msg 53 
           qmail: info msg 53: bytes 246 from <me@domain> qp 20351 uid 666
           qmail: starting delivery 2: msg 53 to local nonexistent@domain
           qmail: status: local 1/10 remote 0/20
           qmail: delivery 2: failure: No_such_address.__#5.1.1_/
           qmail: status: local 0/10 remote 0/20
           qmail: bounce msg 53 qp 20357
           qmail: end msg 53 
           qmail: new msg 54 
           qmail: info msg 54: bytes 743 from <> qp 20357 uid 666
           qmail: starting delivery 3: msg 54 to local me@domain
           qmail: status: local 1/10 remote 0/20
           qmail: delivery 3: success: did_1+0+0/
           qmail: status: local 0/10 remote 0/20
           qmail: end msg 54 
¾Æ¸¶ ¿©·¯ºÐÀº Àü¼ÛµÇÁö ¸øÇÏ°í, µÇµ¹¾Æ¿Â ¸ÞÀÏÀ» º¸°Ô µÉ °ÍÀÌ´Ù.

16.3 È£½ºÆ® ¿ÜºÎ·ÎÀÇ ¸ÞÀÏ ¼Û½Å È®ÀÎ

me@wherever ´Â hook@hanmail.net °ú °¥Àº ¾î¶² À¯È¿ÇÑ ¸ÞÀÏ ÁÖ¼ÒÀ̾î¾ß ÇÑ´Ù.

      % echo to: me@wherever | /var/qmail/bin/qmail-inject
/var/log/maillog ÆÄÀϾÈÀÇ ³¡ºÎºÐ
           qmail: new msg 53 
           qmail: info msg 53: bytes 246 from <me@domain> qp 20372 uid 666
           qmail: starting delivery 4: msg 53 to remote me@wherever
           qmail: status: local 0/10 remote 1/20
           qmail: delivery 4: success: 1.2.3.4_accepted_message./...
           qmail: status: local 0/10 remote 0/20
           qmail: end msg 53 
¶óÀÎ``starting delivery''¿Í ``success'' »çÀÌ¿¡´Â ¾ó¸¶°£ÀÇ ½Ã°£Àû Áö¿¬ÀÌ ÀÖÀ» ¼ö ÀÖ´Ù. me@wherever ¶ó´Â ¸ÞÀÏ °èÁ¤À¸·Î ¿Â ¸ÞÀÏÀ» È®ÀÎÇØ º¸¾Æ¶ó.

16.4 È£½ºÆ®ÀÇ root ¶Ç´Â postmaster ¿¡°Ô ¸ÞÀÏÀ» Àü¼ÛÇϱâ.

¿ì¸®´Â ¾Õ¿¡¼­ root, postmaster, mailer-daemonÀÇ alias ¸¦ ¼³Á¤ÇÏ¿´´Ù. ±× alias°¡ Á¤»óÀûÀ¸·Î µ¿ÀÛÇÏ´ÂÁö¸¦ È®ÀÎÇÑ´Ù.

      % echo to: POSTmaster | /var/qmail/bin/qmail-inject
POSTmasterÀÇ alias ¸¦ ¼³Á¤ÇÑ °èÁ¤ (¾Õ¿¡¼­´Â silver)À¸·Î ¿Â ¸ÞÀÏÀ» È®ÀÎÇÑ´Ù.
´ÙÀ½ ÀÌÀü Â÷·Ê