Adding Mail server to SPF record

Posted on 2016-09-19
Medium Priority
Last Modified: 2016-09-19
Hi, we have a secure web portal that sends us an email when someone logs in and makes some changes to their account. It is handled and hosted by the developer. It worked fine for a long time but recently we have been receiving bounce backs because the developers server is not authorized to send email on behalf of our Domain.

I have added  their servers IP4 address after the IP address of our mail server, in the SPF record. Does the syntax look correct.

v=spf1 mx ptr mx:mail.ourdomain.com ip4: ip4:33.333.33.33 -all
Question by:Stev0W
  • 2
  • 2
LVL 18

Expert Comment

ID: 41804736
try and change syntax from

hope this helps
LVL 25

Accepted Solution

Marcus Bointon earned 2000 total points
ID: 41804738
That looks workable, but I recommend you put the IP addresses first as it makes it faster for receivers to check it, like this:

v=spf1 ip4: ip4:33.333.33.33 mx ptr mx:mail.ourdomain.com -all

Open in new window

There's not usually much to be gained by ptr entries in SPF records.

To be certain, check the exact settings that the bounce is coming from manually and make sure its covered by your SPF.
LVL 25

Expert Comment

by:Marcus Bointon
ID: 41804741
Don't change -all to ~all unless you're also using DMARC; it will weaken your SPF settings unnecessarily. Solve the exact problem, don't just give up!
LVL 18

Expert Comment

ID: 41804743
you may want to read this:



Author Closing Comment

ID: 41804879
Thanks. Moved the record around as suggested and drooped the ptr entry. Seems to be working fine.

Featured Post

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

What is the biggest problem in managing an exchange environment today? It is the lack of backups, disaster recovery (DR) plan, testing of the DR plan or believing that it won’t happen to us.
Let us take a look at the scenario, you have a database that is corrupt and you run the ESEUTIL command only to find you are unable to repair it. How do you now get the data back?
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
To export Lotus Notes to Outlook PST or Exchange and Domino Server files to Exchange Server or PST files with ease, go for Kernel for Lotus Notes to Outlook conversion tool. Through the video, you can watch the conversion process. A common user with…

586 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