Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


SPF record. Cisco Ironport. Office 365 Hybrid

Posted on 2016-08-23
Medium Priority
Last Modified: 2016-08-26
Hi All

Please can someone assist me in creating a SPF record for my domain,

I am running a hybrid environment. All email gets enters my org through my IronPort cluster however sending email is different.

On prem users route their email through my IronPorts. My O365 users send mail directly to the internet.

My MX records are and 79.

This is what i got so far using  IN TXT "v=spf1 mx a ip4: -all"

is that correct?
Question by:TTAF4
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
LVL 43

Accepted Solution

Vasil Michev (MVP) earned 2000 total points
ID: 41767595
No, something like this:  IN TXT "v=spf1 ip4: -all"

Open in new window

You dont need the MX and A clauses, the include clause needs to be for, and you dont need to list anythin else.

Author Comment

ID: 41767609
Why dont I need the MX and A clause? Sorry I'm new to this...
LVL 43

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 2000 total points
ID: 41767654
Because the MX points to the same IP range, and you're not going to be sending via any other on-prem servers/IPs. You can leave them if it makes you feel safer :)
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.


Author Comment

ID: 41768630
ok thanks man, After I add the SPF records what are the next steps?
LVL 43

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 2000 total points
ID: 41768673
Next steps for what?

Author Comment

ID: 41769305
Thanks for all your help thus far. Much appreciated. I have added the SPF entry to my DNS records. It appears to be working but i noticed some of the checks fail along the way. See attached.
LVL 43

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 2000 total points
ID: 41769335
Well your HELO string is referencing the .local domain, and your internal IP addresses. That shouldnt be a problem though, as it's generated at your local servers. The important check, performed by gmail servers, is OK.

Simply configure the IronPort to trust the local senders or disable the SPF check there.

Author Comment

ID: 41769376
How do I correct the HELO string?  Also how do I configure the IronPort to trust the local sender?

Sorry for so many questions. I really appreciate the help.

Author Comment

ID: 41769387
Now I am getting this:

From: Mail Delivery System []
Sent: Wed, August 24, 2016 10:05 PM
To: Agent Navz
Subject: Undeliverable: 2204

Delivery has failed to these recipients or groups:
A problem occurred during the delivery of this message to this e-mail address. Try sending this message again. If the problem continues, please contact your helpdesk.

Diagnostic information for administrators:
Generating server:
#< #5.0.0> #SMTP#
Original message headers:
Return-Path: <>
Received: from ([]:39014)   by with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)    (Exim
 4.87)  (envelope-from <>)       id 1bcePi-0007e9-Vn    for; Wed, 24 Aug 2016 22:04:42 +0200
Received: from ([]      by with esmtp (Exim 4.85)
        (envelope-from <>)       id 1bcePg-0006IG-44    for; Wed, 24 Aug 2016 22:04:44 +0200
Authentication-Results:; spf=Fail; spf=None smtp.helo=postmaster@ttafdatvxmr1.ttaf.local
Received-SPF: Fail ( domain of does not designate as
  permitted sender) identity=mailfrom; client-ip=;;
  x-sender=""; x-conformance=spf_only;
Received-SPF: None ( no sender
  authenticity information available from domain of
  postmaster@ttafdatvxmr1.ttaf.local) identity=helo;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BiBQAe/b1X/1QQCgpcgnYzAQEBAQFnD?=
X-IPAS-Result: =?us-ascii?q?A2BiBQAe/b1X/1QQCgpcgnYzAQEBAQFnDYEDhxiybYYdAiK?=
X-IronPort-AV: E=Sophos;i="5.28,572,1464645600";
Received: from unknown (HELO ttafdatvxmr1.ttaf.local) ([])  by with ESMTP; 24 Aug 2016 22:04:38 +0200
Received: from TTAFDBNVXMR1.ttaf.local ( by
 TTAFDATVXMR1.ttaf.local ( with Microsoft SMTP Server (TLS) id; Wed, 24 Aug 2016 22:04:38 +0200
Received: from TTAFDBNVXMR1.ttaf.local ([]) by
 TTAFDBNVXMR1.ttaf.local ([]) with mapi id 14.03.0266.001; Wed, 24
 Aug 2016 22:04:37 +0200
From: Agent Navz <>
To: "" <>
Subject: 2204
Thread-Topic: 2204
Thread-Index: AdH+QrwmoBzpFLKNTSqJfCMm4O8R2w==
Date: Wed, 24 Aug 2016 20:04:36 +0000
Message-ID: <D10A8E561117C84C8DA2FEEA1252147223ECAE3D@TTAFDBNVXMR1.ttaf.local>
Accept-Language: en-ZA, en-US
Content-Language: en-US
x-originating-ip: []
Content-Type: multipart/alternative;
MIME-Version: 1.0
Received-SPF: pass ( domain of designates as permitted sender) client-ip=;;;
X-SPF-Result: domain of designates as permitted sender
X-Filter-ID: s0sct1PQhAABKnZB5plbIfTMHwIoCPwkEUxWhAsHA3yXqSIHh/mdku6BgfhnCb1xWywi3RPeT3mN
Authentication-Results:; spf=pass
X-Afrihost-Class: ham
X-Afrihost-Evidence: Combined (0.15)
X-Recommended-Action: accept

Author Comment

ID: 41769397
Should perhaps add my internal domain name to SPF record??


Author Comment

ID: 41769408
this is weird. the email went through even thou i got a failure  message

LVL 43

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 2000 total points
ID: 41769749
No, you should not add your local address to the SPF, as ANYONE can use that value. It's exactly the opposite of what the SPF is intended for.

Author Closing Comment

ID: 41771733
Thank you so much for your help.

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New style of hardware planning for Microsoft Exchange server.
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: (…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question