Axil S/E kdk016
				  1997. 4 .16
				  Kim Do Kyung

SUBJECT: Mail Server(Sendmail) Configuration(Solaris 2.4).

CONTENTS:

¡Ú Mail Server(Sendmail) Configuration(Solaris 2.4).

	¡Ø SendmailÀÇ ÄÄÆÄÀÏ
 
¸ÕÀú ÄÄÆÄÀÏÇÒ ½Ã½ºÅÛÀÇ Å¸ÀÔ¿¡µû¶ó MakefileÀ» ¼±ÅÃÇÏ¿© ÄÄÆÄÀÏÇÑ´Ù. ¿©±â¼­´Â
Solaris 2.4ȯ°æÀ» ±âÁØÀ¸·Î ¼³¸íÇÑ´Ù.
 
     # cd src

¿ì¼± ¸î °¡Áö ¼öÁ¤À» ÇÑÈÄ¿¡ make¸¦ ¼öÇàÇÑ´Ù.

     # cp sysexits.h /usr/ucbinclude/sysexits.h
 
¿Í °°ÀÌ È­ÀÏÀ» º¹»çÇÏ°í, Makefile.SunOS.5.xÈ­ÀÏ¿¡¼­ ´ÙÀ½°ú °°ÀÌ
comment󸮸¦ ÇÑ´Ù.

ln -s /usr/ucbinclude/sysexits.h
==> #ln -s /usr/ucbinclude/sysexits.h
 
${NROFF} -mandoc aliases.5 > aliases.0
==> ${ NROFF} -man aliases.5 > aliases.0

${NROFF} -mandoc mailq.1 > mailq.0
==> ${ NROFF} -man mailq.1 > mailq.0
 
${NROFF} -mandoc newaliases.1 > newaliases.0
==> ${ NROFF} -man newaliases.1 > newaliases.0
 
${NROFF} -mandoc sendmail.8 > sendmail.0
==> ${ NROFF} -man sendmail.8 > sendmail.0
 
À§¿Í °°ÀÌ º¯°æÇÑ ÈÄ¿¡ make¸¦ ½ÇÇàÇÑ´Ù.
 
     # make -f Makefile.SunOS.5.x

	¡Ø SendmailÀÇ ÀνºÅç

¼³Ä¡¸¦ ÇϱâÀü¿¡ ½Ã½ºÅÛ¿¡¼­ Á¦°øÇÏ´Â sendmailÀ» µû·Î º¸°üÇÑ´Ù.

     # which sendmail
     /usr/lib/sendmail
     # cp /usr/lib/sendmail /usr/lib/sendmail.org

±×¸®°í ÄÄÆÄÀÏµÈ sendmailÀ» ¼³Ä¡ÇÑ´Ù.

     # cp ./sendmail /usr/lib/sendmail
     # chmod 4555 /usr/lib/sendmail
     # chown root /usr/lib/sendmail
     # chgrp sys /usr/lib/sendmail

	¡Ø Sendmail Configuration

sendmail.cfÈ­ÀÏÀº ftp://ftp.svc.hei.co.kr/pub/mail/sendmail/cf µð·ºÅ丮¿¡¼­
ÀÚ½ÅÀÇ ½Ã½ºÅÛ Å¸ÀÔ¿¡ ¸Â´Â È­ÀÏÀ» °¡Á®¿Â´Ù. ¿©±â¼­´Â Solaris2.4¸¦ »ç¿ëÇϹǷÎ
sendmail.cf.solarisÀ» ÀÌ¿ëÇÏ¿© ¼³Ä¡Çغ¸ÀÚ.

¿ì¼± ±âÁ¸ÀÇ sendmail.cf ¸¦ ´Ù¸¥ À̸§À¸·Î º¹»ç¸¦ ÇÏ°í ¼³Ä¡ÇÑ´Ù.

     # cp /etc/mail/sendmail /etc/mail/sendmail.cf.org
     # cp sendmail.solaris /etc/mail/sendmail.cf

±×¸®°í sendmail.cfÈ­ÀÏÀÇ ³»¿ëÀ» ÀÚ½ÅÀÇ ½Ã½ºÅÛ¿¡ ¸Âµµ·Ï ¼öÁ¤À» ÇÑ´Ù. Ưº°È÷
¼öÁ¤À» ÇÏÁö ¾Ê¾Æµµ ¸ÞÀÏÀ» ¹Ù·Î »ç¿ëÇÒ ¼ö ÀÖÀ¸³ª ¸î °¡Áö ±â´ÉÀ» Ãß°¡ ÇÒ °æ¿ì
¾Æ·¡¿Í °°ÀÌ ¼öÁ¤ÇÑ´Ù.

- ¸¸ÀÏ µµ¸ÞÀθíÀ¸·Î ¸ÞÀÏÀ» ¹ÞÀ¸·Á¸é ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇÑ´Ù.

Cwlocalhost    ===>   Cwlocalhost
                      Cwhei.co.kr
                      Cwabc.co.kr

À§¿Í °°ÀÌ º¯°æÇϸé ÇöÀçÀÇ È£½ºÆ®¸íÀ¸·Î ¸ÞÀÏÀ» ¹ÞÀ» ¼öµµ ÀÖ°í, hei.co.kr,
abc.co.kr·Îµµ ¸ÞÀÏÀ» ¹ÞÀ» ¼ö ÀÖ´Ù. ¹°·Ð µµ¸ÞÀÎÀ¸·Î ¸ÞÀÏÀ» ¹ÞÀ» °æ¿ì¿¡´Â
³×ÀÓ¼­¹ö¿¡ MX ·¹Äڵ忡 µî·ÏÀÌ µÇ¾î ÀÖ¾î¾ß ÇÑ´Ù.

- ¸ÞÀÏÀ» º¸³¾¶§ ÀÚ½ÅÀÇ È£½ºÆ® ³×ÀÓÀÌ ¾Æ´Ï¶ó ´Ù¸¥ À̸§À¸·Î º¸³¾ °æ¿ì¿¡´Â
´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇÑ´Ù.

DM ===> DMabc.co.kr

À§¿Í °°ÀÌ ÇÏ¸é ¸ÞÀÏÀ» º¸³¾¶§ id@abc.co.krÀ̶ó´Â ¼Û½ÅÀÚ ÁÖ¼Ò·Î ¸ÞÀÏÀÌ
¹ß¼ÛµÈ´Ù. n SendmailÀÇ ½ÇÇà

sendmail±¸µ¿Àº ·çÆ®±ÇÇÑÀ¸·Î

     # /usr/lib/sendmail -bd -q1h

¶ó°í ½ÇÇàÇÏ¸é µÈ´Ù.