Linux

MX 記錄的 exim4 問題

  • December 14, 2010

我有一台執行 Exim4 的 Debian 機器。

但是,在檢查 Exim 日誌時,我在郵寄自己的域時注意到了這個問題:

2010-12-14 09:20:01 1PSQ77-0005mG-9w ** root@domain.com: all relevant MX records point to non-existent hosts
2010-12-14 09:20:01 1PSQ77-0005mJ-CH ** root@domain.com: 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梭子魚伺服器:

# 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 吐出這些錯誤?

謝謝

問題是 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

並修改它以滿足您的需求。

引用自:https://serverfault.com/questions/212344