debian exim4配置問題
配置了Debian下exim4為internet模式,
可以往internet發信,可是不能往局域網內的郵件服務器發信,
/var/log/exim4/mainlog提示:
**
[email protected]: all relevant MX records point to non-existent hosts
原因是/etc/exim4/exim4.conf.template文件裡的
dnslookup:
debug_print = "R: dnslookup for $local_part@$domain"
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
same_domain_copy_routing = yes
# ignore private rfc1918 and APIPA addresses
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 :\
255.255.255.255
no_more
也就是說nlpr.ia.ac.cn(192.168.82.3)被ignore了,
將上面代碼中的”192.168.0.0/16 :”刪除,一切萬事大吉。