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

6. ±âº» control ÆÄÀϵéÀÇ ¼³Á¤À» À§ÇÏ¿©, qmail config Çϱâ

# cd /root/temp/qmail-1.03/
# ./config
Á¤»óÀûÀÎ ½ÇÇà°á°ú´Â ´ÙÀ½°ú °°´Ù.
[root@chsd qmail-1.03]# ./config
Your hostname is chsd.
Your host's fully qualified name in DNS is chsd.chonnam.ac.kr.
Putting chsd.chonnam.ac.kr into control/me...
Putting chonnam.ac.kr into control/defaultdomain...
Putting ac.kr into control/plusdomain...
Checking local IP addresses:
127.0.0.1: Adding localhost to control/locals...
168.131.34.167: Adding chsd.chonnam.ac.kr to control/locals...
If there are any other domain names that point to you,
you will have to add them to /var/qmail/control/locals.
You don't have to worry about aliases, i.e., domains with CNAME records.
Copying /var/qmail/control/locals to /var/qmail/control/rcpthosts...
Now qmail will refuse to accept SMTP messages except to those hosts.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!
[root@chsd qmail-1.03]#
¸¸¾à, À§¿Í °°Àº ¸Þ½ÃÁö°¡ ³ª¿ÀÁö ¾Ê´Â´Ù¸é, ´ç½ÅÀÇ Network ¼³Á¤ ¹× DNS ¼³Á¤¿¡ ¹®Á¦°¡ ÀÖ´Â °æ¿ìÀÌ´Ù. DNS ¼­¹ö¿¡ À̸§ÀÌ Á¤»óÀûÀ¸·Î µî·ÏµÇ¾î ÀÖ´Ù¸é, Network ¼³Á¤À» Àß »ìÆ캸¾Æ¾ß ÇÑ´Ù.

Àß »ìÆ캸¾Æ¾ß ÇÒ ¼³Á¤ÆÄÀÏÀº ´ÙÀ½°ú °°´Ù.

/etc/resolv.conf
search chonnam.ac.kr       <--- ƯÈ÷, ÀÌ ÁÙÀÌ ¾ø¾î¼­, ¹®Á¦¸¦ °ÞÀº °æ¿ì°¡ ÀÖ´Ù. 
nameserver 168.126.63.1                  ÇÊÀÚ´Â À̰Ͷ§¹®¿¡ ¹«Ã´ °í»ýÀ» Çß¾ú´Ù.
nameserver 168.126.63.2
ƯÈ÷, search [domain name] ¶óÀÎÀÌ ¹Ýµå½Ã ÀÖ¾î¾ß ÇÑ´Ù.
/etc/hosts
127.0.0.1        localhost       localhost.localdomain
123.234.123.234  chsd.chonnam.ac.kr  chsd
123.234.123.231  other.chonnam.ac.kr  other
À§ ÆÄÀÏÀÇ ³»¿ëÀ» È®ÀÎÇÏ°í, ³»¿ë¿¡ ¸ÂÃß¾î ¼öÁ¤ÇÑ´Ù.
/etc/sysconfig/network
..........
..........
HOSTNAME=chsd
DOMAINNAME=chonnam.ac.kr
..........
..........
À§ÀÇ ¶óÀÎÀ» È®ÀÎÇÏ¿©, ¾øÀ¸¸é Ãß°¡ÇÑ´Ù.

À§ÀÇ ¼öÁ¤»çÇ×À» ´Ù Àû¿ëÇÏ¿´´Âµ¥µµ, Á¤»óÀûÀÎ config °¡ ¼öÇàµÇÁö ¾Ê´Â´Ù¸é, ±×¶§´Â ÀÌ·¸°Ô ÇÑ´Ù.

[root@chsd qmail-1.03]# ./config-fast chsd.chonnam.ac.kr
config-fast ´ÙÀ½¿¡ ¼­¹öÀÇ DNS µî·Ï È£½ºÆ®³×ÀÓÀ» ´Ù ½áÁÖ¸é µÈ´Ù. ±×·¯¸é, Á¤»óÀûÀ¸·Î ´ÙÀ½ ¼³Ä¡°¡ °¡´ÉÇÏ´Ù.
´ÙÀ½ ÀÌÀü Â÷·Ê