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

2. ÄÄÆÄÀÏ ¹× ¼³Ä¡

2.1 °¡Á®¿À±â

http://www.sendmail.org¿¡¼­ ¹èÆ÷ÇÏ´Â sendmailÀÇ ¹èÆ÷ÆÇÀº 1998³â 10¿ù 31ÀÏ ÇöÀç 8.9.1aÀÌ ÃÖ½ÅÀÔ´Ï´Ù. (ÀÌ´Â sendmail 8.9.1°ú 8.9.1a·ÎÀÇ ÆÐÄ¡·Î ÀÌ·ç¾îÁ® ÀÖ½À´Ï´Ù.) ¿ì¼± ÆÄÀÏÀ» ´Ù¿î·Îµå ¹Þ¾Æ¼­ Ç®¾îµÓ´Ï´Ù.

temp $ gzip -dc sendmail.8.9.1.tar.gz | tar xvf -
temp $ cd sendmail-8.9.1/src
src $ patch < ../../sendmail.8.9.1a.patch

** Solarisµî¿¡ ±âº»ÀûÀ¸·Î µé¾îÀÖ´Â patch¸¦ »ç¿ëÇϸé Àß µÇÁö ¾Ê½À´Ï´Ù. GNU patch¸¦ ¼³Ä¡Çϼż­ »ç¿ëÇϽñ⠹ٶø´Ï´Ù.

2.2 ÄÄÆÄÀÏ

ÁÖÀÇ**) http://www.sendmail.org/compiling.html¿¡¼­´Â srcµð·ºÅ丮¿¡¼­ Á÷Á¢ make¸¦ ÀÌ¿ëÇؼ­ ÄÄÆÄÀÏ ÇÏÁö ¸»µµ·Ï ÇÏ°í ÀÖ½À´Ï´Ù. ÀÌ ´ë½Å Build ½©½ºÅ©¸³Æ®¸¦ »ç¿ëÇϵµ·Ï ±ÇÇÏ°í ÀÖ½À´Ï´Ù.

°¡Àå ½¬¿î ¹æ¹ýÀº Build½ºÅ©¸³Æ®¸¦ »ç¿ëÇÏ´Â °ÍÀÔ´Ï´Ù. ´Ü¼øÈ÷ sh Build ¶ó°í Ä¡¸é ÄÄÆÄÀÏ ÀÛ¾÷À» ¼öÇàÇÕ´Ï´Ù. (±âÁ¸¿¡ sendmailÀ» ¼³Ä¡Çß´ø »ç¶÷µéÁß¿¡´Â makesendmail ½ºÅ©¸³Æ®¸¦ »ç¿ëÇÑ »ç¶÷µéÀÌ ¸¹Àºµ¥ ÀÌ´Â Build ½ºÅ©¸³Æ®¿Í µ¿ÀÏÇÑ ÇÁ·Î±×·¥À» °¡¸®Å°°í ÀÖÀ¸¹Ç·Î Build¸¦ »ç¿ëÇصµ ¹«¹æÇÕ´Ï´Ù. µû¶ó¼­ makesendmail´ë½Å¿¡ Build¸¦ »ç¿ëÇϱ⸦ ±ÇÇÕ´Ï´Ù.)

sendmail 8.9.1 $ cd src
src $ sh Build
Configuration: os=SunOS, rel=5.6, rbase=5, rroot=5.6, arch=sun4, sfx=
Using M4=/usr/ccs/bin/m4
Creating obj.SunOS.5.6.sun4 using ../BuildTools/OS/SunOS.5.6
Making dependencies in obj.SunOS.5.6.sun4
gcc -M -I.  -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=20600  *.c >> Makefile
Making in obj.SunOS.5.6.sun4
gcc -O -I.  -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=20600    -c alias.c -o alias.o

À§ÀÇ ¸Þ½ÃÁö¸¦ Àá½Ã »ìÆ캸¸é ÇöÀç ½Ã½ºÅÛÀÌ »ç¿ëÇÏ°í ÀÖ´Â ¿î¿µÃ¼Á¦(os)´Â SunOSÀ̸ç release´Â 5.6ÀÓÀ» ¾Ë ¼ö ÀÖ½À´Ï´Ù. ¶ÇÇÑ ½Ã½ºÅÛÀÇ ¾ÆÅ°ÅØÃÄ´Â sun4ÀÔ´Ï´Ù. ³ªÁß¿¡ sendmail.cfÆÄÀÏÀ» ¸¸µé¶§ »ç¿ëÇÏ´Â m4´Â /usr/ccs/bin/m4¸¦ »ç¿ëÇÏ°í ÇöÀç µð·ºÅ丮 ¾Æ·¡¿¡ obj.SunOS.5.6.sun4 µð·ºÅ丮¿¡ ¹ÙÀ̳ʸ® ÆÄÀϵéÀ» »ý¼ºÇϸç ÄÄÆÄÀÏ ¶§ »ç¿ëÇÏ´Â ÆÄÀÏÀº ../BuildTools/OS/SunOS.5.6 ÀÓÀ» ¾Ë ¼ö ÀÖ½À´Ï´Ù.

¿ì¼± Makefile¿¡ ¼Ò½ºÆÄÀÏÀÇ ÀÇÁ¸°ü°è¸¦ Ãß°¡ÇÏ°í º»°ÝÀûÀÎ ÄÄÆÄÀÏÀ» ½ÃÀÛÇÕ´Ï´Ù. (ÀÇÁ¸°ü°èÀÇ »ý¼º¿¡ °üÇÑ ³»¿ëÀº Makefile¿¡ °ü·ÃµÈ ÀڷḦ Âü°íÇϱ⠹ٶø´Ï´Ù.)

sendmailÀº ´Ù¾çÇÑ ¼³Á¤À» °¡Áö´Âµ¥ ÁÖ·Î ¸ÅÅ©·Î¸¦ »ç¿ëÇÏ¿© ¼³Á¤ÇÕ´Ï´Ù. À§¿¡¼­ »ç¿ëµÈ -DNBDM -DNIS -DNISPLUS -DMAP_REGEXµîÀÌ ±×°ÍÀÔ´Ï´Ù. ÀÌ°Í ÀÌ¿Ü¿¡µµ ¸¹Àº ¸ÅÅ©·Î°¡ ÀÖÀ¸¸ç ¿©±â¿¡¼­´Â ±×Áß¿¡¼­ Áß¿äÇѰ͸¸ ¼³¸íÇÏ°Ú½À´Ï´Ù.

ÀÌ ¸ÅÅ©·ÎµéÀº ¿©·¯°³¸¦ ÇѲ¨¹ø¿¡ Á¤ÀÇÇؼ­ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. (½ÉÁö¾î´Â -DNEWDB¿Í -DNDBMµµ ÇѲ¨¹ø¿¡ Á¤ÀÇÇؼ­ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ¹°·Ð ÀÌ °æ¿ì¿¡´Â óÀ½¿¡ NDBMÀ¸·Î ¸¸µé¾îÁø aliasÆÄÀÏÀ» Àоî Berkeley DBÇüÅ·Π¹Ù²Ù°í Berkeley DBÇüÅ·Π°è¼Ó »ç¿ëÇÕ´Ï´Ù.) ÇÏÁö¸¸ -DNDBMÀº ¾²Áö ¸»±â¸¦ ÇÊÀÚ´Â ÃßõÇÕ´Ï´Ù. ±×¸®°í ¸¸ÀÏ -DNEWDB°¡ Build ½ºÅ©¸³Æ®¿¡ ÀÇÇؼ­ ÀÚµ¿ÀûÀ¸·Î Ãß°¡µÇÁö ¾Ê¾Ò´Ù¸é Á÷Á¢ MakefileÀ» ¼öÁ¤Çؼ­ Ãß°¡Çϵµ·Ï ÇÕ´Ï´Ù.

ÀÌ·¸°Ô MakefileÀ» ¼öÁ¤ÇÑ °æ¿ì »õ·Î ÄÄÆÄÀÏ ÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù. ¸¸ÀÏ ÇÁ·Î±×·¥¿¡ Àͼ÷ÇÏ´Ù¸é ÇÊÀÚ°¡ Á÷Á¢ ¾ð±ÞÇÏÁö ¾Ê¾Æµµ Àß ¾Ë°ÚÁö¸¸, ±×·¸Áö ¾ÊÀº °æ¿ì -DNEWDB¿Í °°ÀÌ ¸ÅÅ©·Î¸¦ ¼öÁ¤Çß´Ù¸é ¸ðµç ÀÌÁøÆÄÀÏÀÎ *.o¿Í sendmail¹ÙÀ̳ʸ®¸¦ »èÁ¦ÇÑ ÈÄ ´Ù½Ã Build¸¦ ½ÇÇàÇÏ°í, -ldbµîÀ¸·Î ¶óÀ̺귯¸®¸¦ Ãß°¡Çß´Ù¸é sendmail¹ÙÀ̳ʸ®¸¸ »èÁ¦ÇÑ ÈÄ ´Ù½Ã Build¸¦ ½ÇÇàÇÏ¸é µË´Ï´Ù.

¸¸ÀÏ Solaris 2.6À» »ç¿ëÇÑ´Ù¸é -DNEWDB -DNIS -DNISPLUS -DMAP_REGEX¸¦ MAPDEF¿¡ Á¤ÀÇÇÏ°í, LIBS´Â -lresolv -lsocket -lnsl -lkstat -ldbÀ» »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù. ÇÊÀÚ´Â Solaris 2.6¿¡¼­ À§¿Í°°ÀÌ ¼³Á¤ÇÑ ÈÄ Àß ¾²°í ÀÖ½À´Ï´Ù. ¹°·Ð ÀÌ ¼³Á¤À» »ç¿ëÇؼ­ ÄÄÆÄÀÏ ÇÏ·Á¸é Berkeley DB°¡ ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù. ¾ÆÁ÷ Berkeley DBÆÐÅ°Áö¸¦ ¼³Ä¡ÇÏÁö ¾Ê¾Ò´Ù¸é ¿ì¼± ±×°ÍºÎÅÍ ¼³Ä¡ÇϽñ⠹ٶø´Ï´Ù.

2.3 ¼³Ä¡ ¹× sendmail.cf»ý¼º

ÇÁ·Î±×·¥ÀÇ »ý¼ºÀÌ ³¡³ª¸é obj.$os.$rel.$arch µð·ºÅ丮(¿¹¸¦µé¾î ÇÊÀÚÀÇ °æ¿ì SunOS.5.6.sun4)¿¡ µé¾î°¡¼­ ¼öÆÛÀ¯ÀúÀÇ ±ÇÇÑÀ¸·Î make installÀ» ½ÇÇàÇÏ¸é ¸Å´º¾óµîÀÇ ÆÄÀÏÀÌ ÀνºÅç µË´Ï´Ù. ±âº»ÀûÀ¸·Î sendmail ¹ÙÀ̳ʸ®´Â /usr/lib/ µð·ºÅ丮¿¡ ¼³Ä¡µË´Ï´Ù. ¼³Ä¡µÈ sendmail¹ÙÀ̳ʸ®ÀÇ ¸ðµå¿Í ¼ÒÀ¯ÀÚµîÀº ¾Æ·¡¿Í °°¾Æ¾ß ÇÕ´Ï´Ù.

/ $ ls -l /usr/lib/sendmail
-r-sr-x--x   1 root     bin       412896  6¿ù  5ÀÏ  18:04 /usr/lib/sendmail

¸¸ÀÏ À§¿Í ´Ù¸£´Ù¸é ¾Æ·¡¿Í °°ÀÌ ÀÔ·ÂÇÏ¿© Á¤È®ÇÏ°Ô ¸¸µå½Ã±â ¹Ù¶ø´Ï´Ù.

/ $ chown root /usr/lib/sendmail
/ $ chgrp bin /usr/lib/sendmail
/ $ chmod 4555 /usr/lib/sendmail

** GNU groff°¡ ¾ø´Â ½Ã½ºÅÛ¿¡¼­´Â ¸Þ´º¾óÀ» ¸¸µé¶§ ¿¡·¯°¡ ³³´Ï´Ù. GNU groff¸¦ ¼³Ä¡ÇÏ¸é ±ò²ûÇÏ°Ô(?) ÇØ°áÀÌ µÇÁö¸¸, ¿©ÀÇÄ¡ ¾ÊÀ»¶§´Â ¸Þ´º¾óÀ» ¼³Ä¡ÇÏÁö ¾Ê°í sendmail¹ÙÀ̳ʸ®¸¦ ¼öÀÛ¾÷À¸·Î ¼³Ä¡ÇÏ¿©µµ »ó°üÀÌ ¾ø½À´Ï´Ù.

ÀÌÁ¦ sendmail ¹ÙÀ̳ʸ® ÆÄÀÏÀº ¼³Ä¡¸¦ ÇßÀ¸¹Ç·Î sendmail.cf ÆÄÀÏÀ» ¸¸µé¾î¾ß ÇÕ´Ï´Ù. sendmail.cfÆÄÀÏÀº Á÷Á¢ ¼öÁ¤ÇÒ ¼ö ÀÖÀ¸³ª m4¸¦ ÀÌ¿ëÇؼ­ »ý¼ºÇÏ´Â°Ô ½±½À´Ï´Ù. cf/cf µð·ºÅ丮¿¡´Â ´Ù¾çÇÑ mcÆÄÀÏÀÌ ÀÖÀ¸¹Ç·Î ÀÚ½ÅÀÇ ½Ã½ºÅÛ¿¡ °¡Àå Àû´çÇÑ mcÆÄÀÏÀ» ¼±ÅÃÇÕ´Ï´Ù. ¿¹¸¦µé¾î ÇÊÀÚÀÇ °æ¿ì´Â Solaris 2.6À̹ǷΠgenric-solaris2.mc ÆÄÀÏÀ» »ç¿ëÇß½À´Ï´Ù. ÀÌ mcÆÄÀÏÀ» ÀÌ¿ëÇؼ­ sendmail.cfÆÄÀÏÀ» »ý¼ºÇÏ´Â ¹æ¹ýÀº ¾Æ·¡¿Í °°½À´Ï´Ù.

sendmail $ cd cf/cf
cf $ m4 ../m4/cf.m4 generic-solaris2.mc > sendmail.cf

ÀÌ sendmail.cf¸¦ /etc/mail ¿¡ º¹»çÇÑ ÈÄ /etc/sendmail.cf¸¦ /etc/mail/sendmail.cf·Î ½Éº¼¸¯ ¸µÅ©¸¦ »ý¼ºÇÕ´Ï´Ù. (ln -s /etc/mail/sendmail.cf /etc/sendmail.cf)

** LinuxÀÇ °æ¿ì¿¡´Â mcÆÄÀÏÀÌ ¾ø½À´Ï´Ù. À̶§´Â ´Ù¸¥ mcÆÄÀÏ¿¡¼­ OSTYPE¸¸ linux·Î º¯°æÇÑ ÈÄ »ý¼ºÇÏ¸é µË´Ï´Ù. Linux¿¡¼­ local mailer·Î procmailÀ» »ç¿ëÇÏ´Â ½Ã½ºÅÛ¿¡¼­ ÀϹÝÀûÀÎ mcÆÄÀÏÀº ¾Æ·¡¿Í °°½À´Ï´Ù.

VERSIONID(`linux for smtp-only setup with procmail for korean mail`)dnl
OSTYPE(linux)dnl
FEATURE(nouucp)dnl
FEATURE(local_procmail)dnl
FEATURE(access_db)dnl
MAILER(local)dnl
MAILER(smtp)dnl


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