Mail ServerÀÇ ¼³Ä¡
´ëºÎºÐÀÇ UNIX½Ã½ºÅÛ¿¡¼´Â sendmailÀ̶ó´Â
ÀÎÅÍ³Ý ¸ÞÀϼ¹ö ÇÁ·Î±×·¥ÀÌ ±âº»À¸·Î ³»ÀåµÇ¾î ÀÖÀ¸¹Ç·Î ÀÌ°ÍÀ» »ç¿ëÇϸé
½±°Ô Mail Server¸¦ ±¸ÃàÇÒ ¼ö ÀÖ´Ù. ±×·¯³ª ÀÌ °æ¿ì ´ë°³°¡
Çѱ۸ÞÀÏ Àü¼ÛÀÌ Áö¿øµÇÁö ¾Ê±â ¶§¹®¿¡ »ç¿ë¿¡ ºÒÆíÀ» °¨¼öÇØ¾ß ÇÑ´Ù.
¿©±â¼´Â ÇöÀç ±¹³»¿¡¼
°¡Àå ¸¹ÀÌ »ç¿ëµÇ°í ÀÖ´Â sendmail.8.6.12h2ÀÇ ¼³Ä¡¿¡ ´ëÇؼ ¾Ë¾Æº¸µµ·Ï ÇÏÀÚ.
¾îµð¼ °¡Á®¿À´Â°¡ Çϸé
ftp://ftp.dacom.co.kr/pub/hangul/mail/Official/sendmail.8.6.12h2.tar.Z
¿Í ftp://ftp.dacom.co.kr/pub/hangul/mail/cf/sendmail.cf.os-type¸¦
ÂüÁ¶ÇÏ¿© ÀÚ½ÅÀÇ ÀÛ¾÷µð·ºÅ丮·Î °¡Á®¿Â ÈÄ ¾ÐÃàÀ» ´ÙÀ½°ú °°ÀÌ Ç®¸éµÈ´Ù.
# uncompress sendmail.8.6.12h2.tar.Z
# tar xvf sendmail.8.6.12h2.tar
¾ÐÃàÀÌ Ç®¸®¸é sendmail.8.6.12h2¶ó´Â µð·ºÅ丮°¡ »ý±â¸ç
ÀÌ°÷¿¡¼ ÄÄÆÄÀÏÀ» ÇÏ¸é µÈ´Ù.
# cd sendmail.8.6.12h2
SendmailÀÇ ÄÄÆÄÀÏ
¸ÕÀú ÄÄÆÄÀÏÇÒ ½Ã½ºÅÛÀÇ Å¸ÀÔ¿¡ µû¶ó MakefileÀ» ¼±ÅÃÇÏ¿© ÄÄÆÄÀÏ ÇÑ´Ù.
¿©±â¼´Â Sun½Ã½º ÅÛÀÇ Solaris2.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 ÇÏ´Â ¹æ¹ýÀº ¾Æ·¡¿Í °°´Ù
#> make -f Makefile.SunOS.5.x
SendmailÀÇ Install
¼³Ä¡¸¦ ÇϱâÀü¿¡ ½Ã½ºÅÛ¿¡¼ Á¦°øÇÏ´Â sendmailÀ» µû·Î º¸°üÇÑ´Ù.
# which sendmail
/usr/lib/sendmail
# cp /usr/lib/sendmail /usr/lib/sendmail.org
±×¸®°í ÄÄÆÄÀÏµÈ sendmailÀ» ¼³Ä¡ÇÑ´Ù.
# cp ./sendmail /usr/lib/sendmail
# chmod 555 /usr/lib/sendmail
# chown root /usr/lib/sendmail
# chgrp sys /usr/lib/sendmail
Sendmail Configuration
sendmail.cfÈÀÏÀº ftp://ftp.dacom.co.kr/pub/hangul/mail/cf
µð·ºÅ丮¿¡¼ ÀÚ½ÅÀÇ ½Ã½ºÅÛ Å¸ÀÔ¿¡ ¸Â´Â ÆÄÀÏÀ» °¡Á®¿Â´Ù.
¿©±â¼´Â Solaris2.4¸¦ »ç¿ëÇϹǷΠsendmail.cf.sparc-sun-solaris2.3À»
ÀÌ¿ëÇÏ¿© ¼³Ä¡ÇØ º¸ÀÚ.
¿ì¼± ±âÁ¸ÀÇ sendmail.cf ¸¦ ´Ù¸¥ À̸§À¸·Î º¹»ç¸¦ ÇÏ°í ¼³Ä¡ÇÑ´Ù.
# cp /etc/mail/sendmail /etc/mail/sendmail.cf.org
# cp sendmail.cf.sparc-sun-solaris2.3 /etc/mail/sendmail.cf
±×¸®°í sendmail.cfÈÀÏÀÇ ³»¿ëÀ» ÀÚ½ÅÀÇ ½Ã½ºÅÛ¿¡ ¸Âµµ·Ï ¼öÁ¤À» ÇÑ´Ù.
Ưº°È÷ ¼öÁ¤À» ÇÏÁö ¾Ê¾Æµµ ¸ÞÀÏÀ» ¹Ù·Î »ç¿ëÇÒ ¼ö ÀÖÀ¸³ª ¸î °¡Áö ±â´ÉÀ»
Ãß°¡ ÇÒ °æ¿ì ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤ÇÑ´Ù.
- ¸¸ÀÏ µµ¸ÞÀθíÀ¸·Î ¸ÞÀÏÀ» ¹ÞÀ¸·Á¸é ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇÑ´Ù.
Cwlocalhost ===> Cwlocalhost
Cwsunchon.ac.kr
Cwabc.ac.kr
À§¿Í °°ÀÌ º¯°æÇϸé ÇöÀçÀÇ È£½ºÆ®¸íÀ¸·Î ¸ÞÀÏÀ» ¹ÞÀ» ¼öµµ ÀÖ°í,
sunchon.ac.kr, abc.ac.kr·Îµµ ¸ÞÀÏÀ» ¹ÞÀ» ¼ö ÀÖ´Ù.
¹°·Ð µµ¸ÞÀÎÀ¸·Î ¸ÞÀÏÀ» ¹ÞÀ» °æ¿ì¿¡´Â ³×ÀÓ¼¹ö¿¡ MX ·¹Äڵ忡
µî·ÏÀÌ µÇ¾î ÀÖ¾î¾ß ÇÑ´Ù.
- ¸ÞÀÏÀ» º¸³¾¶§ ÀÚ½ÅÀÇ È£½ºÆ® ³×ÀÓÀÌ ¾Æ´Ï¶ó ´Ù¸¥ À̸§À¸·Î
º¸³¾ °æ¿ì¿¡´Â ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇÑ´Ù.
DM ===> DMabc.ac.kr
À§¿Í °°ÀÌ ÇÏ¸é ¸ÞÀÏÀ» º¸³¾¶§
id@abc.ac.krÀ̶ó´Â ¼Û½ÅÀÚ ÁÖ¼Ò·Î ¸ÞÀÏÀÌ ¹ß¼ÛµÈ´Ù.
SendmailÀÇ ½ÇÇà
sendmail±¸µ¿Àº ·çÆ®±ÇÇÑÀ¸·Î ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇÏ¸é µÈ´Ù.
# /usr/lib/sendmail -bd -q1h
POP ServerÀÇ ¼³Ä¡
Netscape, Eudora¿Í °°Àº ÇÁ·Î±×·¥À» ÅëÇØ ¸ÞÀÏÀ» »ç¿ëÇϱâ À§Çؼ´Â
¸ÞÀϼ¹ö¿¡ POP¼¹ö °¡ ¼³Ä¡µÇ¾î ÀÖ¾î¾ßÇÑ´Ù.
POP ¼¹ö¶ó´Â °ÍÀº ¼¹ö¿¡ ÀÚ½ÅÀÇ ¾ÆÀ̵ð¿Í Æнº¿öµå¸¸ ¾Ë¸é
ÅÚ³Ý À¸·Î ·Î±×ÀÎÇÏÁö ¾Ê°í¼µµ ¸ÞÀϸ¸ üũÇÒ ¼ö ÀÖ´Â
±â´ÉÀ» °®°í ÀÖ´Ù. ±×¸®°í ¼³Á¤¿¡¼ ÀÐÀº ¸ÞÀÏÀº Áö¿ï ¼öµµ ¾Æ´Ï¸é
±×´ë·Î µÑ ¼öµµ ÀÖ´Ù.
ftp://ftp.dacom.co.kr/pub/server/pop/qpop2.1.4-r3.tar.Z ¸¦
´Ù¿î·Îµå ¹Þ´Â´Ù.
´ÙÀ½°ú °°ÀÌ ¾ÐÃàÀ» Ç®°í ÄÄÆÄÀÏÀ» ÇÑ´Ù.
# uncompress qpop2.1.4-r3.tar.Z
# tar xvf qpop2.1.4-r3.tar
# cd qpopper2.1.4
# make solaris2 => ÀÚ½ÅÀÇ OS¿¡ ¸Â´Â °ÍÀ» ¼±ÅÃÇÑ´Ù.
popper.solaris2ÆÄÀÏÀÌ »ý¼ºµÇ¾ú´ÂÁö È®ÀÎÇÏ°í ¼³Ä¡¸¦ ÇÑ´Ù.
# cp popper.solaris2 /usr/sbin/popper
/etc/servicesÆÄÀÏ¿¡ ´ÙÀ½°ú °°ÀÌ Ãß°¡ÇÑ´Ù
pop3 110/tcp #Post Office
/etc/inetd.confÆÄÀÏ¿¡µµ ´ÙÀ½°ú °°ÀÌ Ãß°¡ÇÑ´Ù.
pop3 stream tcp nowait root /usr/sbin/popper popper -s
inetd.conf¸¦ ¼öÁ¤ÇÏ¿´À¸¹Ç·Î inetd damonÀ» restart½ÃÄѾßÇÑ´Ù.
# ps -ef | grep inetd ·Î ÇÁ·Î¼¼½º ID¸¦ ¾Ë¾Æ³»°í
# kill -1 ÇÁ·Î¼¼½ºID ·Î ó¸®ÇÑ ÈÄ ½Ã½ºÅÛÀ»
restart ½ÃŲ´Ù.
POP3ÀÇ Å×½ºÆ®
POP ¼¹ö°¡ Á¤»óÀûÀ¸·Î µ¿ÀÛÇÏ´ÂÁö netscapeȤÀº
eudora·Î Å×½ºÆ®¸¦ Çغ»´Ù. ¾Æ´Ï¸é ¾Æ·¡¿Í °°ÀÌ
°£´ÜÇÏ°Ô Å×½ºÆ® ÇÒ ¼ö ÀÖ´Ù.
# telnet localhost 110
# telnet localhost 110
Trying 127.0.0.1
Connected to localhost
Escape character is '^]'.
+OK QUALCOMM Pop server derived from UCB (version 2.1.4-R3) at
cnlab.kunsan.ac.kr starting.
À§¿Í °°ÀÌ ¿¬°áÀÌ µÇ¸é Á¤»óÀûÀ¸·Î POP ¼¹ö°¡ µ¿ÀÛÇÏ´Â °ÍÀÌ´Ù.
|