I'm having an argument with MS support about their Exchange Online Protection (EOP) spam filter evaluating the SPF record for the wrong domain on an incoming email. My understanding is that a mail service performing an SPF check against an email should be checking the SPF DNS record for the domain of an email address as it appears in the Return-Path header. In the case I'm looking at, it looks like EOP performed an SPF check against the SPF DNS record matching the name of the origin mail server rather than the domain in the Return-Path attribute.
Here are the relevant headers. Please note that I have changed our domain name to redacted.com, changed the sender username to sender, and changed the recipient username to recipient.
Based on the Received-SPF record, I maintain that the EOP service checked the SPF record for early.dreamhost.com rather than redacted.com. Since the email claims to be from redacted.com, I maintain that EOP should have checked the SPF record for redacted.com. Otherwise, what's the point of SPF?
MS support concurs that EOP should have checked the SPF for redacted.com, but they maintain that the headers indicate that EOP did check the SPF record for redacted.com based on the fact that it appears several times in the Authentication-Results header, such as in the header.from attribute and that it did not check the record for early.dreamhost.com.
That doesn't make any sense, because I used Kitterman's tools to test this email against our SPF record (redacted.com) and the result is softfail, not none as both the Authentication-Results and Received-SPF headers indicate.
Any feedback would be welcome.
If it makes a difference, this particular email was sent via a contact form on an external website that one of our business units operates. The email was quarantined by EOP (SCL:5) and subsequently released from quarantine by the intended recipient. The headers above are what they look like after being released and delivered to the recipient.
Here are the relevant headers. Please note that I have changed our domain name to redacted.com, changed the sender username to sender, and changed the recipient username to recipient.
Code:
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (23.103.198.16)
by webmail.redacted.com (192.168.0.2) with Microsoft SMTP Server (TLS) id
14.3.351.0; Mon, 5 Jun 2017 08:55:03 -0400
Received: from BN6PR09CA0074.namprd09.prod.outlook.com (10.172.202.140) by
CY1PR09MB1082.namprd09.prod.outlook.com (10.166.196.10) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id
15.1.1143.10; Mon, 5 Jun 2017 12:55:02 +0000
Received: from CY1GCC01FT011.eop-gcc01.prod.protection.outlook.com
(2a01:111:f400:7d02::206) by BN6PR09CA0074.outlook.office365.com
(2603:10b6:404:dc::12) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via
Frontend Transport; Mon, 5 Jun 2017 12:55:02 +0000
Received: from CY1GCC01WS013 (23.103.200.53) by
CY1GCC01FT011.mail.protection.outlook.com (10.97.0.250) with Microsoft SMTP
Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id
15.1.1101.12 via Frontend Transport; Mon, 5 Jun 2017 12:55:01 +0000
Delivered-To: recipient@redacted.com
Received: from DM2GCC01FT001.eop-gcc01.prod.protection.outlook.com
(10.97.2.59) by DM2GCC01HT003.eop-gcc01.prod.protection.outlook.com
(10.97.3.160) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12; Fri, 2
Jun 2017 17:43:53 +0000
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (23.103.198.24)
by DM2GCC01FT001.mail.protection.outlook.com (10.97.3.168) with Microsoft
SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via
Frontend Transport; Fri, 2 Jun 2017 17:43:53 +0000
Received: from MWHPR09CA0016.namprd09.prod.outlook.com (10.173.97.26) by
SN1PR09MB0733.namprd09.prod.outlook.com (10.162.2.18) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id
15.1.1143.10; Fri, 2 Jun 2017 17:43:52 +0000
Received: from CY1GCC01FT005.eop-gcc01.prod.protection.outlook.com
(2a01:111:f400:7d02::201) by MWHPR09CA0016.outlook.office365.com
(2603:10b6:300:80::26) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via
Frontend Transport; Fri, 2 Jun 2017 17:43:51 +0000
Authentication-Results: spf=none (sender IP is 208.113.157.50)
smtp.mailfrom=early.dreamhost.com; redacted.com; dkim=none (message not
signed) header.d=none;redacted.com; dmarc=fail action=none
header.from=redacted.com;
Received-SPF: None (protection.outlook.com: early.dreamhost.com does not
designate permitted sender hosts)
Received: from iad1-shared-relay1.dreamhost.com (208.113.157.50) by
CY1GCC01FT005.mail.protection.outlook.com (10.97.1.1) with Microsoft SMTP
Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1101.12
via Frontend Transport; Fri, 2 Jun 2017 17:43:51 +0000
Received: from early.dreamhost.com (early.dreamhost.com [208.113.185.99]) by
iad1-shared-relay1.dreamhost.com (Postfix) with ESMTP id EDEF3B40069 for
<recipient@redacted.com>; Fri, 2 Jun 2017 10:43:49 -0700 (PDT)
Received: by early.dreamhost.com (Postfix, from userid 15233216) id
CF4C9280736; Fri, 2 Jun 2017 10:43:49 -0700 (PDT)
To: <recipient@redacted.com>
Subject: Contact Form
X-PHP-Originating-Script: 15233216:class-phpmailer.php
Date: Fri, 2 Jun 2017 17:43:49 +0000
From: WordPress <sender@redacted.com>
Reply-To: <sender@redacted.com>
Message-ID: <a77eef5ae5923582e70f533f92984e41@www.redacted.com>
X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/html; charset="ISO-8859-1"
Return-Path: sender@redacted.com
Based on the Received-SPF record, I maintain that the EOP service checked the SPF record for early.dreamhost.com rather than redacted.com. Since the email claims to be from redacted.com, I maintain that EOP should have checked the SPF record for redacted.com. Otherwise, what's the point of SPF?
MS support concurs that EOP should have checked the SPF for redacted.com, but they maintain that the headers indicate that EOP did check the SPF record for redacted.com based on the fact that it appears several times in the Authentication-Results header, such as in the header.from attribute and that it did not check the record for early.dreamhost.com.
That doesn't make any sense, because I used Kitterman's tools to test this email against our SPF record (redacted.com) and the result is softfail, not none as both the Authentication-Results and Received-SPF headers indicate.
Any feedback would be welcome.
If it makes a difference, this particular email was sent via a contact form on an external website that one of our business units operates. The email was quarantined by EOP (SCL:5) and subsequently released from quarantine by the intended recipient. The headers above are what they look like after being released and delivered to the recipient.