我有一台运行 Exim4 的 Debian 机器。
然而,在检查 Exim 日志时,我在向自己的域名发送邮件时发现了这个问题:
2010-12-14 09:20:01 1PSQ77-0005mG-9w ** [email protected]: all relevant MX records point to non-existent hosts
2010-12-14 09:20:01 1PSQ77-0005mJ-CH ** [email protected]: all relevant MX records point to non-existent hosts
在 dig 中检查 MX 时:
# dig mx domain.com
...
;; QUESTION SECTION:
;domain.com. IN MX
;; ANSWER SECTION:
domain.com. 3600 IN MX 50 mailprotect.tyneso.com.
domain.com. 3600 IN MX 10 mailprotect2.tyneso.com.
;; ADDITIONAL SECTION:
mailprotect.tyneso.com. 2082 IN A 192.168.13.10
mailprotect2.tyneso.com. 2382 IN A 192.168.13.12
;; Query time: 1 msec
;; SERVER: 192.168.22.11#53(192.168.22.11)
;; WHEN: Tue Dec 14 09:21:22 2010
;; MSG SIZE rcvd: 126
但我能够 ping 和 telnet Barracuda 服务器:
# ping mailprotect2.tyneso.com.
PING mailprotect2.tyneso.com (192.168.13.12) 56(84) bytes of data.
64 bytes from 192.168.13.12: icmp_seq=1 ttl=64 time=5.17 ms
64 bytes from 192.168.13.12: icmp_seq=2 ttl=64 time=0.647 ms
--- mailprotect2.tyneso.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 5066ms
rtt min/avg/max/mdev = 0.647/2.910/5.174/2.264 ms
# telnet mailprotect2.tyneso.com 25
Trying 192.168.13.12...
Connected to mailprotect2.tyneso.com.
Escape character is '^]'.
220 ***************************************************************
^]
有什么线索可能导致 Exim 出现这些错误吗?
谢谢
答案1
问题在于 MX 记录位于 RFC1918 私有范围内。默认情况下,exim 拒绝连接到私有 IPS。查看您的配置中是否有如下行:
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 : 172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16
并根据您的需要进行修改。