리눅스
subject 메일서버(QMAIL) 구축 - 6. 기본 control 파일들의 설정
author 관리자 date 2004-01-06 hit 157 HIT
# 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 등록 호스트네임을 다 써주면 된다. 그러면, 정상적으로 다음 설치가 가능하다.
목록보기
39  메일서버(QMAIL) 구축 - 10. qmail 부트파일 만들기  2004-01-06 135
38  메일서버(QMAIL) 구축 - 9. root 와 postmaster를 위한 alias 설정  2004-01-06 137
37  메일서버(QMAIL) 구축 - 8. qmail의 log파일을 위한 디렉토리 만들기  2004-01-06 134
36  메일서버(QMAIL) 구축 - 7. qmail 데몬을 위한 디렉토리와 파일들을 생성  2004-01-06 143
 메일서버(QMAIL) 구축 - 6. 기본 control 파일들의 설정  2004-01-06 157
34  메일서버(QMAIL) 구축 - 5. qmail 과 연관 프로그램들을 컴파일  2004-01-06 139
33  메일서버(QMAIL) 구축 - 2. 루트권한으로 변경 후..  2004-01-06 152
32  메일서버(QMAIL) 구축 - 1. qmail 소스 받아오기  2004-01-06 156
31  메일서버(QMAIL) 구축 - 4. qmail 실행을 위한 유저와 그룹을 생성  2004-01-06 130
30  메일서버(QMAIL) 구축 - 3. qmail 설치를 위한 디렉토리를 생성  2004-01-06 128
29  큐메일 설치가이드  2004-01-04 147
28  리눅스 설치 후 해야 할 것들..  2003-12-29 148
27  리눅스 설치 후 초기 보안 설정법.. [1]  2003-12-22 155
26  리눅스 보안을 위한 기본설정 Part 2.  2003-12-22 153
25  서버 부팅 데몬 설정  2003-12-02 140
1 2 3 4 5