所有邮件都发送到 gmail 垃圾邮件(在 centos 上发送邮件)127.0.0.1 问题?

sol*_*sol 4 spam sendmail gmail spf

SPF 检查更新http://www.openspf.org/Why

SPF 检查结果如下:启用 SPF 的邮件服务器拒绝了声称信封发件人地址为 support@ourdomain.com 的邮件。启用 SPF 的邮件服务器收到来自 ourdomain.com (xxxX) 的邮件,该邮件声称信封发件人地址为 support@ourdomain.com。域ourdomain.com 已授权ourdomain.com (xxxx) 代表其发送邮件,因此该邮件应该已被接受。我们无法说明为什么被拒绝

更新:我正在使用 Google Apps 发送电子邮件和接收电子邮件。也许这有助于研究我们的问题。我们只设置了 gmail 的 MX 记录,现在认为这可能是一个问题?如果邮件服务器从 www.ourdomain.com 收到一封电子邮件,但找不到该 IP 的 MX 记录,这可能是坏的还是坏的?

我们所有的邮件都将发送到 gmail 垃圾邮件文件夹。邮件不是垃圾邮件或大件,只是来自我们网络应用程序的注册确认电子邮件。

SPF 标头给了我以下内容

Received-SPF: pass (google.com: best guess record for domain of apache@www.ourdomain.com designates x.x.x.x as permitted sender) client-ip=x.x.x.x;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of apache@www.ourdomain.com designates x.x.x.x as permitted sender) smtp.mail=apache@www.ourdomain.com
Received: from www.ourdomain.com (localhost [127.0.0.1])
Run Code Online (Sandbox Code Playgroud)

其中 xxxx 是我们的完整 IP 地址

更新我的完整邮件和标题现在是:

Delivered-To: solsol@gmail.com
Received: by 10.216.183.13 with SMTP id p13cs84787wem;
        Sat, 13 Nov 2010 09:00:00 -0800 (PST)
Received: by 10.229.214.139 with SMTP id ha11mr3256460qcb.235.1289667599435;
        Sat, 13 Nov 2010 08:59:59 -0800 (PST)
Return-Path: <support@ourdomain.com>
Received: from www.ourdomain.com (www.ourdomain.com [x.x.x.x])
        by mx.google.com with ESMTP id u7si11134289qco.191.2010.11.13.08.59.58;
        Sat, 13 Nov 2010 08:59:59 -0800 (PST)
Received-SPF: pass (google.com: domain of support@ourdomain.com designates x.x.x.x as permitted sender) client-ip=x.x.x.x;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of support@ourdomain.com designates x.x.x.x as permitted sender) smtp.mail=support@ourdomain.com
Received: by www.ourdomain.com (Postfix, from userid 48)
    id 5AB8F1C881; Sat, 13 Nov 2010 11:59:58 -0500 (EST)
To: solsol@gmail.com
Subject: Signup confirmation needed
From: Ourdomain.com <support@ourdomain.com>
Reply-To: Ourdomain.com <support@ourdomain.com>
MIME-Version: 1.0
Content-type: text/html;charset=UTF-8
Date: Sat, 13 Nov 2010 16:59:58 +0000
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <20101113165958.5AB8F1C881@www.ourdomain.com>

Hi! We're thrilled to have you on board!<br /><br />You are now just 1 t=
iny step away from securing your shiny new beta-account.<br /=
>Please click the following link to confirm.<br /><br /><br /><br /><a h=
ref=3D"http://www.ourdomain.com/default/beta/regconfirm/guid/7a8344e1ae=
04062c9c2495429255b5a0/id/76">Confirm your beta subscription</a><br /><b=
r /><br /><br />Have a good day!<br /><a href=3D'http://www.ourdomain.com.com'>ourdomain.com.com</a>
Run Code Online (Sandbox Code Playgroud)

ps:我设置了正确的SPF记录,允许我们的xxxx ip发送电子邮件

更新:

我们如何确保谷歌不会将我们视为垃圾邮件。我读过 gmail 会从@ourdomain.com 收到一封电子邮件,它会运行 nslookup 或其他东西来查看我们是否真的设置了接收 MX 服务器?

有人可以确认这一点并给我可以测试的 nslookup 命令。我很困惑,因为 ourdomain.com 上的 nslookup 提供了正确的 MX 记录,但 WWW.ourdomain.com 上的 mxrecord 没有。

我们发送的机器的主机名是 www.ourdomain.com。这可能是个问题吗?

Jam*_*s L 6

您是否更改了主机名?如果服务器的主机名是 localhost、localhost.localdomain、包含 IP 地址或无法解析到您的服务器,则会出现此问题。更改它:
hostname yourdomain.com以及 /etc/sysconfig/network。

重新启动 sendmail,然后在端口 25 上 telnet 到您的服务器,它应该说: 220 yourdomain.com ESMTP Sendmail,如果不是,您可能还需要编辑 sendmail 配置文件。

一般来说,我发现您会因为以下原因之一收到垃圾邮件:

  • 错误的主机名(如上)
  • 没有反向 DNS
  • 没有SPF记录
  • 你被列入黑名单(谷歌黑名单检查器)
  • 您正在发送垃圾邮件。

祝你好运。