2

提前感谢您在此问题上提供的任何帮助!

对于我的网站,用户应该在注册后收到一封激活电子邮件。有些电子邮件没有被接收,它们也不会进入垃圾邮件过滤器文件夹。

在查看了我的integral_mailer 日志后,我想我已经发现了问题所在。系统似乎拒绝了这些消息,因为没有反向 DNS 信息。

我对 RoR 有点陌生。您能指导我为我的邮件设置所需的反向 DNS 信息吗?

作为背景,这里是来自 user_mailer.rb 的详细信息:

class UserMailer < ActionMailer::Base
def signup_notification(user)
setup_email(user)
@subject    += 'Please activate your new account'
@body[:url]  = "http://website.com/activate/#{user.activation_code}"
end

来自integral_mailer.rb:

module IntegralMailer
def perform_delivery_integral_mailer(mail)
destinations = mail.destinations
mail.ready_to_send

helo = smtp_settings[:helo] || "localhost.localdomain"

ActionMailer::Base::INTEGRAL_MAILER_SERVER.send_mail(helo, mail.from, destinations, mail.encoded)
end
end
4

1 回答 1

0

该网站托管在 Joyent 上,但域名是通过 Go Daddy 获得的。Go Daddy 不做反向 DNS(即使网站是通过它托管的)。解决方案是联系 Joyent 并要求它设置反向 DNS。

http://wiki.joyent.com/wiki/display/gen/DNS+Guide解释了如何通过 Joyent 设置反向 DNS。

一两天后,AOL、康卡斯特和其他公司开始接受来自该网站的电子邮件。

于 2013-01-23T13:13:31.023 回答