|
局域网内有两台电脑,分别装Linux7.2,sendmail。
其中,PC1做DNS服务器,IP是:192.168.10.1,域名是:test.com。
PC2的IP是:192.168.10.2,域名是:domain.com,PC2的DNS指向PC1。
配置PC1的DNS可以正常解析test.com和domain.com。
配置两台机器的sendmail可以正常向外(如:新浪等)发邮件,sendmail.cf由/etc/mail/sendmail.mc生成,可是在test.com和domain.com之间互相发邮件是却碰到了同样的错误。
OUTLOOK中错误如下:
The original message was received at Sun, 23 Mar 2003 20:35:20 -0800
from [192.168.10.1]
----- The following addresses had permanent fatal errors -----
(reason: 553 5.3.5 system config error)
----- Transcript of session follows -----
553 5.3.5 mail.test.com. config error: mail loops back to me (MX problem?)
554 5.3.5 Local configuration error
下面是我的DNS配置:
[root@server named]# less /etc/named.conf显示:
zone "test.com" {
type master;
file "test.com.zone";
};
zone "domain.com" {
type master;
file "domain.com.zone";
};
[root@server named]# less test.com.zone显示:
$TTL 86400
@ IN SOA @ root.localhost (
8 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS server
@ IN MX 10 mail
server IN A 192.168.10.2
mail IN A 192.168.10.2
[root@server named]# less domain.com.zone显示如下:
$TTL 86400
@ IN SOA @ root.localhost (
8 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS server
@ IN MX 10 mail
server IN A 192.168.10.1
mail IN A 192.168.10.1
日志文件的信息如下root@server named]# tail ../log/maillog :Mar 23 20:52:26 server sendmail[3852]: h2O4qQH03852: from=, size=1190, class=0, nrcpts=1, msgid=<00c801c2f13b$4d0a99a0$50f15dcb@host>, proto=ESMTP, daemon=MTA, mech=LOGIN, relay=[192.168.10.1]
Mar 23 20:52:26 server sendmail[3854]: h2O4qQH03852: SYSERR(root): mail.domain.com. config error: mail loops back to me (MX problem?)
Mar 23 20:52:26 server sendmail[3854]: h2O4qQH03852: to=, ctladdr= (500/500), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=31190, relay=mail.domain.com. [192.168.10.1], dsn=5.3.5, stat=Local configuration error
Mar 23 20:52:26 server sendmail[3854]: h2O4qQH03852: h2O4qQH03854: DSN: Local configuration error
Mar 23 20:52:26 server sendmail[3854]: h2O4qQH03854: to=, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=61290, dsn=2.0.0, stat=Sent
Mar 23 20:52:26 server sendmail[3854]: h2O4qQH03854: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=61290, dsn=2.0.0, stat=Sent
看错误信息是说,MX记录形成循环了,可是我搞不清到底错在哪儿了,请大虾赐教,不胜感激。
我的目的是模拟公网上的两个邮件服务器收发邮件,例如:这里的test.com就是yahoo.com;domain.com就是sina.com。所不同的是:将yahoo.com和sina.com的域名解析由同一DNS来做。 |
|