내용이 상당히 깁니다. 물론 이런 터무니 없는 질문을 올려서 될지 모르겠지
만 무례를 무릅쓰고 답변을 기대해보겠습니다.
귀찮으시다면 무시하셔도 상관없습니다. 아래 내부네트웍을 사용한 이유는
연습으로 FM setting을 마스터한뒤 실제 서버에 적용시키려 함입니다.
제 서버의 내용은 대충이러합니다.
apache, named, sendmail, ipop3, imap, imaps 등이 데몬으로 떠있습니다.
redhat7.1 (ipop3, imap, imaps의 차이가 뭔지 잘 몰라서 다 띄워놓고 있습
니다. 과연 어떤것이 진짜인지도 좀 알려주십시오...)
설정 화일들.... 자세히 보아주십시오...
[root@ns /root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
NETMASK=255.255.255.0
IPADDR=192.168.0.1
[root@ns /root]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=ns.root.com
DOMAINNAME=root.com
GATEWAY=192.168.0.10
GATEWAYDEV=eth0
[root@ns /root]# cat /etc/resolv.conf
nameserver 192.168.0.1
search root.com
[root@ns /root]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.1 ns.root.com ns
[root@ns /root]# cat /etc/named.conf
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
key "key" {
algorithm hmac-md5;
secret
"EcOrOkCSlMIJiHbQlUnEBjQynFVYXAaukmZrJqhZmhNJYvOgS0KOrqLBmrlj";
};
zone "root.com" IN {
type master;
file "zone-root.com";
};
zone "super.com" IN {
type master;
file "zone-super.com";
};
zone "hellow.com" IN {
type master;
file "zone-hellow.com";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "zone-0.168.192";
};
[root@ns /root]# cat /var/named/zone-0.168.192 <--과연 reverse zone은
만들 필요가 있나요???
$TTL 86400
@ IN SOA ns.root.com. webmaster.root.com. (
1997022700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
IN NS ns.root.com.
1 IN PTR root.com.
1 IN PTR super.com.
1 IN PTR hellow.com.
[root@ns /root]# cat /var/named/zone-root.com
$TTL 86400
@ IN SOA ns.root.com. webmaster.root.com. ( <--이부
분이 의심
1997022700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
IN NS ns.root.com. <--이부분도 의심
IN MX 10 mail.root.com. <-- 이부분을 제거
해도 같은 결과입니다.
localhost IN A 127.0.0.1
@ IN A 192.168.0.1
ns IN A 192.168.0.1
www IN A 192.168.0.1
mail IN A 192.168.0.1
[root@ns /root]# cat /var/named/zone-super.com
$TTL 86400
@ IN SOA ns.super.com. webmaster.super.com. (
<--이부분이 의심
1997022700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
IN NS ns.super.com. <--이부분도 의심
IN MX 10 mail.super.com. <-- 이부분을 제거
해도 같은 결과입니다.
localhost IN A 127.0.0.1
@ IN A 192.168.0.1
ns IN A 192.168.0.1
www IN A 192.168.0.1
mail IN A 192.168.0.1
[root@ns /root]# cat /var/named/zone-hellow.com
$TTL 86400
@ IN SOA ns.hellow.com. webmaster.hellow.com. (
<--이부분이 의심
1997022700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
IN NS ns.hellow.com. <--이부분도 의심
IN MX 10 mail.hellow.com. <-- 이부분을 제
거해도 같은 결과입니다.
localhost IN A 127.0.0.1
@ IN A 192.168.0.1
ns IN A 192.168.0.1
www IN A 192.168.0.1
mail IN A 192.168.0.1
[root@ns /root]# vi /usr/local/apache/conf/httpd.conf
<Directory /host/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews SymLinksIfOwnerMatch IncludesNoExec ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
ServerName root.com
NameVirtualHost 192.168.0.1
<VirtualHost 192.168.0.1>
ServerAdmin webmaster at root.com DocumentRoot /host/root/public_html
ServerName www.root.com ServerAlias root.com *.root.com
</VirtualHost>
<VirtualHost 192.168.0.1>
ServerAdmin webmaster at super.com DocumentRoot /host/super/public_html
ServerName www.super.com ServerAlias super.com *.super.com
</VirtualHost>
<VirtualHost 192.168.0.1>
ServerAdmin webmaster at hellow.com DocumentRoot /host/hellow/public_html
ServerName www.hellow.com ServerAlias hellow.com *.hellow.com
</VirtualHost>
이상 가상호스트까지는 만족하진 않지만 그럭저럭 작동이 됩니다.(어딘가 좀
꼬롬한 구석이 있는데 어딘지 모르겠습니다. 지적해 주시면 감사드리겠습니
다.redhat7.1)
다음부터가 골치덩어리 sendmail입니다. 자세히 보아 주시고 따끔하게 지적
을 해주시면 정말 감사드리겠습니다.
redhat 7.1(sendmail-8.11.3)의 설정법이면 더욱 감사드리겠습니다.
[root@ns /root]# cat /etc/mail/access
# Check the /usr/share/doc/sendmail-8.11.3/README.cf file for a
description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail-8.11.3/README.cf is part of the sendmail-
doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
[root@ns /root]# cat /etc/mail/virtusertable
webmaster at root.com root
webmaster at super.com super
webmaster at hellow.com hellow
[root@ns /root]# cat /etc/mail/local-host-names
# local-host-names - include all aliases for your machine here.
root.com
super.com
hellow.com
물론 위의 파일들은 전부 정상적으로 db화 하였습니다.
도무지 문제가 뭔지 모르겠습니다. 시키는대로 따라했고 아무리 찾아봐도
실무적인 설정법은 나와있는게 없으니 답답하기 그지없군요. 짧은 코맨트라
도 환영합니다.
메일 좀 주고 받을수 있게 도와주십시오. 6.x대의 설정은 넘처나는데 7.x대
의 설정은 가뭄에 콩나듯하니 아예 6.x로 바꿔야 하는지....
설정화일들을 보기만해도 가슴이 막힙니다.