【问题标题】:Heroku Intercepting Some Gmail Incoming MessagesHeroku 拦截一些 Gmail 传入邮件
【发布时间】:2013-07-26 05:11:51
【问题描述】:

我在 Heroku 上提供 Rails 3 应用程序,通过 Google 提供邮件,通过 Enom 提供域。这是为了 www.challengage.com

这在 95% 的情况下都有效,但是,有时,当有人试图回复我发送给他们的电子邮件时,它会失败并显示以下错误消息,因为我的电子邮件 josh@challengage.com 不知何故被替换了当他们收到它时与 josh@herokuapp.challengage.com 联系。我认为这与邮件传递子系统有关,但我不确定。它似乎也只在给大学专业人士发送电子邮件时才会发生。

错误信息:

    From: Mail Delivery Subsystem [mailto:MAILER-DAEMON@smtp2.syr.edu]
Sent: Monday, July 15, 2013 2:08 PM
To: David DiMaggio
Subject: Undeliverable: FW: Challengage - Work Team Simulation product for interviewing evaluations

Delivery has failed to these recipients or groups:

paul@challengage.herokuapp.com
The server has tried to deliver this message, without success, and has stopped trying. Please     try sending this message again. If the problem continues, contact your helpdesk.


The following organization rejected your message: challengage.herokuapp.com.

有什么想法吗?

谢谢大家。

【问题讨论】:

    标签: ruby-on-rails-3 email heroku


    【解决方案1】:

    这几乎可以肯定是因为您将 CNAME 用于您的电子邮件记录。

    虽然大多数电子邮件服务器在发送邮件时会反映原始域,但其他电子邮件服务器会将其替换为 CNAME 末尾的域。

    这意味着他们不会发送到someone@challengage.com,而是发送到someone@challengage.herokuapp.com

    邮件服务器看到发送到someone@challengage.herokuapp.com 的请求,并决定不处理challengage.herokuapp.com,因此从它的角度来看,邮件被拒绝了。

    我们曾经在 CloudMailin 客户中看到此问题,并开始建议他们不要在涉及电子邮件的情况下使用 CNAMES,而只是使用将 MX 记录直接添加到 Apex 域。

    虽然对于 Heroku,这会带来一个问题,因为您没有可用于访问其服务器的单个 IP。我们最终使用 Route 53 来托管我们的域,然后添加一个 SSL 端点(以获取负载均衡器详细信息),然后将该负载均衡器添加到 Route 53 的 Alias 命令中,以便它始终自动提供正确的结果。或者,您可以在您的顶级域上设置某种基于静态 IP 的系统来重定向。

    【讨论】:

      猜你喜欢
      • 2015-07-28
      • 1970-01-01
      • 2011-09-21
      • 2011-03-18
      • 2023-04-08
      • 1970-01-01
      • 2015-01-31
      • 1970-01-01
      相关资源
      最近更新 更多