0

所以我有一个 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
4

2 回答 2

1

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

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

于 2013-06-16T20:52:42.967 回答
0

我发现我的设计或 Rails 电子邮件已发送到 gmail span,如果

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

2)主题是空白的

于 2015-04-23T13:47:24.473 回答