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

3. POP3¼­¹ö, ¼¾µå¸ÞÀÏ Áغñ¿Í Å×½ºÆÃ

3.1 POP3¼­¹ö Áغñ¿Í Å×½ºÆÃ

1) localhostÀÇ pop-3 Æ÷Æ®¿¡ Á¢¼ÓÇÏ¿© pop3ÀÎÁõ°úÁ¤À¸·Î dracd DB¸¦ ¾÷µ¥ÀÌÆ®ÇÑ´Ù.


# telnet localhost 110
  Trying 127.0.0.1...
  Connected to localhost.
  Escape character is '^]'.
  +OK QPOP (version 3.1.2) at mail.my.net starting.
  user foo         <--- localhostÀÇ À̸ÞÀÏ °èÁ¤ 
  +OK Password required for foo.
  pass bar        <--- Æнº¿öµå
  +OK foo has 0 visible messages (0 hidden) in 0 octets.
  quit
  +OK Pop server at mail.my.net signing off.

2) /etc/mail/dracd.dbÈ­ÀÏÀÌ ½Ã½ºÅÛ date¿Í ÀÏÄ¡ÇÏ´ÂÁö È®ÀÎ


# ls -l /etc/mail/dracd.db
# date

3) dracd.db¿¡ IP Address(¿©±â¼± 127.0.0.1)°¡ µî·ÏµÇ¾ú´ÂÁö È®ÀÎ


# grep 127.0.0.1 dracd.db
Binary file dracd.db matches   <--- Á¦´ë·Î µî·ÏÀÌ µÇ¾úÀ»¶§ Ãâ·Â ¸Þ¼¼Áö

3.2 DRAC°¡ µ¿ÀÛÇÏ°Ô Sendmail ¼¼ÆÃÇϱâ.

DRAC°¡ µ¿ÀÛÇÏ°Ô Sendmail ÀÚµ¿ ¼¼ÆÃÇϱâ.

À§ÀÇ Optional Package sendmail-8.11.0-8.i386.rpm Àº drac-enabled sendmail Áï drac °¡ sendmail¿¡¼­ µ¿ÀÛÇϵµ·Ï ÀÚµ¿À¸·Î sendmail.cf¸¦ ¼³Á¤ÇÑ´Ù. ¼³Ä¡ÈÄ sendmail.cf¸¦ Àç¼³ Á¤ÇØÁÖ¾î¾ß ÇÑ´Ù. ¾Æ·¡¿Í °°ÀÌ µÎ°¡Áö ¹æ¹ýÀ¸·Î ÇÒ ¼ö ÀÖ´Ù.(µÎ°¡ÁöÁß ÇÑ°¡Áö ¼±ÅÃ)


- À缳ġ
 # rpm -Uvh --force sendmail-.11.0-8.i386.rpm 

- ¾ðÀνºÅçÇÏ°í À缳ġ
 # rpm -e --nodeps sendmail
 # rpm -Uvh sendmail-.11.0-8.i386.rpm 
 
ÀÚµ¿¼³Ä¡´Â ´ëºÎºÐ Àß ÀÛµ¿ÇÏÁö¸¸ ¸¸¾à Á¦´ë·Î ÀÛµ¿ÇÏÁö ¾ÊÀ¸¸é ¾Æ·¡ÀÇ ¼öµ¿¼³Á¤À» Âü°í

¼öµ¿ sendmail.cf ¼³Á¤


1) /etc/sendmail.cf   È­ÀÏÀ» ¿­¾î ¾Æ·¡ÀÇ ¶óÀÎÀ» local info ¶óÀÎ ¹Ø¿¡ Ãß°¡.

# dynamic relay authorization control map
  Kdrac btree /etc/mail/dracd


2) ¾Æ·¡ÀÇ ³»¿ëÀ»   "SLocal_check_rcpt" ¿¡ Ãß°¡

  # allow recent POP/IMAP mail clients to relay
  R$*                             $: $&{client_addr}
  R$+                             $: $(drac $1 $: ? $)
  R?                              $@ ?
  R$+                             $@ $#OK
ÁÖÀÇ) °ø¹éÀº space°¡ ¾Æ´Ï¶ó tap Å°·Î 

3) sendmail Àç½Ãµ¿
# /etc/rc.d/init.d/sendmail restart


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