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

9. ¹®Á¦ ÇØ°á

»ç¿ëÀÚ¸í¿¡ ´ë¹®ÀÚ°¡ µé¾îÀִ°æ¿ì ¸ÞÀÏÀ» ¹ÞÀ¸·Á¸é?

sendmailÀ» MTA·Î »ç¿ëÇϽô °æ¿ì¿¡ sendmail.cfÀÇ Mlocal·Î ½ÃÀÛÇÏ´Â ºÎºÐ¿¡ º¸½Ã¸é F=À̶ó°í µÈ ºÎºÐÀÌ ÀÖ½À´Ï´Ù. ÀÌ°÷¿¡ u¸¦ Ãß°¡ÇÏ¸é ´ë¹®ÀÚ·Î µÈ °èÁ¤¿¡¼­µµ ¸ÞÀÏÀ» ¹Þ¾Æº¼ ¼ö ÀÖ½À´Ï´Ù. ÇÏÁö¸¸ °èÁ¤¿¡´Â ´ë¹®ÀÚ¸¦ ¾È ¾²½Ã´Â°Ô ÁÁ½À´Ï´Ù. (ƯÈ÷ NIS+¸¦ ¾µ°æ¿ì ¸»½éÀ» ¸¹ÀÌ ºÎ¸³´Ï´Ù.)

.forward°¡ ÀÛµ¿ÇÏÁö ¾Ê½À´Ï´Ù.

Sendmail 8.9.x ºÎÅÍ´Â sendmailÀÌ ÀоîµéÀÌ´Â ÆÄÀÏÀÇ ¸ðµå¸¦ °Ë»çÇÕ´Ï´Ù. ¿¹¸¦µé¾î .forward°¡ ÀÖ´Â µð·ºÅ丮(ÀϹÝÀûÀ¸·Î Ȩ µð·ºÅ丮)ÀÇ ¸ðµå°¡ ±×·ì¿¡°Ô ¾²±â°¡´ÉÇϵµ·Ï ¼³Á¤µÇ¾î ÀÖÀ¸¸é .forwardÆÄÀÏÀÚü¸¦ ÀÐÁö¾Ê½À´Ï´Ù. À̶§¹®¿¡ .forward°¡ ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù°í Åõ´ú´ë´Â »ç¶÷µéÀÌ ¸¹½À´Ï´Ù. Áö±Ý »ç¿ëÇÏ°í °è½Å sendmailÀÌ 8.9.0ÀÌ»óÀ̶ó¸é ÀÚ½ÅÀÇ È¨µð·ºÅ丮¿Í ±× »óÀ§µð·ºÅ丮°¡ ±×·ì¿¡°Ô ¾²±â°¡´ÉÇϵµ·Ï µÇ¾îÀÖ´ÂÁö È®ÀÎÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù. ÀÚ¼¼ÇÑ ¾ê±â´Â DontBlameSendmail and Enhanced File Security¸¦ Âü°íÇϽñ⠹ٶø´Ï´Ù.

´º½º±×·ì¿¡ ±è°æ¿í´ÔÀÌ ¾Æ·¡¿Í °°Àº ±ÛÀ» ¿Ã·ÁÁּ̽À´Ï´Ù. ¿ª½Ã .forward°¡ ÀÛµ¿ÇÏÁö ¾Ê´Â°æ¿ì¸¦ ¼³¸íÇÏ°í ÀÖ½À´Ï´Ù. Âü°íÇϼ¼¿ä.

sendmail.cf¿¡¼­, .forward¿¡ ¿µÇâÀ» ¹ÌÄ¡´Â ºÎºÐÀº µÎ±ºµ¥ÀÔ´Ï´Ù.

# Forward file search path
O ForwardPath=$z/.forward.$w:$z/.forward

$z (/etc/passwd¸¦ lookup Çؼ­ ¾òÀº À¯Àú µð·ºÅ丮ÀÇ path) ¹ØÀÇ
.forward°¡ ForwardPath·Î ÀâÇô ÀÖ½À´Ï´Ù. ÀÌ ¿É¼ÇÀ» disable(#)½ÃÅ°¸é
forwardingÀÌ µÇÁö ¾Ê½À´Ï´Ù.

´ÙÀ½, ¿©±â¼­ $z °ªÀ» ¾ò±â À§Çؼ­ Local delivery agent´Â /etc/passwd¸¦
lookup ÇÕ´Ï´Ù. ±×·¯³ª Mlocal¿¡¼­ F=w flag°¡ ¾øÀ¸¸é MlocalÀº
/etc/passwd ¸¦ lookup ÇÏÁö ¾Ê½À´Ï´Ù.

Mlocal,         P=/usr/local/bin/procmail, F=lsDFMAw5:/|@qSPfhn9,
S=10/30, R=20/ 40,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -a $h -d $u

À§ µÎ°¡Áö »çÇ×À» È®ÀÎÇØ º¸¼¼¿ä.

--
±è°æ¿í

access°¡ ÀÛµ¿ÇÏÁö ¾Ê½À´Ï´Ù.

ÀÏ´Ü sendmail.cf¸¦ ¸¸µç mc¿¡ FEATURE(access_db, hash -o /etc/mail/access)¸¦ Ãß°¡Çϼ̴ÂÁö °Ë»çÇØ º¸½Ã°í ¸¸ÀÏ ³ÖÁö ¾Ê¾Ò¾ú´Ù¸é Ãß°¡ÇÑ ÈÄ ´Ù½Ã sendmailÀ» »ý¼ºÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù.

°¡²û makemapÀÇ ¹öÀüÀÌ ³·¾Æ¼­ ¾ÈµÇ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. À§¿Í°°ÀÌ Çߴ°æ¿ì¿¡µµ ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù¸é sendmail¿¡ °°ÀÌ µé¾îÀÖ´Â makemapÀ» ÄÄÆÄÀÏÇؼ­ »ç¿ëÇÏ½Ã¸é µË´Ï´Ù. (makemap¿¡¼­µµ »ç¿ëÇÒ DBµîÀ» ¸í½ÃÇÕ´Ï´Ù. sendmailÀÇ ÄÄÆÄÀÏ°ú µ¿ÀÏÇÏ°Ô ÇÏ½Ã¸é µË´Ï´Ù.)


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