Exim4不应该发送电子邮件到自我域

我的域名example.com在GoDaddy上注册,同时还有MXlogging。 example.com的主机位于由另一个主机托pipe的VPS上。 example.com运行一个具有联系表单的Web服务器。 我希望这个联系表格发送邮件到[email protected]到GoDaddy邮箱,我需要在VPS上设置exim以作为MTA运行。

我使用'dpkg-reconfigure exim4-config'设置exim4,select“internet site”选项,并接受其余的默认选项。 但是我看到exim试图把邮件发送到info @ example com自己到GoDaddy。

我发现在'dpkg-reconfigure exim4-config'

Please enter a semicolon-separated list of recipient domains for which this machine should consider itself the final destination. These domains are commonly called 'local domains'. The local hostname and 'localhost' are always added to the list given here 

并试图find一种方法来不包括本地主机名到这个列表:

 man update-exim4.conf dc_other_hostnames is used to build the local_domains list, together with "localhost". This is the list of domains for which this machine should consider itself the final destination. The local_domains list ends up in the macro MAIN_LOCAL_DOMAINS. 

我最终与MAIN_LOCAL_DOMAINSmacros,但我不知道如何改变它。

任何帮助表示赞赏

您可以编辑/etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs并删除MAIN_LOCAL_DOMAINS字,只在该行保留domainlist local_domains =

(如果您没有select拆分configuration,请编辑/etc/exim4/exim4.conf.template 。)

执行service exim4 reload生成并重新加载configuration。