SPF 记录有效吗?

SPF 记录有效吗?

我收到当前 spf 记录的“软失败错误”,我该怎么办?

这是我从我的域名收到的原始邮件。

我在我的 DNS 中添加了 spf 记录。

v=spf1 mx mx:smtp.secureserver.net include:smtp.secureserver.net ~all

不幸的是,我在 spf 记录中输入了 smtp 服务器名称。

这里我仅将我的域名用于发送目的。因此,我没有添加任何 MX 记录。在 SPF 记录中,我的域名必须通过跨度检查。我需要关注哪些方面?

你能解释一下吗?我应该如何写 SPF 记录

Delivered-To: [email protected]
Received: by 10.229.150.13 with SMTP id w13csp108400qcv;
    Fri, 18 May 2012 06:05:02 -0700 (PDT)
Received: by 10.224.34.4 with SMTP id j4mr22611239qad.61.1337346302689;
    Fri, 18 May 2012 06:05:02 -0700 (PDT)
Return-Path: <[email protected]>
Received: from ip-10-111-7-139.ec2.internal (ec2-50-16-79-25.compute-1.amazonaws.com.  [50.16.79.25])
    by mx.google.com with ESMTPS id a9si3748068qcu.106.2012.05.18.06.05.02
    (version=TLSv1/SSLv3 cipher=OTHER);
    Fri, 18 May 2012 06:05:02 -0700 (PDT)
    Received-SPF: softfail (google.com: domain of transitioning [email protected] does not designate 50.16.79.25 as permitted sender) client-ip=50.16.79.25;
   Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning [email protected] does not designate 50.16.79.25 as permitted sender) [email protected]
   Received: from ip-10-111-7-139.ec2.internal (localhost [127.0.0.1])
by ip-10-111-7-139.ec2.internal (8.14.4/8.14.4/Debian-2ubuntu1) with ESMTP id q4ID4YvM004650
for <[email protected]>; Fri, 18 May 2012 13:04:34 GMT
   Content-Type: text/plain; charset="utf-8"
   MIME-Version: 1.0
   Content-Transfer-Encoding: quoted-printable
   Subject: Hi Nava
   From: [email protected]
   To: [email protected]
   Date: Fri, 18 May 2012 13:04:34 -0000
   Message-ID: <[email protected]>

   Sample Ignore

这能行吗?

  v=spf1 ?include:pharma.com -all      

答案1

include:pharma.com - 意味着接收服务器应该首先检查 pharma.com 的 SPF 记录,然后返回检查.. 无需检查。

我建议您添加正确的 MX 记录并使用默认 SPF: v=spf1 +a +mx ~all

或者如果你确实不需要 mx,可以使用你的服务器的 ip: v=spf1 +a +ip4:IP.AD.DR.ES ~all或者v=spf1 +a +a:smtp.yourservername.tld ~all

如果您不需要从其他服务器发送电子邮件 - 请替换~all-all

一篇好文章关于 SPF 记录格式。

相关内容