我有 SPF 记录:
v=spf1 include:_spf.google.com ip4:70.xx.xx.xx -all
我使用了 Google 的默认设置
v=spf1 include:_spf.google.com ~all
我已经不再使用这个默认设置,以便使用 SPF 来阻止伊朗的一些垃圾邮件发送者继续发送邮件,当他们到达虚假地址时,这些邮件会反弹给我,例如:
已接收-SPF:中性(google.com:2.191.xx.xx既不被允许也不被最佳猜测记录拒绝[[电子邮件保护]])客户端IP=2.191.xx.xx;
该消息暗示有一种方法可以拒绝垃圾邮件发送者的 IP,但我未能找到它,所以我最终不确定。
有什么建议吗?我希望我的 SPF 直接或间接地拒绝这个垃圾邮件发送者。
更新:添加了完整、未更改的消息,我正在尝试回应(如下)
Delivered-To: [email protected]
Received: by 10.28.62.13 with SMTP id l13csp432424wma;
Sat, 22 Oct 2016 05:10:20 -0700 (PDT)
X-Received: by 10.99.104.196 with SMTP id d187mr9004304pgc.26.1477158220522;
Sat, 22 Oct 2016 05:10:20 -0700 (PDT)
Return-Path: <>
Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com. [2607:f8b0:400e:c00::241])
by mx.google.com with ESMTPS id hf1si1759156pac.263.2016.10.22.05.10.20
for <[email protected]>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sat, 22 Oct 2016 05:10:20 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of [email protected] designates 2607:f8b0:400e:c00::241 as permitted sender) client-ip=2607:f8b0:400e:c00::241;
Authentication-Results: mx.google.com;
dkim=pass [email protected];
spf=pass (google.com: best guess record for domain of [email protected] designates 2607:f8b0:400e:c00::241 as permitted sender) smtp.helo=mail-pf0-x241.google.com;
dmarc=pass (p=QUARANTINE dis=NONE) header.from=googlemail.com
Received: by mail-pf0-x241.google.com with SMTP id r16so11229439pfg.3
for <[email protected]>; Sat, 22 Oct 2016 05:10:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlemail.com; s=20120113;
h=mime-version:from:to:subject:message-id:date;
bh=hC195D3nA0Uzbsy/ut7vMIZ53a6ExjkByblQBH/81WQ=;
b=AJOIjSrQPo4+I5fbjmy+4QU7BBVFtRorLh4NYVEZv0zMY5dYn9OMh4pVRRiQoSN4JE
k0JZJbBzkvPNGXD0ImqQ+cRPD6/Q9yN+QjbRJksR91dJvO2ZeM36OLsY7erIbOYgq1rz
H80waLIVDDJSRZv2r4zvFnX9K6hE6fZDbDG7x3jKRkGnIzQk2Z1aQ/TGPTz8parrQJrT
hryzTMSw7T5DKioVYElBpH/wlS8HMaoL2g023KzBtpwLrfkbFE3zeTv0GTryhEeunONH
+UPEvLr+th5IKpG4VZlrGu17Vz4MKgJgB30g+KGu/Ljbzi/ffLSpSFkN7hZvs2mmBpY+
PoRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:from:to:subject:message-id:date;
bh=hC195C3nA0Uzbsy/ut7vMKZ43a6ExjjByblQBH/81WQ=;
b=HTTQdb/I0eBlF6Q3o0z/wf24aSyu2lvlvIkpoC4Ov+l7c+ruXRnzT5mkUMWiDFCr/w
LuDQcy7SluQrrnWsCm1k87F4gsUz320Zvb9lCEBqB4FnN37e521tP/C++4tzv6tA09Sd
W5Wpsk38bHYj5jesKABb0k0Nj4tmS39j7h18BqTY0fnCHjb03pLJNGA1hmACX84Clf27
bhsCyMhb5z6L7t5UOYTwQ95e2Vlx6jQH2P/h9iKyI+UnpoMOCe9grbvblSkdDiWTTMXR
5G9KhdrTUmIBfrj+VlhZQoPRXjEjENeD4XEAZ1E4e3lBJfgGbg9Jg6N6PwpxFbnlGReW
gwHA==
X-Gm-Message-State: ABUngvdfy0M/HHPXzmBpM3vEavjKEG5m35WPLvqH5SEh5U6PEOqEaJ7yK/eqjzO7jzkY1v9GbShSkKocgRqx1k3N1bmPLGh0
X-Received: by 10.99.110.142 with SMTP id j136mr8866332pgc.132.1477138220162;
Sat, 22 Oct 2016 05:10:20 -0700 (PDT)
MIME-Version: 1.0
Return-Path: <>
Received: by 10.99.110.142 with SMTP id j136mr8914431pgc.132; Sat, 22 Oct 2016 05:10:20 -0700 (PDT)
From: Mail Delivery Subsystem <[email protected]>
To: [email protected]
Subject: Delivery Status Notification (Delay)
Message-ID: <[email protected]>
Date: Sat, 22 Oct 2016 12:10:20 +0000
Content-Type: text/plain; charset=UTF-8
This is an automatically generated Delivery Status Notification
THIS IS A WARNING MESSAGE ONLY.
YOU DO NOT NEED TO RESEND YOUR MESSAGE.
Delivery to the following recipient has been delayed:
[email protected]
Message will be retried for 4 more day(s)
Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720
[210.5.32.9 210.5.32.9: generic::failed_precondition: connect error (0): error]
----- Original message -----
X-Gm-Message-State: ABUngvdKe24Xp8DT1rP2gApcFad5/HjrNajRrB9UWHnLxPY9Cmcnd7WyG1oLjYpJrvk4WmDa+0noZVd+uXaMy0PzgG1WVtzkSWXlgEFBYAOKWZTeGeIEOnQJPFBFZJuzwxnkd+KVKcW5
X-Received: by 10.99.110.142 with SMTP id j136mr16455830pgc.132.1476957867242;
Thu, 20 Oct 2016 03:04:27 -0700 (PDT)
X-Received: by 10.99.110.142 with SMTP id j136mr16455815pgc.132.1476957867120;
Thu, 20 Oct 2016 03:04:27 -0700 (PDT)
Return-Path: <[email protected]>
Received: from [2.191.29.134] ([2.191.29.134])
by mx.google.com with ESMTP id z80si44284204pfj.251.2016.10.20.03.04.25
for <[email protected]>;
Thu, 20 Oct 2016 03:04:26 -0700 (PDT)
Received-SPF: neutral (google.com: 2.191.29.134 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=2.191.29.134;
Authentication-Results: mx.google.com;
spf=neutral (google.com: 2.191.29.134 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected]
Message-ID: <233E36AEEE2BA6766B63FBEB0EF3233E@6C2L74D>
From: <[email protected]>
To: <[email protected]>
Subject: Re: Salary [$1500 /week]
Date: 20 Oct 2016 15:04:13 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0027_01D22AD6.01109020"
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 16.4.3505.912
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912
Dear samantha.bowmer,
We are looking for employees working remotely.
My name is Thanh, I am the personnel manager of a large International company.
Most of the work you can do from home, that is, at a distance.
Salary is $2900-$5100.
If you are interested in this offer, please visit
Our Site
Have a nice day!
答案1
SPF 并不意味着不发送电子邮件,它只是一个标志,表示“硬失败”(-all)该消息,这会使其落入基于 ESP 的垃圾邮件文件夹中。
如果您启用DMARC使用拒绝策略,则您将 100% 导致邮件被拒绝,并且不会传递给遵守 DMARC 策略的 ESP。GMAIL 就是其中之一。
启用 DMARC 记录就像添加 SPF 记录一样简单,它完全基于 DNS 条目,就像 SPF 一样。
就您而言,您的 DMARC 记录将相当简单。
_dmarc.somedomain.ca. IN TXT "v=DMARC1; p=reject; sp=none; rf=afrf; pct=100; ri=86400"
如果您想要报告,只需将 RUA 和 RUF 信息添加到上面的记录中。您可以DMARC 生成器为您生成记录。