2

我有一个域,称为 mydom.com。不久前,我开始使用 Google App 的电子邮件服务器。我按照 Google 的要求设置了 MX 和其他内容记录,此后一切运行良好。

在 www.mydom.com 上,我有一个网站、DNS 和仍在运行的邮件服务器(基本上没有多大作用)。除其他外,在 www.mydom.com 上,我有一些联系表格 - 基本的 php 页面,它接受用户的输入并将其发送到 mydom.com 上的预定义电子邮件地址。它使用 php 的 sendmail 函数发送它。

我的问题是 - 所有从 localhost 发送到 *@mydom.com 的电子邮件(通过 php 的函数,或者可能通过报告某些问题的某些 cron 作业)不要转到 Google 的电子邮件服务器,而是由 localhost 接收,它是邮件服务器。

到目前为止,我正在通过在 Google 帐户中设置一个新邮件帐户来解决这个问题,该帐户基本上是通过其 IP 地址调用我的本地邮件服务器,登录到旧的、废弃的电子邮件帐户并将那些放错位置的电子邮件拉到新的 @mydom Google App 中的 .com 帐户。

显然,我在本地 DNS、主机文件或其他内容中丢失了一些条目。有谁知道我该如何修复它?

4

1 回答 1

0

Hey, the same question was asked here: https://serverfault.com/questions/102647/sendmail-to-local-domain-ignoring-mx-records-part-2

and the answer to it works for me, don't forget to include the dot after the domain!

If it doesn't work to the test call and see how the mail traces.

best of luck, svullo

于 2010-06-21T21:04:25.247 回答