从我的服务器发送的电子邮件显示为垃圾邮件

我知道这个问题已经被问及几次回答,但我找不到任何提及我的特殊问题。 我已经在我的Debian 7 VPS上设置了Postfix和Dovecot,并且可以发送邮件,但是它显示在我的Gmail收件箱中作为垃圾邮件。 我发送的域名运行一个使用input“网站联系人”电子邮件地址的networking应用程序,并且我已经将我的一个gmail电子邮件地址放在那里。 现在,当我发送到我的另一个Gmail帐户,它显示在垃圾邮件,谷歌给出的推理是因为虽然从字段显示“始发”的电子邮件地址是我的,它知道它实际上并不是来自Gmail和认为有欺骗正在进行。

从我读到的,我需要在我的DNS中设置一个特定的SPFlogging来validation我的服务器不显示为垃圾邮件发件人。 我已经为@v=spf1 a:fluidvector.com include:_spf.google.com ~all添加了TXTlogging,但是我的邮件仍然直接进入垃圾邮件文件夹。 另外,我读过Return-Path可能是个问题。 在我的情况下,返回path显示为Apache2运行的用户帐户。 我需要改变这个来反映我的gmail发件人帐户吗?

我已经运行了一些SPFtesting,输出声称SPF是好的:

 SPF record lookup and validation for: fluidvector.com SPF records are published in DNS as TXT records. The TXT records found for your domain are: v=spf1 a:fluidvector.com ~all Checking to see if there is a valid SPF record. Found v=spf1 record for fluidvector.com: v=spf1 a:fluidvector.com include:_spf.google.com ~all evaluating... SPF record passed validation test with pySPF (Python SPF library)! 

(以上结果是在我将SPFlogging添加了include:_spf.google.com部分之后立即给出的)

如何使用Gmail帐户从我的服务器发送的邮件在另一个Gmail帐户中显示为垃圾邮件? 我的Postfixconfiguration可能有问题吗?

这是放入垃圾邮件文件夹的原始电子邮件:

 Delivered-To: [email protected] Received: by 10.70.48.208 with SMTP id o16csp66094pdn; Thu, 10 Jul 2014 13:25:21 -0700 (PDT) X-Received: by 10.224.135.2 with SMTP id l2mr86728784qat.37.1405023921164; Thu, 10 Jul 2014 13:25:21 -0700 (PDT) Return-Path: <[email protected]> Received: from fluidvector.com ([23.88.121.82]) by mx.google.com with ESMTPS id h39si273921qgd.93.2014.07.10.13.25.20 for <[email protected]> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jul 2014 13:25:21 -0700 (PDT) Received-SPF: pass (google.com: domain of [email protected] designates 23.88.121.82 as permitted sender) client-ip=23.88.121.82; Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 23.88.121.82 as permitted sender) [email protected]; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from localhost (localhost.localdomain [127.0.0.1]) by fluidvector.com (Postfix) with ESMTP id F0AF8914009F for <[email protected]>; Thu, 10 Jul 2014 20:25:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at Received: from fluidvector.com ([127.0.0.1]) by localhost (fluidvector.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VUT1YtvYAYKz for <[email protected]>; Thu, 10 Jul 2014 20:25:14 +0000 (UTC) Received: by fluidvector.com (Postfix, from userid 33) id EA69B91400A2; Thu, 10 Jul 2014 20:25:13 +0000 (UTC) To: =?UTF-8?B?dGVzdA==?= <[email protected]> Subject: =?UTF-8?B?V2VsY29tZSB0byAiQmVhbnNXb3J0aHki?= X-PHP-Originating-Script: 1000:messenger.php From: <[email protected]> Reply-To: <[email protected]> Sender: <[email protected]> MIME-Version: 1.0 Message-ID: <[email protected]> Date: Thu, 10 Jul 2014 16:25:13 -0400 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: phPULP X-MimeOLE: phPULP X-phPULP-Origin: phpulp://beansworthy.fluidvector.com X-AntiAbuse: Site servername - =?UTF-8?B?YmVhbnN3b3J0aHkuZmx1aWR2ZWN0b3IuY29t?= X-AntiAbuse: User_id - 1 X-AntiAbuse: Username - =?UTF-8?B?QW5vbnltb3Vz?= X-AntiAbuse: User IP - 97.82.234.169 

我还应该补充一点,最后我会尝试设置Postfix来使用我托pipe的所有5个域来发送邮件。 这是否意味着我需要为每个域设置单独的“发件人”地址,以避免被标记为垃圾邮件发送者?

任何人都可以摆脱这个任何光将不胜感激。

-EDIT-:我也注意到邮件在交付之前似乎在我的服务器上被反弹了好几次。 这是正常的吗?

我看到几个问题:

  • PTRlogging返回不查find23.88.121.82 。 它应该可能会返回mail.fluidvector.com 。 这是一个垃圾邮件的强烈迹象。
  • 信封地址和From:地址不匹配。 如果你不重新发送电子邮件,他们应该匹配。 如果你不想自动回复(如我所期望的网站)考虑使用像“[email protected]”的地址。 如果您希望人们能够回复,您可以使用Reply-To:标题。
  • 从收到的标题看起来,你是病毒过滤传出的电子邮件。 虽然这是一个好主意,但是您要重新注入已过滤的邮件,而不是在接受邮件之前将其popup。 这可能导致反向散布垃圾邮件。
  • Reply-To:Sender:标题都与From:地址具有相同的数据。 虽然我还没有validation这些指示垃圾邮件,但是当From:地址没有指定发件人地址或回复地址时,这些垃圾邮件地址会被使用。 我希望你用来指示垃圾邮件。

您的SPF政策是非常开放的,所以任何人都可以发送您的域名。 (无论如何,这将会发生,因为您包含Google政策。)

除上述问题外,我不希望您使用From:标题中的Gmail地址将您的电子邮件归类为垃圾邮件。 已发布的Gmail SPF策略将允许使用此function。

您可能需要让您的IP地址提供商更新您的PTRlogging。

编辑: Sender:字段用于某人(助理)代表其他人( From:地址)发送电子邮件的情况。 在这种情况下Sender:和信封地址应该是相同的, From:地址不同。

如果Reply-To:地址不是From:发送电子邮件地址的地址,则回复Reply-To:字段缩进。 可能有less数情况下适用于每个不同值的所有三个字段。

Sender:Reply-To:语义适用于许多Web站点,但在大多数情况下,代码是消息作者,所以它应该是From:地址。

允许用户发送其他链接或其他信息的网站会将原始用户的地址放入Reply-To:地址。 对此类电子邮件的回应可能对网站不感兴趣,因此请使用发送到位桶的noreply地址。 你可能想跟踪noreply数量和原因。 您应该有积极的abusepostmaster地址,以便您可以通知滥用和configuration问题。

您无法授权某个域名从Gmail地址发送邮件,只有Google可以这样做。 如果每个人都可以授权他们自己的服务器发送一些其他域的电子邮件,那么SPF就没有任何用处。 垃圾邮件发送者只会授权自己。 您需要使用您所控制凭据的源电子邮件地址。