【问题标题】:Why are my automated confirmation / subscription emails getting flagged as spam in gmail?为什么我的自动确认/订阅电子邮件在 gmail 中被标记为垃圾邮件?
【发布时间】:2013-06-16 20:45:15
【问题描述】:

所以我有一个 Rails 应用程序设置了发送帐户确认和密码重置电子邮件的设计。使用 smtp 的 postfix 使用 sendmail 命令发送电子邮件。我设置了 DKIM,gmail 接受签名为有效。我也正确设置了 SPF。

Gmail 向我发送此消息是为了“解释”我的电子邮件为何会收到垃圾邮件:

为什么此邮件会出现在垃圾邮件中?它包含通常使用的内容 在垃圾邮件中。

尽管是描述性的,但我不知道垃圾邮件中通常使用哪些内容。我尝试调整文本,更改为 html,然后更改为 text+html,更改发件人地址,将用户的全名添加到收件人地址以及电子邮件。我难住了。也许另一双眼球可以指出我忽略的一些愚蠢的事情。

邮件全文如下,个人身份信息已被编辑。

Delivered-To: myaddress@gmail.com
Received: by 10.216.199.130 with SMTP id x2csp42610wen;
        Sun, 16 Jun 2013 13:16:13 -0700 (PDT)
X-Received: by 10.224.174.6 with SMTP id r6mr13525400qaz.87.1371413772413;
        Sun, 16 Jun 2013 13:16:12 -0700 (PDT)
Return-Path: <account-services@booyango.com>
Received: from booyango.com (node1.booyango.com. [97.107.138.232])
        by mx.google.com with ESMTP id k6si3223197qcj.4.2013.06.16.13.16.11
        for <myaddress@gmail.com>;
        Sun, 16 Jun 2013 13:16:12 -0700 (PDT)
Received-SPF: pass (google.com: domain of account-services@booyango.com designates 97.107.138.232 as permitted sender) client-ip=97.107.138.232;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of account-services@booyango.com designates 97.107.138.232 as permitted sender) smtp.mail=account-services@booyango.com;
       dkim=pass header.i=@booyango.com
Received: by booyango.com (Postfix, from userid 33)
    id 7CEC133DF5; Sun, 16 Jun 2013 20:16:11 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=booyango.com;
    s=default; t=1371413771;
    bh=iXfBZB6q0fPI+Yms0E8FC1P/T9J+3enBFtTrsjcTADY=;
    h=Date:From:Reply-To:To:Subject;
    b=AGw4SXj6UN0lpEo0FSO91s3aAYDsmAHZVqBvvYGQPW6Jp1UhfAQFlIE1AYY0CcoUq
     Xb3Mn4vul1WXpdWIZMPEgHXJ3SwvEvSxDfDEeYTNiGRoI+DW7vFopTo+1rQeLLdS/B
     j6iIKFsJUAOz0n1yh9/gasXJeOv4fmK6+ZoMhLfQ=
Date: Sun, 16 Jun 2013 20:16:11 +0000
From: Booyango Account Services <account-services@booyango.com>
Reply-To: Booyango Account Services <account-services@booyango.com>
To: me <myaddress@gmail.com>
Message-ID: <51be1d0b55c16_44f38e887057054@node1.booyango.com.mail>
Subject: [Booyango] Reset password instructions
Mime-Version: 1.0
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

Oops, it looks like you lost your Booyango password.

You can use the following link within the next 24 hours to reset your password:

http://booyango.com/users/password/edit?reset_password_token=<reset_token>

Thanks,
The Booyango Team

【问题讨论】:

    标签: ruby-on-rails email web-applications devise


    【解决方案1】:

    我过去曾遇到过这方面的问题,并且发现解决方案在很大程度上受到了打击。如果由于以前的垃圾邮件发送者链接到您的服务器/IP 地址,发送邮件的服务器恰好在黑名单上,那么您可能不走运。否则,我通过使用不同的标头变量获得的成功有限;同样,纯文本电子邮件的传递成功率往往高于 HTML - 根据我的经验(尽管我意识到您已经这样做了)。

    还可以尝试改写您的主题行或正文,您可能只是被垃圾邮件规则抓住,寻找您不小心偶然发现的模式。

    【讨论】:

    • 啊!!!!我在 cbl 上,因为它一直在使用 localhost.localdomain 作为 HELO - 我在几个小时前修复了它。谢谢!
    【解决方案2】:

    如果

    ,我发现我的 devise 或 rails 电子邮件已发送到 gmail span

    1) 他们包含一个链接(例如确认令牌)

    2) 主题为空白

    【讨论】:

      猜你喜欢
      • 2016-04-22
      • 2010-11-19
      • 2012-03-11
      • 2017-05-17
      • 1970-01-01
      • 2014-06-27
      • 1970-01-01
      • 1970-01-01
      • 2022-01-09
      相关资源
      最近更新 更多