我的一个朋友正在一个网站上运行一个联系人表格,它通过PHP ()函数发送电子邮件(CMS使用康陶尔)。电子邮件没有问题地发送给其他收件人,所以CMS本身或负责发送的服务器都不是问题所在。然而,这些消息实际上应该发送到的两封电子邮件是通过Exchange Online (Office 365)运行的。好像有某种保护措施阻止了这些电子邮件。来自实际邮件客户的所有其他电子邮件都要通过。我在Exchange中找不到与此有关的任何设置。
以下是来自联系人表单消息的电子邮件标题(将一条消息从联系人表单发送到另一封电子邮件,在该邮件中,该邮件同样接收得很好):
Return-Path:
Delivered-To: hello@max-krause.com
Received: from premium31.web-hosting.com
by premium31.web-hosting.com with LMTP id UBwiOpOw0VsKMAwAmYe65g
for ; Thu, 25 Oct 2018 08:01:23 -0400
Return-path:
Envelope-to: hello@max-krause.com
Delivery-date: Thu, 25 Oct 2018 08:01:23 -0400
Received: from u230.lrnc.net ([77.232.241.23]:47206)
by premium31.web-hosting.com with esmtp (Exim 4.91)
(envelope-from )
id 1gFeKJ-003PuQ-PW
for hello@max-krause.com; Thu, 25 Oct 2018 08:01:23 -0400
Received: by u230.lrnc.net (Postfix, from userid 10020)
id 15D73C46B8; Thu, 25 Oct 2018 14:01:03 +0200 (CEST)
To: nicole.darmstadt@gmail.com, info@rechtsanwaelte-brauer.de, nicole.brauer@rechtsanwaelte-brauer.de, webmaster@up-hill.de, cj@junglas.com, hello@max-krause.com
Subject: Nachricht =?utf-8?Q?=C3=BCber?= die Webseite
Message-ID:
Date: Thu, 25 Oct 2018 12:01:02 +0000
From: info@rechtsanwaelte-brauer.de
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Priority: 3 (Normal)
X-Mailer: Contao Open Source CMS有人能告诉我问题出在哪里吗?
发布于 2018-10-25 13:15:39
我核实了你的电子邮件是否会被SPF记录允许在域名。我使用Python模块来完成这个任务。结果如下:
>>> import spf
>>> spf.query('77.232.241.23', 'info@rechtsanwaelte-brauer.de', 'u230.lrnc.net').check()
('fail', 550, 'SPF fail - not authorized')
>>> 如您所见,使用来自您的电子邮件头的信息,电子邮件将被一个验证SPF的发件人拒绝。77.232.241.23不允许从rechtsanwaelte-brauer.de域发送电子邮件。
将SPF记录更改为
v=spf1 include:spf.protection.outlook.com -all至
v=spf1 ip4:77.232.241.23 include:spf.protection.outlook.com -all应该能帮上忙。记住要找出您的IPv6地址,并将其也包括在内。
https://serverfault.com/questions/937173
复制相似问题