Old 6th April 2011, 15:19
dimas dimas is offline
Senior Member
Join Date: Jul 2006
Posts: 125
Thanks: 7
Thanked 27 Times in 8 Posts
Default Correct SPF records setup

Please kindly help me to get a clearer picture of setting up correct SPF records. I know this has been discussed on the forums a lot, but more reading is only getting me more confused.

The problem is that, of course, without reverse DNS and the right SPF records lots of emails are not delivered.

I'm using the latest ISPConfig 3 (CentOS, perfect setup).

I have a block of external IPs and a number of domains/sites for clients.

Clients send mail via


(DNS records were made using DNS wizard)

The hostname of my server is, say, server1.example.com

By searching the forum I've found that I need to

1) Ensure that the reverse dns record for the IP address matches the hostname of the server.
2) Create spf records for all domain names and configure them to allow sending for the hostname of the server.

As for the 1) - all emails are sent via just one IP, so I've asked my ISP to make reverse DNS for this IP, so that it would resolve to server1.example.com

I hope this is OK.

As for 2) - please kindly help.

I understand that I have to make an SPF record for EACH of the clients' domains - and it has to be a TXT record

The name, if I understand correctly, has to be:

As for the text, in the examples I came across there were several mechanism used: "ip4", "a", "mx", "ptr" etc - do I have to use them all, or, for example, just "mx" mechanism is enough?

That is, will it be sufficient to write:

"v=spf1 mx:server1.example.com -all"


Also, at the moment "server1" at example.com is just an "A" record, do I have to make it MX also (example.com has mail.example.com as MX now)?
Reply With Quote
Sponsored Links
Old 7th April 2011, 16:16
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

This wizard might help: http://old.openspf.org/wizard.html
Basically it is important that your SPF record includes all servers from which mails are being sent for the domain. If you list them as ip4, a, mx, etc. doesn't matter.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Glue Records with NETTICA addiakogiannis Installation/Configuration 1 22nd March 2011 23:15
SPF: Setup & Why? Mentor Installation/Configuration 1 5th February 2009 11:11
Howto configure Glue Records DVS Suggest HOWTO 1 27th May 2007 10:11
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 15:34
Email Problems zimele General 13 28th November 2006 15:52

All times are GMT +2. The time now is 22:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.