配置了Debian下exim4为internet模式,
可以往internet发信,可是不能往局域网内的邮件服务器发信,
/var/log/exim4/mainlog提示:
** xxx@nlpr.ia.ac.cn: 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 :”删除,一切万事大吉。