在Debian Lenny服务器'example.net'上,我们有一些需要发送邮件到'[email protected]'的cron作业。 该域的MX是一个非现场专用的SMTP服务器。 Exim正在使用系统别名路由器来查找本地用户,而不是find他:
$ exim -bt [email protected] R: system_aliases for [email protected] [email protected] is undeliverable: Unrouteable address
在/etc/aliases我们有正常的系统用户redirect到root,我想保留。
为通过dnslookup指定的SMTP主机在本地找不到用户的exim发送邮件的最佳方式是什么?
所以,在你的本地用户路由器之后,添加你的dnslookup路由器的一个稍微修改的副本:
dnslookup2: driver = dnslookup domains = example.net transport = remote_smtp ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 no_more
请注意,“domains =”与路由器的名称一样已被更改。
FWIW这是一个奇怪的configuration,有问题的服务器认为example.net是本地的,如果它被当作本地域来处理的话,在另一个地方有一组不同的有效用户。 不一定是错误的configuration,但奇怪的是,使我的“你可能在你来之前做出了错误的select”感觉到困扰。
对于你的问题,最简单的解决scheme可能是在/ etc / aliases中join如下内容:
job-owner : [email protected]
另一种更纯粹的解决scheme是本地机器只为自己路由电子邮件(例如,用于服务器'localserver',这样example.net就通过dnslookup路由器在DNS上正确路由,如jj33所示。
您的本地服务器不应parsingexample.net,除非它是example.net域的主要邮件路由服务器。