r/sysadmin•
sscx

Outlook/Ironport munging email headers which damages SPF

We're trying to send email to a client who apparently uses O365, but the emails are delayed as their system is damaging the incoming headers so the SPF record check fails. I know the SPF/DKIM/DMARC is all good; those records are setup according to standards, and pass checks on sites like dmarcian.com. Also, the DMARC reports that come in show that our legitimate mail passes into Google, Yahoo, Rackspace, etc with 100% success.

I'm wondering if there's anything I can do on my end to fix the issue, or does the client have to setup our domain in their email "safelist"; the only thing I can see to do would be to put outlook.com in our SPF record, but I really don't want to do that, as we use a different provider.

Some headers here, the important ones are bolded-

Received: from MADPMAILCH04.durabatt.com (10.128.128.117) by

MSPPMAILCH01.ad.prismhhi.com (10.71.12.7) with Microsoft SMTP Server (TLS)

id 14.3.352.0; Thu, 14 Dec 2017 15:21:42 -0600

Received: from NAM03-BY2-obe.outbound.protection.outlook.com (216.32.180.51)

by mail.prismbrands.com (10.128.128.117) with Microsoft SMTP Server (TLS)

id 14.3.352.0; Thu, 14 Dec 2017 15:21:41 -0600

Received: from DM3PR19CA0033.namprd19.prod.outlook.com (10.164.243.171) by

CY1PR19MB0362.namprd19.prod.outlook.com (10.163.255.24) with Microsoft SMTP

Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id

15.20.302.9; Thu, 14 Dec 2017 21:21:37 +0000

Received: from BL2NAM02FT033.eop-nam02.prod.protection.outlook.com

(2a01:111:f400:7e46::205) by DM3PR19CA0033.outlook.office365.com

(2a01:111:e400:5b5c::43) with Microsoft SMTP Server (version=TLS1_2,

cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend

Transport; Thu, 14 Dec 2017 21:21:37 +0000

Authentication-Results: spf=fail (sender IP is 216.71.154.216)

smtp.mailfrom=goldmeyer.com; prismbrands.com; dkim=pass (signature was

verified) header.d=goldmeyer.com;prismbrands.com; dmarc=pass action=none

header.from=goldmeyer.com;compauth=pass reason=100

Received-SPF: Fail (protection.outlook.com: domain of goldmeyer.com does not

designate 216.71.154.216 as permitted sender)

receiver=protection.outlook.com; client-ip=216.71.154.216;

helo=esa3.hc1504-52.iphmx.com;

Received: from esa3.hc1504-52.iphmx.com (216.71.154.216) by

BL2NAM02FT033.mail.protection.outlook.com (10.152.77.163) with Microsoft SMTP

Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id

15.20.302.6 via Frontend Transport; Thu, 14 Dec 2017 21:21:36 +0000

Posted Dec 14, 2017, 11:30 PM UTC

12
ALL_FRONT_RANDOM•

Something is definitely off (unless you changed the domains above).

Can you tell me what the sending domain is? You can PM me if you don't want to post it publicly.

A lot of providers don't reject/mark as spam from an spf-fail. Also DMARC will pass if either spf or DKIM passes, so that's probably why you're not getting failures there (this may also be why it's not being rejected elsewhere).

1
sscxOPI'm tryin' real hard to be the shepherd.•

The domains were changed to protect the innocent.

The mail is apparently delayed, not sent to Spam. I'm surprised that no one else has run into this.

1
hollowpt•

Could they be using Microsoft's Advanced Threat Protection? If so, there will be a slight delay as it does it's scan.

If you're not using an O365 server to send messages from your domain, then you would never add include:spf.protection.outlook.com in your SPF record.

It may not pertain to this case, but a sub-domain could be used and have it's own SPF/DKIM/DMARC. That way your domain's reputation doesn't get hurt and doesn't exceed 10 DNS lookups for SPF.

1