Go Premium for a chance to win a PS4. Enter to Win


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, ttaf.co.za.

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 http://www.spfwizard.net/

ttaf.co.za.  IN TXT "v=spf1 mx a ip4: a:spf.protection.outlook.com include:ttafcoza.onmicrosoft.com -all"

is that correct?
Question by:TTAF4
  • 8
  • 5
LVL 44

Accepted Solution

Vasil Michev (MVP) earned 2000 total points
ID: 41767595
No, something like this:

ttaf.co.za.  IN TXT "v=spf1 ip4: include:spf.protection.outlook.com -all"

Open in new window

You dont need the MX and A clauses, the include clause needs to be for spf.protection.outlook.com, 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 44

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 :)
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.


Author Comment

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

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 44

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 [mailto:Mailer-Daemon@scorn.aserv.co.za]
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: scorn.aserv.co.za
#< #5.0.0> #SMTP#
Original message headers:
Return-Path: <Agent.Navz@ttaf.co.za>
Received: from spe6.ucebox.co.za ([]:39014)   by
 scorn.aserv.co.za with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)    (Exim
 4.87)  (envelope-from <Agent.Navz@ttaf.co.za>)       id 1bcePi-0007e9-Vn    for
 admin@cesco.co.za; Wed, 24 Aug 2016 22:04:42 +0200
Received: from ttaf-ironport2.ttaf.co.za ([]
 helo=is-ironport-02.ttaf.co.za)      by spe6.ucebox.co.za with esmtp (Exim 4.85)
        (envelope-from <Agent.Navz@ttaf.co.za>)       id 1bcePg-0006IG-44    for
 admin@cesco.co.za; Wed, 24 Aug 2016 22:04:44 +0200
Authentication-Results: is-ironport-02.ttaf.co.za; spf=Fail smtp.mailfrom=Agent.Navz@ttaf.co.za; spf=None smtp.helo=postmaster@ttafdatvxmr1.ttaf.local
Received-SPF: Fail (is-ironport-02.ttaf.co.za: domain of
  Agent.Navz@ttaf.co.za does not designate as
  permitted sender) identity=mailfrom; client-ip=;
  x-sender="Agent.Navz@ttaf.co.za"; x-conformance=spf_only;
Received-SPF: None (is-ironport-02.ttaf.co.za: no sender
  authenticity information available from domain of
  postmaster@ttafdatvxmr1.ttaf.local) identity=helo;
  client-ip=; receiver=is-ironport-02.ttaf.co.za;
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
 is-ironport-02.ttaf.co.za 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 <Agent.Navz@ttaf.co.za>
To: "admin@cesco.co.za" <admin@cesco.co.za>
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 (spe6.ucebox.co.za: domain of ttaf.co.za designates as permitted sender) client-ip=; envelope-from=Agent.Navz@ttaf.co.za; helo=is-ironport-02.ttaf.co.za;
X-SPF-Result: spe6.ucebox.co.za: domain of ttaf.co.za designates as permitted sender
X-Filter-ID: s0sct1PQhAABKnZB5plbIfTMHwIoCPwkEUxWhAsHA3yXqSIHh/mdku6BgfhnCb1xWywi3RPeT3mN
X-Report-Abuse-To: spam@spe1.ucebox.co.za
Authentication-Results: ucebox.co.za; spf=pass smtp.mailfrom=Agent.Navz@ttaf.co.za
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 44

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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

824 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