Sendmail的MX查找失败,挖没有

任何人都可以解释这个问题? 我可以在主机上进行掘或nslookup,并获得MX服务器,但是当我通过sendmail检查失败?

RHEL 5.6

发送邮件:

(root)> sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > /mx google.com getmxrr(google.com) returns 0 value(s): 

Sendmaildebugging输出

 (root)> echo '/mx google.com' | sendmail -bt -d8.20 ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > getmxrr(google.com, droplocalhost=0) getmxrr(google.com) returns 0 value(s): 

挖:

 (root)> dig mx google.com ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-14.P1.el5 <<>> mx google.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2247 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 9 ;; QUESTION SECTION: ;google.com. IN MX ;; ANSWER SECTION: google.com. 600 IN MX 10 aspmx.l.google.com. google.com. 600 IN MX 20 alt1.aspmx.l.google.com. google.com. 600 IN MX 30 alt2.aspmx.l.google.com. google.com. 600 IN MX 40 alt3.aspmx.l.google.com. google.com. 600 IN MX 50 alt4.aspmx.l.google.com. ;; AUTHORITY SECTION: google.com. 33524 IN NS ns3.google.com. google.com. 33524 IN NS ns4.google.com. ... 

Sendmail日志条目

 Sep 20 00:42:26 myhost sendmail[26714]: r8K0gLUS026712: [email protected], [email protected] (500/500), delay=00:00:05, xdelay=00:00:05, mailer=example, pri=152798, relay=example.org, dsn=5.1.2, stat=Host unknown (Name server: example.org: host not found) 

Sendmail与-d17(超时)

 sendmail -v -d17.20 [email protected] Running /var/spool/mqueue/r8KFB1VF002503 (sequence 1 of 1) hostsignature(gmail.com) hostsignature(): getmxrr() returned 1, mxhosts[0]=gmail.com hostsignature(gmail.com) = gmail.com hostsignature(gmail.com) hostsignature(): stab(gmail.com) found gmail.com <[email protected]>... Connecting to gmail.com via esmtp... 

宁愿发表这个评论,但我不能。

你的sendmail日志条目一直在谈论“example.org”,这表明sendmail没有完全configuration。 example.org是一个典型的占位符域,与[email protected]一样。

(假设你没有select性地自行修改/检查它 – 如果情况如此,a)难以提取有意义的信息,b)至less应该一致地进行)