- 论坛徽章:
- 0
|
我设置了两个邮箱服务器,其中一个邮箱服务器兼做DNS。各邮箱服务器内部的用户都可以通过域名互相收发邮件,但两个服务器之间互相不能发邮件,报如下错误:
----- Transcript of session follows -----
553 5.3.5 mail.hansabc.com. config error: mail loops back to me (MX problem?)
554 5.3.5 Local configuration error
不知是MX的什么问题,下面是DNS设置:
[root@PC3-Linux mail]# cat /etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
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; };
};
zone "hanstest.com" IN {
type master;
file "hanstest.com";
};
zone "hansabc.com" IN {
type master;
file "hansabc.com";
};
zone "hans3.com" IN {
type master;
file "hans3.com";
};
include "/etc/rndc.key";
[root@PC3-Linux mail]# cat /var/named/hans3.com
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
www IN A 172.18.3.194
mail IN A 172.18.3.194
@ IN MX 10 mail
syslog IN A 172.18.3.194
[root@PC3-Linux mail]#
[root@PC3-Linux mail]# cat /var/named/hansabc.com
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
www IN A 172.18.3.191
mail IN A 172.18.3.191
@ IN MX 10 mail
syslog IN A 172.18.3.191
[root@PC3-Linux mail]#
DNS是172.18.3.194,、兼做mail.hans3.com邮箱服务器,另外一个172.18.3.191做mail.hansabc.com邮箱服务器。
麻烦各位帮我看看,谢了! |
|