Home | Data Center | Contact US | Login

Á¦¸ñ qpopper ¼³Ä¡
÷ºÎÆÄÀÏ qpopper ¼³Ä¡.pdf ÀÛ¼ºÀÏ 2007-02-22 15:58:04
ÀÛ¼ºÀÚ: ±â¼úÁö¿øºÎ ±è »ï ¼ö <kiss@nextline.net>

qpopper ¼³Ä¡

qpopper¶õ ¹«¾ùÀΰ¡?
¸ÞÀÏ ¼ö½ÅÀ» Çϱâ À§ÇØ ÇÊ¿äÇÑ ÇÁ·Î±×·¥À¸·Î qpopper´Â °¡Àå ÀαâÀÖ´Â email Ŭ¶óÀ̾ðÆ®¿¡ ÀÇÇØ »ç¿ëµÇ´Â ÀÎÅÍ³Ý email ´Ù¿î·ÎµùÀ» À§ÇÑ POP3ÇÁ·ÎÅäÄÝÀ» »ç¿ëÇÕ´Ï´Ù. ±×·¯³ª qpopper´Â sendmailÀ̳ª smail°ú °°ÀÌ SMTPÇÁ·ÎÅäÄÝÀº Æ÷ÇÔÇÏ°í ÀÖÁö ¾Ê½À´Ï´Ù.

( 1 ) ´Ù¿î·Îµå
http://www.eudora.com/products/unsupported/qpopper/index.html
ftp://mirror.aarnet.edu.au/pub/eudora/servers/unix/popper/old/

wgetÀº À¥¿¡¼­ ÀÚµ¿ÀûÀ¸·Î ÆÄÀÏÀ» ¹Þ¾Æ¿À´Âµ¥ »ç¿ëµÇ´Â À¯Æ¿¸®Æ¼À̸ç HTTP, HTTPS, FTP ÇÁ·ÎÅäÄÝÀ» Áö¿øÇÕ´Ï´Ù.

qpopper ÇÁ·Î±×·¥À» ´Ù¿î·Îµå ÇÕ´Ï´Ù.
[root@nextline ~]# wget
ftp://mirror.aarnet.edu.au/pub/eudora/servers/unix/popper/old/qpopper4.0.4.tar.gz


( 2 ) ¾ÐÃàÇØÁ¦

tar ¸í·É¾î ¿É¼Ç
tar ¸í·É¾î´Â ÆÄÀÏÀ» ¹­°Å³ª Ç® ¶§ »ç¿ëµÇ´Â ¸®´ª½º ¸í·É¾î ÀÔ´Ï´Ù.
c : tar ÆÄÀÏÀ» »ý¼ºÇÒ ¶§(¿©·¯ °³ÀÇ ÆÄÀÏÀ» ÇϳªÀÇ ÆÄÀÏ·Î ¹­À» ¶§)
v : ¹­À» ¶§³ª Ç®¾îÁÙ ¶§ ÆÄÀϵéÀÇ ³»¿ëÀ» ÀÚ¼¼ÇÏ°Ô º¸·Á°í ÇÒ ¶§.
z : gzip°ú °ü·ÃÇÏ¿© ¾ÐÃàÀ̳ª ÇØÁ¦¸¦ ÇѲ¨¹ø¿¡ ÇÏ·Á°í ÇÒ ¶§ »ç¿ë.
x : ÁÖ¾îÁø À̸§ÀÇ ÆÄÀÏ¿¡ ´ëÇÏ¿© ÃßÃâ
»ç¿ë¹ý: tar [¿É¼Ç] ÆÄÀϸí

´Ù¿î·ÎµåÇÑ qpopper4.0.4.tar.gz ÆÄÀÏÀÇ ¾ÐÃàÀ» ÇØÁ¦ÇÕ´Ï´Ù.
[root@nextline ~]# tar zxvf qpopper4.0.4.tar.gz


( 3 ) ȯ°æ¼³Á¤

ÄÄÆÄÀÏÀ» À§ÇÑ È¯°æ¼³Á¤À» À§ÇØ./configure¸¦ ½ÇÇàÇÕ´Ï´Ù.

ÄÄÆÄÀÏ ¿É¼Ç
--enable-specialauth
º¸¾ÈÀ» À§ÇØ ¾ÏȣȭÇϰųª ¾ÏȣȭµÈshadowÆнº¿öµå¸¦ »ç¿ëÇÕ´Ï´Ù.
--enable-servermode
À§ ¿É¼ÇÀºxinetd¸ðµåÀÇ ¹Ý´ëÀÎ µ¶¸³(standalone)µ¥¸óÀ» ÀǹÌÇÏ´Â °ÍÀÌ ¾Æ´Õ´Ï´Ù. ÀϹÝÀû
À¸·Î »ç¿ëÀÚ°¡pop3¼­¹ö¿¡ Á¢¼ÓÇϸé ÀÎÁõ ÈÄ¿¡ »ç¿ëÀÚÀÇ ¸ÞÀϹڽº¸¦ ÀÓ½ÃÆÄÀÏ(/var/spool/mail/»ç¿ëÀÚ¸í.pop)¿¡ º¹»çÇϸç, ÀÌÈÄ »ç¿ëÀÚ°¡ Á¢¼ÓÀ» Á¾·áÇÏ¿´À» ¶§¿¡ »èÁ¦µÇÁö ¾ÊÀº ¸ÞÁö½ÃµéÀÌ ¿ø·¡ÀÇ ¸ÞÀϹڽº·Î ¿Å°ÜÁö°Ô µË´Ï´Ù. ÇÏÁö¸¸ ¸ðµç »ç¿ëÀÚ°¡ Á¢¼ÓÁß¿¡ ¸ðµç ÆíÁö¸¦ ´Ù Àо »èÁ¦½ÃŲ´ÙµçÁö, ¾Æ´Ï¸é ¸ðµç »ç¿ëÀÚ°¡ Á¢¼ÓÁß¿¡ ¸ðµç ÆíÁö¸£ »èÁ¦ÇÏÁö ¾Ê°í ±×´ë·Î ³õ¾Æ µÐ´Ù¸é, ÀÌ·¯ÇÑ ºÒÇÊ¿äÇÑ º¹»çÀÛ¾÷Àº ¾ø¾îÁú °ÍÀÔ´Ï´Ù. ¿©±â¼­ ÁöÁ¤ÇÏ´Â servermode¶õ ÀÌ·¯ÇÑ ¿À¹öÇìµå¸¦ ÁÙÀ̱â À§ÇÏ¿© ¸ÞÀϹڽº ÀÚü¿¡ ¶ô(locak)À» °É°í ³»¿ëÀ» °Ë»çÇÏ°í ´Ù½Ã ¶ô(locak)À» Ǫ´Â ¹æ¹ýÀ» »ç¿ëÇÕ´Ï´Ù. ÀϹÝÀûÀ¸·Î »ç¿ëÇÏ¸é ¼º´ÉÀ» Á¶±Ý ³ôÀÏ ¼ö ÀÖÀ¸´Ï »ç¿ëÇϱ⸦ ±ÇÇص帳´Ï´Ù.
--enable-shy
ÀÌ ¿É¼ÇÀºqpopper¹öÀü ¼û±â±â À§ÇÑ ¿É¼ÇÀÔ´Ï´Ù.

±× ¿Ü ¿É¼Ç
--enable-auto-delete
ÀÌ ¿É¼ÇÀº ¸ÞÀÏÀ» °¡Á® °£ ÈÄ¿¡ °¡Á®°£ ¸ÞÀÏ ÀÚµ¿»èÁ¦¸¦ Àû¿ëÇÒ ¶§ »ç¿ëÇÕ´Ï´Ù.
--enable-auth-file=path
¸ÞÀÏrelay¸¦ Çã¿ëÇÒ »ç¿ëÀÚ ¼³Á¤ÆÄÀÏÀ» ÁöÁ¤ÇÕ´Ï´Ù.
--enable-nonauth-file=path
¸ÞÀÏrelay¸¦ Çã¿ëÇÏÁö ¾ÊÀ» »ç¿ëÀÚ ¼³Á¤ÆÄÀÏÀ» ÁöÁ¤ÇÕ´Ï´Ù.

¾ÐÃà ÇØÁ¦µÈqpopper4.0.4 µð·ºÅ丮·Î À̵¿ÇÕ´Ï´Ù.
[root@nextline ~]# cd qpopper4.0.4

¨è ./configure¸¦ ½ÇÇàÇÕ´Ï´Ù.
[root@nextline qpopper4.0.4]# ./configure --enable-specialauth --enable-servermode --enable-shy


( 4 ) ÄÄÆÄÀÏ

ÄÄÆÄÀÏÀ» ÇϱâÀ§ÇØmake¸¦ ½ÇÇàÇÕ´Ï´Ù.
[root@nextline qpopper4.0.4]# make


( 5 ) ¼³Ä¡

qpopper ¼³Ä¡¸¦ À§ÇØ make install¸¦ ½ÇÇàÇÕ´Ï´Ù.
[root@nextline qpopper4.0.4]# make install

make install ¿À·ù
manÆäÀÌÁö µð·ºÅ丮°¡ »ý¼ºµÇÁö ¾Ê¾Æ ¹ß»ýÇÑ ¿À·ùÀÔ´Ï´Ù.
/usr/bin/install -c -m 0644 -o root ./man/popper.8 /usr/local/man/man8/
/usr/bin/install: cannot create regular file `/usr/local/man/man8/': µð·ºÅ丮ÀÔ´Ï´Ù
make: *** [install] ¿À·ù 1

¨è /usr/local/man ÇÏÀ§¿¡ man8µð·ºÅ丮¸¦ »ý¼ºÇÕ´Ï´Ù.
[root@nextline qpopper4.0.4]# mkdir -p /usr/local/man/man8

¨é make install¸¦ Àç ½ÇÇàÇÕ´Ï´Ù.
[root@nextline qpopper4.0.4]# make install


( 6 ) popper º¹»ç

ÄÄÆÄÀÏ °á°ú·Î »ý¼ºµÈpopper ½ÇÇàÆÄÀÏÀ» /usr/local/libµð·ºÅ丮·Î º¹»çÇÕ´Ï´Ù.
Popper ½ÇÇàÆÄÀÏÀ» popperµð·ºÅ丮 ÇÏÀ§¿¡ À§Ä¡ÇÏ°í ÀÖ½À´Ï´Ù.
[root@nextline qpopper4.0.4]# cp popper/popper /usr/local/lib

¨è º¹»çµÈ popper ½ÇÇàÆÄÀÏÀ» È®ÀÎÇÕ´Ï´Ù.
[root@nextline qpopper4.0.4]# ls /usr/local/lib


( 7 ) xinetd µî·Ï

vi ¿¡µðÅÍ »ç¿ë¹ý
»ç¿ëÇü½Ä: vi [¿É¼Ç] [»ý¼ºÇÒ ÆÄÀϸí/ÆíÁýÇÒ ÆÄÀϸí]

vi ¿¡µðÅÍ´Â ÀԷ¸ðµå, ¸í·É¸ðµå, ½ÇÇà¸ðµå·Î ±¸ºÐµË´Ï´Ù.

ÀԷ¸ðµå: vi ÆíÁýÈ­¸é¿¡¼­ ¹®ÀÚ¸¦ ÀÔ·ÂÇÒ ¼ö ÀÖ´Â ¸ðµå·Î¼­ ÀԷ¸ðµå·Î ÁøÀÔÇϱâ À§Çؼ­´Â i, a, o, I, A, O, RµîÀÌ ÀÖ½À´Ï´Ù. Áï Ãʱâ vi ÆíÁý±â ¸ðµå´Â ¸í·É¾î ¸ðµå·Î ÁøÀÔÀ» Çϱ⶧¹®¿¡ ¹®ÀÚ¸¦ ÀÔ·ÂÇϱâ Àü¿¡ ¾ÕÀÇ ´ÜÃàÅ°Áß Çϳª¸¦ ¸ÕÀú ÀÔ·ÂÇØ¾ß ¿øÇÏ´Â ¹®ÀÚ¸¦ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.
¸í·É¸ðµå: Ä¿¼­À̵¿/¹®ÀÚ»èÁ¦/¹®ÀÚ(¿­)±³Ã¼/¹®ÀÚ¿­°Ë»ö µîÀ» ÇÒ¼ö ÀÖ´Â ¸ðµå·Î¼­ ÀԷ¸ðµå¿¡¼­ ÆíÁýÀÌ ¿Ï·áµÇ¸é EscÅ°¸¦ ´­·¯ ¸í·É¸ðµå·Î ÁøÀÔÇÏ¸é µË´Ï´Ù.

x : vi ¸í·É¸ðµå¿¡¼­ Ä¿¼­À§Ä¡ÀÇ ÇÑ ¹®ÀÚ »èÁ¦
dw : vi ¸í·É¸ðµå¿¡¼­ Ä¿¼­À§Ä¡ÀÇ ÇÑ´Ü¾î »èÁ¦
dd : vi ¸í·É¸ðµå¿¡¼­ Ä¿¼­À§Ä¡ÀÇ Çà »èÁ¦
Ndd : vi ¸í·É¸ðµå¿¡¼­ Ä¿¼­À§Ä¡ÀÇ ¿©·¯Çà µ¿½Ã »èÁ¦

½ÇÇà¸ðµå: Ưº°ÇÑ ¸í·É¾î¸¦ ½ÇÇàÇÏ´Â ¸ðµå·Î¼­ ¸í·É¾î¸ðµå¿¡¼­ ":"(ÄÝ·Ð)¸¦ ´©¸£¸é vi È­¸é ÇÏ´Ü ÁÂÃø¿¡ vi Ư¼ö¸í·É¾î¸¦ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.

½ÇÇà¸ðµåÀÇ ÀϹÝÀûÀ¸·Î ¾²À̴ Ư¼ö ¸í·É¾î
q : ¼öÁ¤ ÀÛ¾÷ÀÌ ÀÌ·ç¾îÁöÁö ¾ÊÀº »óÅ¿¡¼­ vi ÆíÁý±â¿¡¼­ ºüÁ®³ª¿É´Ï´Ù.
q! : ¼öÁ¤ ÀÛ¾÷ÀÌ ÀÌ·ç¾îÁø ºÎºÐÀ» Àû¿ë½ÃÅ°Áö ¾Ê°í vi ÆíÁý±â¸¦ °­Á¦·Î ºüÁ®³ª¿É´Ï´Ù.
w : ¼öÁ¤µÈ ÀÛ¾÷À» ÀúÀåÇÕ´Ï´Ù.
wq : ¼öÁ¤µÈ ÀÛ¾÷À» ÀúÀåÇÏ°í vi ÆíÁý±â¿¡¼­ ºüÁ®³ª¿É´Ï´Ù.

Ãʱ⠸í·É¾î¸ðµå-> ÀԷ¸ðµåÁøÀÔ -> ÆíÁý -> ¸í·É¾î¸ðµå -> ½ÇÇà¸ðµå -> Á¾·á

¨ç ¼³Ä¡ÇÑpopper¸¦ xinetdȯ°æ¿¡¼­ ÀνÄÇϵµ·Ï Çϱâ À§ÇÏ¿© ´ÙÀ½°ú °°ÀÌ
/etc/xinetd.d/pop3 ÆÄÀÏÀ» vi ¿¡µðÅ͸¦ ÀÌ¿ëÇÏ¿© »ý¼ºÇØ ÁÝ´Ï´Ù.
[root@nextline qpopper4.0.4]# vi /etc/xinetd.d/pop3


¨è pop3 ½ºÅ©¸³Æ®¸¦ Ãß°¡ÇÕ´Ï´Ù.
service pop3
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/local/lib/popper
server_args = qpopper -s
log_on_failure += USERID
}
À§ÀÇ ³»¿ë °¡¿îµ¥ Áß¿äÇÑ °ÍÀºdisable = no, server=/usr/local/lib/popper °ªÀÔ´Ï´Ù. Disable °ªÀÌ no·Î µÇ¾îÀÖ¾î¾ß¸¸ ÀÌ ¼³Á¤ÀÌ »ç¿ëµÉ ¼ö ÀÖÀ¸¸ç sever°ªÀÌ ¹æ±Ý ¼³Ä¡ÇÏ¿© º¹»çÇÑ popper¸¦ Á¤È®ÇÏ°Ô ÁöÁ¤ÇÏ°í ÀÖ¾î¾ß¸¸ ÇÕ´Ï´Ù.


( 8 ) pop3 ±¸µ¿

¨ç ¼³Ä¡µÈqpopper¸¦ Àû¿ëÇϱâ À§ÇÏ¿© ´ÙÀ½°ú °°ÀÌ xinetd¸¦ Àç ½ÃÀÛ ÇÕ´Ï´Ù. qpopper´Â xinetd¸ðµå·Î ÀÛµ¿ÀÌ µÇ±â ¶§¹®¿¡ /etc/rc.d/xinetd.d/pop3ÆÄÀÏÀ» »õ·Î ¸¸µé°Å³ª ¼öÁ¤ÇÏ¿´À» ¶§¿¡´Â ¹Ýµå½Ã xinetd¸¦ Àç ½ÃÀÛÇØ ÁÖ¼Å¾ß ÇÕ´Ï´Ù.
[root@nextline qpopper4.0.4]# /etc/rc.d/init.d/xinetd restart


( 9 ) Æ÷ƮȮÀÎ

¨ç pop3°¡ »ç¿ëÇÏ´Â 110Æ÷Æ®°¡ Á¤»óÀûÀ¸·Î LISTENµÇ´ÂÁö È®ÀÎÇÕ´Ï´Ù.
[root@nextline qpopper4.0.4]# netstat -anp | grep LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 4348/xinetd


( 10 ) pop3 Å×½ºÆ®

pop3°¡ Á¤»óÀûÀ¸·Î ½ÇÇàµÇ´ÂÁö È®ÀÎÇÕ´Ï´Ù.
[root@nextline qpopper4.0.4]# telnet localhost 110
  Sendmail °èÁ¤ ¹× µµ¸ÞÀλý¼º
  qmail ¼³Ä¡





ȸ»ç¼Ò°³ °³ÀÎÁ¤º¸Ãë±Þ¹æħ ÀÌ¿ë¾à°ü À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ CONTACT US IDC ¾àµµ
ȸ»ç¼Ò°³ °³ÀÎÁ¤º¸Ãë±Þ¹æħ ÀÌ¿ë¾à°ü À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ CONTACT US IDC ¾àµµ ȸ»ç¼Ò°³ °³ÀÎÁ¤º¸Ãë±Þ¹æħ ÀÌ¿ë¾à°ü À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ CONTACT US IDC ¾àµµ